@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
    --primary-color: #8A2BE2;
    --dark-bg: #0D0D1A;
    --card-bg: #1A1A2E;
    --text-color: #FFFFFF;
    --text-muted: #A9A9A9;
    --gradient-start: #4B0082;
    --gradient-end: #8A2BE2;
    --success-color: #4CAF50;
    --loading-color: #FFA500;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--dark-bg);
    color: var(--text-color);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 32px;
    background: #111;
    border-bottom: 1px solid #222;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--text-color);
    transition: color 0.3s ease;
    line-height: 1;
}

.logo-link:hover {
    color: var(--primary-color);
}

.logo-img {
    width: 32px;
    height: 32px;
    margin-right: 0.5rem;
    vertical-align: middle;
    transform: translateY(-2px);
}

.logo i {
    color: var(--primary-color);
    margin-right: 0.5rem;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin: 0 1rem;
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.nav-buttons {
    display: flex;
    align-items: center;
}

.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
}

.btn-outline {
    background-color: transparent;
    color: var(--text-color);
    border: 1px solid var(--text-muted);
    margin-right: 1rem;
}

.btn-outline:hover {
    background-color: var(--text-color);
    color: var(--dark-bg);
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--text-color);
}

.btn-primary:hover {
    background-color: #7c3aed;
}

.hamburger {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

.hero {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 12rem 5% 6rem;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    background-size: cover;
    background-position: center;
}

.hero-content {
    max-width: 800px;
}

.hero h1 {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
}

.hero .highlight {
    color: #C398FD;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 4rem;
}

.btn-dark {
    background-color: #000;
    color: var(--text-color);
    border: 1px solid #333;
}

.btn-dark:hover {
    background-color: #111;
}

.hero-stats {
    display: flex;
    justify-content: space-around;
    gap: 2rem;
}

.stat h3 {
    font-size: 2.5rem;
    font-weight: 700;
}

.stat p {
    font-size: 1rem;
    color: var(--text-muted);
}

.features, .how-it-works {
    padding: 6rem 5%;
    text-align: center;
}

h2 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.section-subtitle {
    max-width: 600px;
    margin: 0 auto 4rem;
    color: var(--text-muted);
    font-size: 1.1rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background-color: var(--card-bg);
    padding: 2rem;
    border-radius: 12px;
    text-align: left;
    border: 1px solid #2a2a4a;
}

.feature-card .icon {
    width: 60px;
    height: 60px;
    background-color: var(--primary-color);
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.feature-card p {
    color: var(--text-muted);
}

.steps {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 800px;
    margin: 0 auto;
}

.step {
    display: flex;
    align-items: center;
    background-color: var(--card-bg);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid #2a2a4a;
    text-align: left;
}

.step-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    background-color: rgba(138, 43, 226, 0.2);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 1.5rem;
}

.step-content h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.step-content p {
    color: var(--text-muted);
}

.step-arrow {
    margin-left: auto;
    font-size: 1.5rem;
    color: var(--primary-color);
}

.how-it-works .step:last-child .step-arrow {
    display: none;
}

.site-footer {
    margin-top: 4rem;
    border-top: 1px solid #2a2a4a;
    padding: 2rem 5%;
    color: var(--text-muted);
}

.site-footer .footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    text-align: center;
}

.site-footer .footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
    font-size: 0.95rem;
}

.site-footer .footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s ease;
}

.site-footer .footer-links a:hover {
    color: var(--text-color);
}

.legal-body {
    background: #18181b;
    color: #fff;
}

.legal-container {
    max-width: 960px;
    margin: 120px auto 80px auto;
    padding: 0 24px 80px;
}

.legal-hero {
    margin-bottom: 2.5rem;
}

.legal-eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.legal-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.legal-intro {
    font-size: 1.05rem;
    color: #d1d1e9;
    line-height: 1.6;
}

.legal-section {
    background: rgba(34, 34, 58, 0.65);
    border: 1px solid rgba(74, 74, 104, 0.6);
    border-radius: 16px;
    padding: 1.75rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

.legal-section h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.legal-section p {
    line-height: 1.7;
    color: #d1d1e9;
}

.legal-list {
    list-style: disc;
    margin-left: 1.5rem;
    display: grid;
    gap: 0.75rem;
    color: #d1d1e9;
}

.legal-list li strong {
    color: #fff;
    font-weight: 600;
}

.legal-section a {
    color: var(--primary-color);
    text-decoration: underline;
}

@media (max-width: 768px) {
    .legal-container {
        margin: 100px auto 60px auto;
        padding: 0 18px 60px;
    }

    .legal-hero h1 {
        font-size: 2.1rem;
    }

    .legal-section {
        padding: 1.5rem;
    }
}

/* Responsive Design */
@media (max-width: 992px) {
    .nav-links, .nav-buttons {
        display: none;
    }

    .hamburger {
        display: block;
    }

    .navbar {
        justify-content: space-between;
    }
    
    .nav-links.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--dark-bg);
        padding: 1rem 0;
    }

    .nav-links.active li {
        text-align: center;
        padding: 1rem 0;
    }

    .hero h1 {
        font-size: 3rem;
    }
}

@media (max-width: 576px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero-stats {
        flex-direction: column;
        gap: 1rem;
    }

    h2 {
        font-size: 2.2rem;
    }
}

/* --- Login Page Styles --- */

.logo-link {
    text-decoration: none;
    color: var(--text-color);
    display: inline-block;
}

.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 0 5%;
    flex-direction: column;
    gap: 1.5rem;
}

.login-card {
    background-color: var(--card-bg);
    padding: 3rem;
    border-radius: 12px;
    border: 1px solid #2a2a4a;
    text-align: center;
    max-width: 450px;
    width: 100%;
}

.login-card h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.login-card p {
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    font-size: 1.1rem;
}

.back-link {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s ease;
}

.back-link:hover {
    color: var(--primary-color);
}

/* --- Dashboard & Job Tracker Page Styles --- */

.dashboard-body, .job-tracker-body {
    background: #18181b;
    color: #fff;
}


.navbar nav a {
    margin: 0 12px;
    font-size: 1em;
}

.navbar nav a.active {
    color: var(--primary-color);
    font-weight: bold;
}

.navbar .user {
    color: #fff;
    font-size: 0.95em;
}

.dashboard-body .container, .job-tracker-body .container {
    max-width: 1200px;
    margin: 100px auto 40px auto;
    padding: 0 24px;
}

.dashboard-body h1, .job-tracker-body h1 {
    font-size: 2.2em;
    margin-bottom: 8px;
}

.dashboard-body h1 .highlight, .job-tracker-body h1 .highlight {
    color: var(--primary-color);
}

.dashboard-body .subtitle, .job-tracker-body .subtitle {
    color: #aaa;
    margin-bottom: 32px;
}

.dashboard-body .stats, .job-tracker-body .stats {
    display: flex;
    gap: 32px;
    margin: 32px 0;
}

.dashboard-body .stat, .job-tracker-body .stat {
    background: #222;
    border-radius: 12px;
    padding: 20px 32px;
    flex: 1;
    text-align: center;
}

.dashboard-body .stat-title, .job-tracker-body .stat-title {
    font-size: 0.95em;
    color: #aaa;
    margin-bottom: 8px;
}

.dashboard-body .stat-value, .job-tracker-body .stat-value {
    font-size: 2em;
    font-weight: bold;
    margin-bottom: 4px;
}

/* Dashboard Specific */
.dashboard-body .tools {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}

.dashboard-body .tool {
    background: #222;
    border-radius: 12px;
    padding: 24px;
    min-height: 160px;
}

.dashboard-body .tool-title {
    font-size: 1.1em;
    font-weight: bold;
    margin-bottom: 8px;
}

.dashboard-body .tool-desc {
    color: #aaa;
    font-size: 0.95em;
    margin-bottom: 16px;
}


.dashboard-body .quick-apply {
    background: linear-gradient(90deg, var(--gradient-start) 0%, var(--primary-color) 100%);
    color: #fff;
    border-radius: 12px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.dashboard-body .quick-apply-title {
    font-size: 1.1em;
    font-weight: bold;
    margin-bottom: 8px;
}

.dashboard-body .quick-apply-desc {
    font-size: 0.95em;
    margin-bottom: 16px;
}


.dashboard-body .activity {
    background: #222;
    border-radius: 12px;
    padding: 24px;
    margin-top: 32px;
}

.dashboard-body .activity-title {
    font-size: 1.1em;
    font-weight: bold;
    margin-bottom: 16px;
}

/* Job Tracker Specific */
.job-tracker-body .search-bar {
    width: 100%;
    padding: 12px 20px;
    border-radius: 8px;
    border: none;
    background: #222;
    color: #fff;
    font-size: 1em;
    margin-bottom: 24px;
}

.job-tracker-body .filter-btns {
    display: flex;
    gap: 12px;
    margin-bottom: 32px;
}

.job-tracker-body .filter-btn {
    background: #222;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 8px 18px;
    font-size: 1em;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.job-tracker-body .filter-btn.active, .job-tracker-body .filter-btn:hover {
    background: var(--primary-color);
    color: #fff;
}

.job-tracker-body .add-job-btn {
    background: #6366f1;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 10px 24px;
    font-size: 1em;
    font-weight: bold;
    float: right;
    margin-bottom: 32px;
    cursor: pointer;
}

.job-tracker-body .jobs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 32px;
}

.job-tracker-body .job-card {
    background: #222;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
    min-height: 220px;
}

.job-tracker-body .job-header {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.job-tracker-body .job-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2em;
    margin-right: 16px;
}

.job-tracker-body .job-title {
    font-size: 1.15em;
    font-weight: bold;
}

.job-tracker-body .job-company {
    color: #aaa;
    font-size: 1em;
    margin-bottom: 4px;
}

.job-tracker-body .job-details {
    font-size: 0.98em;
    color: #aaa;
    margin-bottom: 8px;
}

.job-tracker-body .job-desc {
    margin-bottom: 12px;
    color: #ccc;
}

.job-tracker-body .job-desc a {
    color: #a78bfa; /* A lighter, themed purple */
    text-decoration: none;
}

.job-tracker-body .job-desc a:hover {
    text-decoration: underline;
}

.job-description-preview {
    margin-top: 8px;
    padding: 8px;
    background-color: #f3f4f6;
    border-radius: 4px;
    font-size: 12px;
    color: #6b7280;
    border-left: 3px solid #6366f1;
}

.no-description {
    margin-top: 8px;
    padding: 8px;
    background-color: #fef3c7;
    border-radius: 4px;
    font-size: 12px;
    color: #92400e;
    border-left: 3px solid #f59e0b;
}

.job-tracker-body .job-status {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 8px;
    font-size: 0.95em;
    font-weight: 600;
    margin-bottom: 8px;
}

.job-tracker-body .saved { background: #f3f4f6; color: #374151; }

/* Authentication required message */
.auth-required-message {
    text-align: center;
    padding: 60px 20px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    max-width: 500px;
    margin: 40px auto;
}

.auth-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.auth-required-message h3 {
    color: #374151;
    margin-bottom: 16px;
    font-size: 24px;
    font-weight: 600;
}

.auth-required-message p {
    color: #6b7280;
    margin-bottom: 32px;
    font-size: 16px;
    line-height: 1.5;
}

.auth-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-bottom: 24px;
}

.auth-note {
    color: #9ca3af;
    font-size: 14px;
}

.auth-note span {
    font-weight: 600;
    color: #ef4444;
}

/* User dropdown styles */
.user-dropdown {
    position: relative;
    display: inline-block;
}

.user-info-btn {
    background: none;
    border: none;
    color: var(--text-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 8px;
    transition: background-color 0.2s ease;
    font-size: 14px;
    font-weight: 500;
}

.user-info-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--primary-color);
}

.user-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
}

.user-name {
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--card-bg);
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3), 0 1px 3px rgba(0, 0, 0, 0.2);
    width: max-content;
    min-width: 0;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    border: 1px solid #333;
}

.user-dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-profile {
    padding: 16px;
}

.user-profile-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-avatar-large {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.user-details {
    flex: 1;
}

.user-name-large {
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 2px;
}

.user-email {
    font-size: 14px;
    color: var(--text-muted);
}

.dropdown-divider {
    height: 1px;
    background-color: #333;
    margin: 0;
}

.dropdown-item {
    width: 100%;
    background: none;
    border: none;
    padding: 12px 16px;
    text-align: left;
    cursor: pointer;
    color: var(--text-color);
    font-size: 14px;
    transition: background-color 0.2s ease;
    border-radius: 0;
    text-decoration: none;
    font-weight: 500;
}

.dropdown-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--primary-color);
}

.dropdown-item i {
    width: 16px;
    color: var(--text-muted);
}

/* User placeholder for unauthenticated state */
.user-placeholder {
    color: #aaa;
    font-size: 0.9em;
    font-style: italic;
}
.job-tracker-body .applied { background: #e0e7ff; color: #6366f1; }
.job-tracker-body .interview { background: #fef3c7; color: #f59e42; }
.job-tracker-body .offer { background: #d1fae5; color: #10b981; }
.job-tracker-body .rejected { background: #fee2e2; color: #ef4444; }
.job-tracker-body .ghosted { background: #e5e7eb; color: #4b5563; }

.job-tracker-body .job-actions {
    display: flex;
    gap: 16px;
    margin-top: auto;
}

.job-tracker-body .job-actions i {
    color: #aaa;
    font-size: 1.2em;
    cursor: pointer;
    transition: color 0.2s;
}

.job-tracker-body .job-actions i:hover {
    color: var(--primary-color);
}

.submit-btn {
    background: #6366f1;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 12px 24px;
    font-size: 1em;
    font-weight: bold;
    cursor: pointer;
    width: 100%;
    transition: background 0.2s;
}

.submit-btn:hover {
    background: #4f46e5;
}

.form-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 24px;
}

.delete-btn {
    background: #dc2626;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.delete-btn:hover {
    background: #b91c1c;
}

.delete-btn:disabled {
    background: #6b7280;
    cursor: not-allowed;
}

.modal-content #scrape-btn {
    background-color: #37374a;
    border: none;
    color: #ccc;
}

.scrape-btn {
    width: 100%;
    padding: 12px;
}

/* --- Modal Styles --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.modal-content {
    background: #18181b;
    padding: 32px;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    position: relative;
    border: 1px solid #444;
}

.modal-content h2 {
    margin-top: 0;
    margin-bottom: 8px;
    font-size: 1.8em;
}

.modal-content p {
    color: #aaa;
    margin-bottom: 24px;
}

.close-btn {
    position: absolute;
    top: 16px;
    right: 24px;
    font-size: 2em;
    color: #aaa;
    cursor: pointer;
    line-height: 1;
}

.close-btn:hover {
    color: #fff;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #ccc;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #444;
    background: #333;
    color: #fff;
    font-size: 1em;
}


.modal-content hr {
    border: none;
    border-top: 1px solid #444;
    margin: 24px 0;
}


/* Dashboard Specific Responsive */
@media (max-width: 900px) {
    .dashboard-body .tools {
        grid-template-columns: 1fr;
    }
    .dashboard-body .stats {
        flex-direction: column;
    }
}

.dashboard-body .activity-list {
    list-style: none;
    padding: 0;
}
.dashboard-body .activity-item {
    display: flex;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #333;
}
.dashboard-body .activity-item:last-child {
    border-bottom: none;
}
.dashboard-body .activity-icon {
    margin-right: 16px;
    font-size: 1.2em;
}
.dashboard-body .activity-details {
    display: flex;
    flex-direction: column;
}
.dashboard-body .activity-desc {
    font-size: 1em;
}
.dashboard-body .activity-time {
    color: #aaa;
    font-size: 0.9em;
}

/* Loading and Success Messages */
.loading {
    text-align: center;
    padding: 2rem;
    color: var(--loading-color);
    font-size: 1.1rem;
    font-weight: 500;
    background: rgba(255, 165, 0, 0.1);
    border: 1px solid var(--loading-color);
    border-radius: 8px;
    margin: 1rem 0;
}

.success {
    text-align: center;
    padding: 2rem;
    color: var(--success-color);
    font-size: 1.1rem;
    font-weight: 500;
    background: rgba(76, 175, 80, 0.1);
    border: 1px solid var(--success-color);
    border-radius: 8px;
    margin: 1rem 0;
}

.error {
    text-align: center;
    padding: 2rem;
    color: #f44336;
    font-size: 1.1rem;
    font-weight: 500;
    background: rgba(244, 67, 54, 0.1);
    border: 1px solid #f44336;
    border-radius: 8px;
    margin: 1rem 0;
}

/* Spreadsheet Link */
.spreadsheet-link {
    text-align: center;
    margin: 1rem 0;
}

.spreadsheet-link .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    background: var(--card-bg);
    color: var(--text-color);
    border: 1px solid #444;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.spreadsheet-link .btn:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

/* Button States */
.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

.btn:disabled:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: none !important;
}

/* Resume Manager Styles */
.upload-area {
    border: 2px dashed var(--primary-color);
    border-radius: 12px;
    padding: 3rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, rgba(138, 43, 226, 0.1), rgba(75, 0, 130, 0.1));
}

.upload-area:hover {
    border-color: var(--gradient-end);
    background: linear-gradient(135deg, rgba(138, 43, 226, 0.2), rgba(75, 0, 130, 0.2));
    transform: translateY(-2px);
}

.upload-area.drag-over {
    border-color: var(--success-color);
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.2), rgba(76, 175, 80, 0.1));
}

.upload-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.upload-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.upload-formats {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.upload-progress {
    text-align: center;
    padding: 2rem;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--gradient-end));
    width: 0%;
    transition: width 0.3s ease;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.resume-list {
    display: grid;
    gap: 1.5rem;
    margin-top: 2rem;
}

.resume-item {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid rgba(138, 43, 226, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.resume-item:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(138, 43, 226, 0.2);
}

.resume-info h3 {
    color: var(--text-color);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.resume-info p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.resume-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.resume-actions .btn {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

.empty-state {
    text-align: center;
    padding: 3rem;
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* Optimization Modal Styles */
.optimization-results {
    margin-top: 2rem;
    padding: 1.5rem;
    background: rgba(138, 43, 226, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(138, 43, 226, 0.3);
}

.match-score {
    text-align: center;
    margin-bottom: 2rem;
}

.match-score h4 {
    font-size: 1.5rem;
    color: var(--success-color);
}

.missing-keywords ul {
    list-style: none;
    padding: 0;
    margin-top: 0.5rem;
}

.missing-keywords li {
    background: rgba(255, 193, 7, 0.2);
    color: #FFC107;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    display: inline-block;
    margin: 0.25rem;
    font-size: 0.9rem;
}

.suggestions {
    margin-top: 2rem;
}

.suggestion-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    border-left: 4px solid var(--primary-color);
}

.suggestion-item h5 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.suggestion-item p {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    line-height: 1.4;
}

.suggestion-item p:last-child {
    margin-bottom: 0;
    font-style: italic;
    color: var(--text-muted);
}

/* Notification Styles */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    color: white;
    font-weight: 500;
    z-index: 10000;
    animation: slideIn 0.3s ease;
}

.notification.success {
    background: var(--success-color);
}

.notification.error {
    background: #f44336;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Authentication Required Styles */
.auth-required {
    text-align: center;
    padding: 3rem;
    background: linear-gradient(135deg, rgba(138, 43, 226, 0.1), rgba(75, 0, 130, 0.1));
    border-radius: 12px;
    border: 1px solid rgba(138, 43, 226, 0.3);
}

.auth-required h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.auth-required p {
    color: var(--text-muted);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.auth-required ol {
    color: var(--text-color);
    margin-bottom: 2rem;
    font-size: 1rem;
    line-height: 1.6;
}

.auth-required ol li {
    margin-bottom: 0.5rem;
}

.auth-required .btn {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
}

/* Responsive Design for Resume Manager */
@media (max-width: 768px) {
    .resume-item {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    
    .resume-actions {
        justify-content: center;
    }
    
    .upload-area {
        padding: 2rem 1rem;
    }
    
    .upload-content {
        gap: 0.75rem;
    }
    
    .upload-icon {
        font-size: 2rem;
    }
    
    .auth-required {
        padding: 2rem 1rem;
    }
    
    .auth-required h2 {
        font-size: 1.5rem;
    }
}

/* --- Company Research Page Styles --- */

.company-research-body {
    background: #18181b;
    color: #fff;
}

.company-research-body .navbar {
    background: #111;
    border-bottom: 1px solid #222;
    backdrop-filter: none;
    padding: 16px 32px;
}

.company-research-body .navbar nav a.active {
    color: var(--primary-color);
    font-weight: bold;
}

.company-research-body .container {
    max-width: 1200px;
    margin: 100px auto 40px auto;
    padding: 0 24px;
}

/* --- Cover Letters Page Styles --- */


.cover-letter-result {
    margin-top: 30px;
    background: #222;
    border-radius: 12px;
    border: 1px solid #333;
    overflow: hidden;
}

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: #333;
    border-bottom: 1px solid #444;
}

.result-header h3 {
    margin: 0;
    color: #fff;
}

.result-actions {
    display: flex;
    gap: 12px;
}

.cover-letter-content {
    padding: 20px;
    color: #ccc;
    line-height: 1.6;
}

.letter-content {
    white-space: pre-line;
}

.letter-content p {
    margin-bottom: 1.5em;
    line-height: 1.8;
}

.letter-content p:last-child {
    margin-bottom: 0;
}

.saved-letters {
    margin-top: 40px;
}

/* Prompt Editor Styles */
.prompt-editor-wrapper {
    margin: 1rem 0;
    border: 1px solid #374151;
    border-radius: 8px;
    overflow: hidden;
    background: #1f2937;
}

.prompt-toggle-btn {
    width: 100%;
    background: #111827;
    border: none;
    padding: 1rem;
    text-align: left;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: background-color 0.2s;
}

.prompt-toggle-btn:hover {
    background: #1f2937;
}

.prompt-toggle-btn i {
    color: #6366f1;
    transition: transform 0.3s;
}

.prompt-toggle-btn.expanded i {
    transform: rotate(90deg);
}

.prompt-toggle-text {
    flex: 1;
    color: #f9fafb;
}

.text-muted {
    color: #9ca3af;
    font-weight: normal;
}

.prompt-editor-section {
    padding: 1.5rem;
    background: #1f2937;
    border-top: 1px solid #374151;
}

.prompt-textarea {
    font-family: 'Courier New', Consolas, monospace;
    font-size: 0.875rem;
    line-height: 1.5;
    background: #0d1117 !important;
    color: #e6edf3 !important;
    border: 1px solid #30363d;
    border-radius: 6px;
    padding: 1rem;
    resize: vertical;
    min-height: 300px;
}

.prompt-textarea:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
    background: #0d1117 !important;
    color: #e6edf3 !important;
}

.prompt-info {
    background: #1e293b;
    border-left: 4px solid #3b82f6;
    padding: 0.75rem;
    margin: 1rem 0;
    border-radius: 4px;
    font-size: 0.875rem;
    color: #cbd5e1;
}

.prompt-info strong {
    color: #f1f5f9;
}

.prompt-info code {
    background: #0f172a;
    padding: 0.125rem 0.375rem;
    border-radius: 3px;
    color: #f472b6;
    font-family: 'Courier New', monospace;
    font-size: 0.85em;
    border: 1px solid #334155;
}

.character-count {
    text-align: right;
    font-size: 0.75rem;
    color: #9ca3af;
    margin-top: 0.5rem;
}

.character-count.warning {
    color: #fbbf24;
}

.character-count.error {
    color: #ef4444;
    font-weight: bold;
}

.prompt-actions {
    display: flex;
    gap: 0.75rem;
    margin: 1rem 0;
    flex-wrap: wrap;
}

.alert-info {
    background: #1e3a5f;
    border: 1px solid #2563eb;
    color: #bfdbfe;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    margin-top: 1rem;
}

.alert-info i {
    margin-right: 0.5rem;
    color: #60a5fa;
}

.alert-info strong {
    color: #dbeafe;
}

.badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 4px;
    margin-left: 0.5rem;
}

.badge-info {
    background: #6366f1;
    color: white;
}

/* Add Job Modal Styles */
.close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 2rem;
    font-weight: 300;
    color: #9ca3af;
    cursor: pointer;
    border: none;
    background: none;
    line-height: 1;
    transition: color 0.2s;
}

.close-btn:hover {
    color: #f9fafb;
}

.scrape-btn {
    background: #3b82f6;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.scrape-btn:hover:not(:disabled) {
    background: #2563eb;
}

.scrape-btn:disabled {
    background: #6b7280;
    cursor: not-allowed;
}

.submit-btn {
    background: #10b981;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.2s;
}

.submit-btn:hover:not(:disabled) {
    background: #059669;
}

.submit-btn:disabled {
    background: #6b7280;
    cursor: not-allowed;
}

.form-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
    margin-top: 1.5rem;
}

.add-job-form hr {
    border: none;
    border-top: 1px solid #374151;
    margin: 1.5rem 0;
}

#add-job-modal .modal-content {
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
}

#add-job-modal h2 {
    color: #f9fafb;
    margin-bottom: 0.5rem;
}

#add-job-modal p {
    color: #9ca3af;
    margin-bottom: 1.5rem;
}

#add-job-modal .form-group {
    margin-bottom: 1.25rem;
}

#add-job-modal .form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #f9fafb;
    font-weight: 500;
    font-size: 14px;
}

#add-job-modal .form-group input,
#add-job-modal .form-group textarea {
    width: 100%;
    padding: 0.75rem;
    background: #111827;
    border: 1px solid #374151;
    border-radius: 6px;
    color: #f9fafb;
    font-size: 14px;
    font-family: inherit;
}

#add-job-modal .form-group input:focus,
#add-job-modal .form-group textarea:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

#add-job-modal .form-group textarea {
    resize: vertical;
    min-height: 100px;
}

#add-job-modal hr {
    border: none;
    border-top: 1px solid #374151;
    margin: 1.5rem 0;
}

.letters-list {
    margin-top: 20px;
}

.empty-state {
    text-align: center;
    padding: 40px;
    color: #aaa;
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 16px;
    color: #666;
}

/* --- Interview Prep Page Styles --- */

.interview-session {
    margin-top: 30px;
    background: #222;
    border-radius: 12px;
    border: 1px solid #333;
    overflow: hidden;
}

.session-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: #333;
    border-bottom: 1px solid #444;
}

.session-header h3 {
    margin: 0;
    color: #fff;
}

.session-info {
    display: flex;
    gap: 20px;
    color: #aaa;
    font-size: 0.9em;
}

.question-container {
    padding: 20px;
}

.question-card {
    background: #333;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #444;
}

.question-card h4 {
    margin: 0 0 16px 0;
    color: #fff;
    font-size: 1.2em;
    line-height: 1.4;
}

.question-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.question-tag {
    background: var(--primary-color);
    color: #fff;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.8em;
    font-weight: 500;
}

.answer-section {
    padding: 20px;
    border-top: 1px solid #444;
}

.answer-section label {
    display: block;
    margin-bottom: 8px;
    color: #ccc;
    font-weight: 500;
}

.answer-section textarea {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #444;
    background: #333;
    color: #fff;
    font-size: 1em;
    resize: vertical;
    min-height: 120px;
}

.answer-actions {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

.session-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: #333;
    border-top: 1px solid #444;
}

.interview-results {
    margin-top: 30px;
    background: #222;
    border-radius: 12px;
    border: 1px solid #333;
    overflow: hidden;
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: #333;
    border-bottom: 1px solid #444;
}

.results-header h3 {
    margin: 0;
    color: #fff;
}

.overall-score {
    display: flex;
    align-items: center;
    gap: 12px;
}

.score-label {
    color: #aaa;
    font-size: 0.9em;
}

.score-value {
    color: var(--primary-color);
    font-size: 1.5em;
    font-weight: bold;
}

.feedback-sections {
    padding: 20px;
}

.feedback-card {
    background: #333;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #444;
    margin-bottom: 16px;
}

.feedback-card h4 {
    margin: 0 0 16px 0;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 8px;
}

.feedback-card h4 i {
    color: var(--primary-color);
}

.feedback-card ul {
    margin: 0;
    padding-left: 20px;
    color: #ccc;
}

.feedback-card li {
    margin-bottom: 8px;
    line-height: 1.5;
}

.results-actions {
    display: flex;
    gap: 12px;
    padding: 20px;
    background: #333;
    border-top: 1px solid #444;
}

.practice-resources {
    margin-top: 40px;
}

.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.resource-card {
    background: #222;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #333;
    text-align: center;
    transition: all 0.3s ease;
}

.resource-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.resource-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 1.5rem;
    color: #fff;
}

.resource-card h4 {
    margin: 0 0 12px 0;
    color: #fff;
    font-size: 1.2em;
}

.resource-card p {
    margin: 0 0 20px 0;
    color: #aaa;
    line-height: 1.5;
}

.page-header {
    text-align: center;
    margin-bottom: 40px;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.page-header p {
    color: #aaa;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Search Section */
.search-section {
    margin-bottom: 40px;
}

.search-container {
    max-width: 800px;
    margin: 0 auto;
}

.search-input-group {
    display: flex;
    align-items: center;
    background: #222;
    border-radius: 12px;
    padding: 8px;
    border: 2px solid transparent;
    transition: border-color 0.3s ease;
}

.search-input-group:focus-within {
    border-color: var(--primary-color);
}

.search-icon {
    color: #aaa;
    margin: 0 16px;
    font-size: 1.2rem;
}

.search-input {
    flex: 1;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.1rem;
    padding: 16px 0;
    outline: none;
}

.search-input::placeholder {
    color: #666;
}

.search-btn {
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.search-btn:hover {
    background: #7c3aed;
}

.search-btn:disabled {
    background: #666;
    cursor: not-allowed;
}

.search-suggestions {
    margin-top: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.suggestion-label {
    color: #aaa;
    font-size: 0.9rem;
}

.suggestion-chip {
    background: #333;
    color: #fff;
    border: none;
    border-radius: 20px;
    padding: 6px 16px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.3s ease;
}

.suggestion-chip:hover {
    background: var(--primary-color);
}

/* Loading State */
.loading-state {
    text-align: center;
    padding: 60px 20px;
    background: #222;
    border-radius: 12px;
    margin: 40px 0;
}

.loading-spinner {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 24px;
}

.loading-state h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
    color: #fff;
}

.loading-state p {
    color: #aaa;
    font-size: 1.1rem;
}

/* Results Section */
.results-section {
    margin-top: 40px;
}

/* Company Overview Card */
.company-overview-card {
    background: #222;
    border-radius: 12px;
    padding: 32px;
    margin-bottom: 24px;
    border: 1px solid #333;
}

.company-header {
    display: flex;
    align-items: center;
    gap: 24px;
}

.company-logo {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    background: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.company-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.logo-placeholder {
    font-size: 2.5rem;
    color: var(--primary-color);
}

.company-info {
    flex: 1;
}

.company-info h2 {
    font-size: 2rem;
    margin-bottom: 16px;
    color: #fff;
}

.company-details {
    display: flex;
    gap: 24px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.company-detail {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #aaa;
    font-size: 0.95rem;
}

.company-detail i {
    color: var(--primary-color);
    width: 16px;
}

.website-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s ease;
}

.website-link:hover {
    color: #7c3aed;
}

/* Social/Professional Links */
.company-social-links {
    display: flex;
    gap: 12px;
    margin-top: 16px;
    flex-wrap: wrap;
}

.social-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid;
}

.social-link-btn i {
    font-size: 1rem;
}

.linkedin-btn {
    background: rgba(0, 119, 181, 0.1);
    color: #0077b5;
    border-color: rgba(0, 119, 181, 0.3);
}

.linkedin-btn:hover {
    background: rgba(0, 119, 181, 0.2);
    border-color: #0077b5;
    transform: translateY(-2px);
}

.glassdoor-btn {
    background: rgba(13, 161, 58, 0.1);
    color: #0d9f3a;
    border-color: rgba(13, 161, 58, 0.3);
}

.glassdoor-btn:hover {
    background: rgba(13, 161, 58, 0.2);
    border-color: #0d9f3a;
    transform: translateY(-2px);
}

.crunchbase-btn {
    background: rgba(0, 115, 230, 0.1);
    color: #0073e6;
    border-color: rgba(0, 115, 230, 0.3);
}

.crunchbase-btn:hover {
    background: rgba(0, 115, 230, 0.2);
    border-color: #0073e6;
    transform: translateY(-2px);
}

/* Research Tabs */
.research-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    border-bottom: 1px solid #333;
    overflow-x: auto;
}

.tab-btn {
    background: none;
    border: none;
    color: #aaa;
    padding: 16px 24px;
    font-size: 1rem;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.tab-btn:hover {
    color: #fff;
}

.tab-btn.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

/* Tab Content */
.tab-content {
    min-height: 400px;
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
}

.info-card {
    background: #222;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 16px;
    border: 1px solid #333;
}

.info-card h3 {
    font-size: 1.3rem;
    margin-bottom: 16px;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 12px;
}

.info-card h3 i {
    color: var(--primary-color);
}

.info-card p {
    color: #ccc;
    line-height: 1.6;
    margin-bottom: 16px;
}

.info-card p:last-child {
    margin-bottom: 0;
}


/* Info Grid Layout */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 16px;
    margin-bottom: 16px;
}


.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #333;
}

.info-item:last-child {
    border-bottom: none;
}

.info-label {
    color: #aaa;
    font-size: 0.95rem;
    font-weight: 500;
}

.info-value {
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
    text-align: right;
    max-width: 60%;
}

/* Satisfaction Grid */
.satisfaction-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-top: 16px;
}

.satisfaction-item {
    text-align: center;
    padding: 16px;
    background: #333;
    border-radius: 8px;
    border: 1px solid #444;
}

.satisfaction-label {
    color: #aaa;
    font-size: 0.9rem;
    margin-bottom: 8px;
    font-weight: 500;
}

.satisfaction-score {
    color: #fff;
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.satisfaction-score.rating-high {
    color: #4CAF50;
}

.satisfaction-score.rating-medium {
    color: #FF9800;
}

.satisfaction-score.rating-low {
    color: #f44336;
}

.satisfaction-score .rating-stars {
    font-size: 1rem;
    color: #FFD700;
}

/* Products & Services Grid */
.products-grid,
.services-grid,
#company-competitors-content {
    display: grid;
    gap: 16px;
    margin-top: 16px;
}

.product-item,
.service-item {
    background: #333;
    border-radius: 8px;
    padding: 16px;
    border-left: 4px solid var(--primary-color);
    transition: all 0.3s ease;
}

.product-item:hover,
.service-item:hover {
    background: #3a3a3a;
    transform: translateY(-2px);
}

.product-content,
.service-content {
    margin: 0;
}

.product-title,
.service-title {
    font-weight: 600;
    color: #fff;
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.product-description,
.service-description {
    color: #ccc;
    line-height: 1.5;
    margin-bottom: 8px;
}

.product-meta,
.service-meta {
    display: flex;
    gap: 16px;
    font-size: 0.9rem;
    color: #aaa;
}

.product-meta span,
.service-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.product-meta i,
.service-meta i {
    color: var(--primary-color);
    width: 14px;
}

/* Competitors Grid */
.competitors-grid,
.market-share-grid {
    display: grid;
    gap: 16px;
    margin-top: 16px;
}

.competitor-item,
.market-item {
    background: #333;
    border-radius: 8px;
    padding: 16px;
    border-left: 4px solid var(--primary-color);
    transition: all 0.3s ease;
}

.competitor-item:hover,
.market-item:hover {
    background: #3a3a3a;
    transform: translateY(-2px);
}

.competitor-content,
.market-content {
    margin: 0;
}

.competitor-name,
.market-title {
    font-weight: 600;
    color: #fff;
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.competitor-description,
.market-description {
    color: #ccc;
    line-height: 1.5;
    margin-bottom: 8px;
}

.competitor-meta,
.market-meta {
    display: flex;
    gap: 16px;
    font-size: 0.9rem;
    color: #aaa;
    flex-wrap: wrap;
}

.competitor-meta span,
.market-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.competitor-meta i,
.market-meta i {
    color: var(--primary-color);
    width: 14px;
}

.competitor-threat {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-left: 8px;
}

.competitor-threat.high {
    background: #f44336;
    color: #fff;
}

.competitor-threat.medium {
    background: #FF9800;
    color: #fff;
}

.competitor-threat.low {
    background: #4CAF50;
    color: #fff;
}

/* Role Selector */
.news-description {
    color: #aaa;
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.role-selector {
    margin-bottom: 24px;
    padding: 16px;
    background: #333;
    border-radius: 8px;
    border: 1px solid #444;
}

.role-selector label {
    display: block;
    color: #fff;
    font-weight: 500;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.role-dropdown {
    width: 100%;
    padding: 12px 16px;
    background: #222;
    border: 1px solid #444;
    border-radius: 6px;
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.role-dropdown:focus {
    outline: none;
    border-color: var(--primary-color);
}

.role-dropdown option {
    background: #222;
    color: #fff;
    padding: 8px;
}

/* News Items with Role Tags */
.news-item {
    background: #333;
    padding: 16px;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
    margin-bottom: 16px;
    transition: all 0.3s ease;
}

.news-item:hover {
    background: #3a3a3a;
    transform: translateY(-2px);
}

.news-item:last-child {
    margin-bottom: 0;
}

.news-content {
    margin: 0;
}

.news-title-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.news-title-link:hover .news-title {
    color: var(--primary-color);
}

.news-title {
    font-weight: 600;
    color: #fff;
    margin-bottom: 8px;
    font-size: 1.1rem;
    line-height: 1.4;
    transition: color 0.2s ease;
}

.news-title .fa-external-link-alt {
    font-size: 0.8rem;
    margin-left: 6px;
    opacity: 0.6;
}

.news-summary {
    color: #ccc;
    line-height: 1.5;
    margin-bottom: 12px;
}

.news-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: #aaa;
    flex-wrap: wrap;
    gap: 8px;
}

.news-source {
    font-weight: 500;
    color: var(--primary-color);
}

.news-date {
    color: #aaa;
}

.news-role-tag {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    background: rgba(138, 43, 226, 0.2);
    color: var(--primary-color);
    border: 1px solid rgba(138, 43, 226, 0.3);
}

.news-impact {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-left: 8px;
}

.news-impact.high {
    background: #f44336;
    color: #fff;
}

.news-impact.medium {
    background: #FF9800;
    color: #fff;
}

.news-impact.low {
    background: #4CAF50;
    color: #fff;
}

/* Interview Role Selector */
.interview-description {
    color: #aaa;
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.interview-role-selector {
    margin-bottom: 24px;
    padding: 16px;
    background: #333;
    border-radius: 8px;
    border: 1px solid #444;
}

.interview-role-selector label {
    display: block;
    color: #fff;
    font-weight: 500;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.interview-role-dropdown {
    width: 100%;
    padding: 12px 16px;
    background: #222;
    border: 1px solid #444;
    border-radius: 6px;
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.interview-role-dropdown:focus {
    outline: none;
    border-color: var(--primary-color);
}

.interview-role-dropdown option {
    background: #222;
    color: #fff;
    padding: 8px;
}

/* Interview Content Sections */
.interview-tips,
.interview-questions,
.talking-points {
    margin-bottom: 24px;
    padding: 20px;
    background: #333;
    border-radius: 8px;
    border: 1px solid #444;
}

.interview-tips h4,
.interview-questions h4,
.talking-points h4 {
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.interview-tips h4 i,
.interview-questions h4 i,
.talking-points h4 i {
    color: var(--primary-color);
}

.interview-tips p {
    color: #ccc;
    line-height: 1.6;
    margin: 0;
}

.questions-list,
.talking-points-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.questions-list li,
.talking-points-list li {
    background: #444;
    margin-bottom: 12px;
    padding: 12px 16px;
    border-radius: 6px;
    border-left: 3px solid var(--primary-color);
    color: #fff;
    line-height: 1.5;
    transition: all 0.3s ease;
}

.questions-list li:hover,
.talking-points-list li:hover {
    background: #555;
    transform: translateX(4px);
}

.questions-list li:last-child,
.talking-points-list li:last-child {
    margin-bottom: 0;
}

/* Lists */
.questions-list,
.talking-points-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.questions-list li,
.talking-points-list li {
    background: #333;
    padding: 12px 16px;
    margin-bottom: 8px;
    border-radius: 8px;
    color: #ccc;
    border-left: 4px solid var(--primary-color);
}

.questions-list li:last-child,
.talking-points-list li:last-child {
    margin-bottom: 0;
}

/* News List */
.news-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.news-item {
    background: #333;
    padding: 16px;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
}

.news-content p {
    color: #ccc;
    margin-bottom: 8px;
}

.news-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: #aaa;
}


/* Example Section */
.example-section {
    margin-top: 60px;
    text-align: center;
}

.example-section h3 {
    font-size: 1.5rem;
    margin-bottom: 24px;
    color: #fff;
}

.example-companies {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    max-width: 800px;
    margin: 0 auto;
}

.example-company {
    background: #222;
    border-radius: 12px;
    padding: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid #333;
    display: flex;
    align-items: center;
    gap: 16px;
}

.example-company:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.example-logo {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #fff;
}

.example-info h4 {
    font-size: 1.1rem;
    margin-bottom: 4px;
    color: #fff;
}

.example-info p {
    color: #aaa;
    font-size: 0.9rem;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .company-research-body .container {
        padding: 0 16px;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
    
    .search-input-group {
        flex-direction: column;
        gap: 12px;
        padding: 16px;
    }
    
    .search-btn {
        width: 100%;
        justify-content: center;
    }
    
    .company-header {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }
    
    .company-details {
        justify-content: center;
    }
    
    .research-tabs {
        flex-direction: column;
        gap: 0;
    }
    
    .tab-btn {
        border-bottom: 1px solid #333;
        border-radius: 0;
    }
    
    .tab-btn:first-child {
        border-radius: 8px 8px 0 0;
    }
    
    .tab-btn:last-child {
        border-radius: 0 0 8px 8px;
    }
    
    .example-companies {
        grid-template-columns: 1fr;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .satisfaction-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .info-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    
    .info-value {
        text-align: left;
        max-width: 100%;
    }
}

/* Detailed Question Analysis Styles */
.detailed-analysis {
    background: #1f2937;
    border: 1px solid #374151;
    border-radius: 12px;
    padding: 24px;
    margin-top: 24px;
}

.analysis-header {
    margin-bottom: 24px;
}

.analysis-header h3 {
    color: #f9fafb;
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 8px 0;
}

.analysis-header p {
    color: #9ca3af;
    font-size: 16px;
    margin: 0;
}

.question-navigation {
    margin-bottom: 24px;
}

.question-tabs {
    display: flex;
    gap: 8px;
}

.question-tab {
    background: #374151;
    color: #f9fafb;
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.question-tab:hover {
    background: #4b5563;
}

.question-tab.active {
    background: #111827;
    border-color: #f9fafb;
}

.question-details {
    margin-bottom: 24px;
}

.question-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.question-type {
    background: #8b5cf6;
    color: #f9fafb;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.question-score {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #10b981;
    font-weight: 600;
    font-size: 16px;
}

.question-text {
    color: #f9fafb;
    font-size: 18px;
    font-weight: 500;
    line-height: 1.5;
}

.answer-section {
    margin-bottom: 24px;
}

.answer-section label {
    display: block;
    color: #9ca3af;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
}

.answer-content {
    background: #374151;
    border: 1px solid #4b5563;
    border-radius: 8px;
    padding: 16px;
    color: #f9fafb;
    min-height: 100px;
    line-height: 1.5;
}

.feedback-sections {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
}

.feedback-section {
    background: #111827;
    border: 1px solid #374151;
    border-radius: 8px;
    padding: 20px;
}

.feedback-section.ai-suggestion {
    background: #1e1b4b;
    border-color: #8b5cf6;
}

.feedback-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.feedback-header i {
    font-size: 16px;
}

.feedback-section.strengths .feedback-header i {
    color: #10b981;
}

.feedback-section.improvements .feedback-header i {
    color: #f59e0b;
}

.feedback-section.ai-suggestion .feedback-header i {
    color: #8b5cf6;
}

.feedback-header h4 {
    color: #f9fafb;
    font-size: 16px;
    font-weight: 600;
    margin: 0;
}

.feedback-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feedback-section li {
    color: #f9fafb;
    padding: 4px 0;
    position: relative;
    padding-left: 16px;
}

.feedback-section li::before {
    content: '•';
    color: #6366f1;
    position: absolute;
    left: 0;
}

.feedback-section p {
    color: #f9fafb;
    margin: 0;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .feedback-sections {
        grid-template-columns: 1fr;
    }
    
    .question-tabs {
        flex-wrap: wrap;
    }
}

#sign-out-link {
    width: fit-content;
    margin: 0 auto;
}
