/* Tavrax Jobs - Modern Hiring Platform Styles */
:root {
    --primary: #1a1a2e;
    --primary-dark: #0f0f1a;
    --primary-light: #2d2d44;
    --accent: #e94560;
    --accent-hover: #d63a55;
    --text: #2c3e50;
    --text-light: #7f8c8d;
    --bg: #ffffff;
    --bg-gray: #f8f9fa;
    --border: #e9ecef;
    --shadow: 0 4px 6px rgba(0,0,0,0.07);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.1);
    --radius: 16px;
    --radius-sm: 12px;
    --transition: all 0.2s ease;
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    :root {
        --bg: #1a1a2e;
        --bg-gray: #16213e;
        --text: #e2e8f0;
        --text-light: #94a3b8;
        --border: #2d2d44;
    }
}

body .trax-dashboard,
body .trax-jobs-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    color: var(--text);
    background: var(--bg);
}

/* Authentication Forms */
.trax-auth-container {
    max-width: 480px;
    margin: 3rem auto;
    background: var(--bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 2rem;
}

.trax-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--border);
}

.trax-tabs button {
    background: none;
    border: none;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-light);
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.trax-tabs button.active {
    color: var(--accent);
}

.trax-tabs button.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--accent);
}

.trax-auth-form {
    display: none;
}

.trax-auth-form.active {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.trax-auth-form input {
    padding: 0.875rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    transition: var(--transition);
    background: var(--bg);
    color: var(--text);
}

.trax-auth-form input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(233,69,96,0.1);
}

.trax-auth-form button {
    background: var(--accent);
    color: white;
    border: none;
    padding: 0.875rem;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.trax-auth-form button:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
}

/* Dashboard Navigation */
.trax-dashboard-nav {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border);
}

.trax-dashboard-nav button,
.trax-dashboard-nav a {
    padding: 0.75rem 1.5rem;
    background: transparent;
    border: none;
    color: var(--text-light);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    border-radius: var(--radius-sm);
    text-decoration: none;
}

.trax-dashboard-nav button:hover,
.trax-dashboard-nav a:hover {
    background: var(--bg-gray);
    color: var(--accent);
}

/* Job Cards */
.trax-jobs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.job-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.job-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.job-card h3 {
    font-size: 1.25rem;
    margin: 0 0 0.5rem 0;
    color: var(--text);
}

.job-card .company {
    color: var(--accent);
    font-weight: 500;
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
}

.job-card .details {
    display: flex;
    gap: 1rem;
    margin: 1rem 0;
    font-size: 0.875rem;
    color: var(--text-light);
}

.job-card .salary {
    color: var(--accent);
    font-weight: 600;
    margin: 0.75rem 0;
}

.job-card .apply-btn {
    display: inline-block;
    background: var(--accent);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: var(--transition);
}

.job-card .apply-btn:hover {
    background: var(--accent-hover);
}

/* Filters */
.trax-filters {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.trax-filters input,
.trax-filters select {
    flex: 1;
    min-width: 180px;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg);
    color: var(--text);
}

/* Forms */
#trax-profile-form,
#trax-post-job-form,
#trax-account-settings {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 720px;
}

#trax-profile-form input,
#trax-profile-form textarea,
#trax-profile-form select,
#trax-post-job-form input,
#trax-post-job-form textarea,
#trax-post-job-form select,
#trax-account-settings input {
    padding: 0.875rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    background: var(--bg);
    color: var(--text);
}

#trax-profile-form textarea,
#trax-post-job-form textarea {
    min-height: 120px;
    resize: vertical;
}

#trax-profile-form button,
#trax-post-job-form button,
#trax-account-settings button {
    background: var(--accent);
    color: white;
    border: none;
    padding: 1rem;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

/* Admin Stats */
.trax-admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.stat-card {
    background: white;
    border-radius: var(--radius);
    padding: 1.5rem;
    text-align: center;
    box-shadow: var(--shadow);
}

.stat-card h3 {
    font-size: 2rem;
    margin: 0;
    color: var(--accent);
}

.stat-card p {
    margin: 0.5rem 0 0;
    color: var(--text-light);
}

/* Loading States */
.trax-loading {
    text-align: center;
    padding: 2rem;
}

.trax-loading::after {
    content: '';
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 3px solid var(--border);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 768px) {
    body .trax-dashboard,
    body .trax-jobs-container {
        padding: 1rem;
    }
    
    .trax-dashboard-nav {
        flex-direction: column;
    }
    
    .trax-dashboard-nav button,
    .trax-dashboard-nav a {
        width: 100%;
        text-align: left;
    }
    
    .trax-jobs-grid {
        grid-template-columns: 1fr;
    }
    
    .trax-filters {
        flex-direction: column;
    }
}