/* ==================== RESET & BASE ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f4f1eb;
    color: #2c3e50;
    line-height: 1.6;
    overflow-x: hidden;
}

/* ==================== LANDING PAGE ==================== */
.landing-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.header {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    padding: 1.5rem 1rem;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.logo h1 {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 0.25rem;
}

.tagline {
    font-size: 0.875rem;
    color: #f4f1eb;
    letter-spacing: 1px;
}

.hero {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem 1rem;
    background: white;
    text-align: center;
}

.hero-content {
    margin-bottom: 2rem;
}

.hero-title {
    font-size: 1.75rem;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: #7f8c8d;
    margin-bottom: 1rem;
}

.hero-description {
    font-size: 0.9375rem;
    color: #95a5a6;
    max-width: 500px;
    margin: 0 auto;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.features {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 2rem 1rem;
    background: #f4f1eb;
}

.feature-card {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
}

.feature-card h3 {
    font-size: 1.125rem;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.feature-card p {
    font-size: 0.875rem;
    color: #7f8c8d;
}

.footer {
    background: #2c3e50;
    color: white;
    padding: 2rem 1rem;
    margin-top: auto;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-section h4 {
    font-size: 1rem;
    margin-bottom: 0.75rem;
    color: #f4f1eb;
}

.footer-section p {
    font-size: 0.875rem;
    color: #bdc3c7;
    margin-bottom: 0.5rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: #bdc3c7;
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #f4f1eb;
}

/* ==================== BUTTONS ==================== */
.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 6px;
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: #2c3e50;
    color: white;
}

.btn-primary:hover {
    background: #34495e;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(44,62,80,0.3);
}

.btn-secondary {
    background: white;
    color: #2c3e50;
    border: 2px solid #2c3e50;
}

.btn-secondary:hover {
    background: #2c3e50;
    color: white;
}

.btn-danger {
    background: #e74c3c;
    color: white;
}

.btn-danger:hover {
    background: #c0392b;
}

.btn-block {
    width: 100%;
    display: block;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.8125rem;
}

/* ==================== AUTH PAGES ==================== */
.auth-container {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    background: linear-gradient(135deg, #f4f1eb 0%, #e8e4da 100%);
}

.auth-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 400px;
}

.logo-small h2 {
    font-size: 1.5rem;
    color: #2c3e50;
    text-align: center;
    margin-bottom: 0.5rem;
    letter-spacing: 2px;
}

.auth-title {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
}

.auth-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.auth-tab {
    flex: 1;
    padding: 0.75rem;
    border: none;
    background: #f4f1eb;
    color: #7f8c8d;
    font-weight: 600;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.auth-tab.active {
    background: #2c3e50;
    color: white;
}

.auth-form {
    margin-bottom: 1rem;
}

.auth-footer {
    text-align: center;
    margin-top: 1rem;
}

.auth-footer a {
    color: #7f8c8d;
    text-decoration: none;
    font-size: 0.875rem;
}

.auth-footer a:hover {
    color: #2c3e50;
}

/* ==================== FORMS ==================== */
.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #2c3e50;
    font-weight: 600;
    font-size: 0.875rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e0ddd5;
    border-radius: 6px;
    font-size: 0.9375rem;
    transition: border-color 0.3s ease;
    background: white;
    color: #2c3e50;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #2c3e50;
}

.form-hint {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.75rem;
    color: #7f8c8d;
}

.form-section {
    background: #f9f8f5;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    border-left: 4px solid #2c3e50;
}

.form-section h3 {
    color: #2c3e50;
    font-size: 1.125rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid #e0ddd5;
    padding-bottom: 0.5rem;
}

/* ==================== DASHBOARD ==================== */
.dashboard-container {
    min-height: 100vh;
    background: #f4f1eb;
}

.dashboard-header {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    flex-wrap: wrap;
    gap: 1rem;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.user-info span {
    font-size: 0.875rem;
}

.dashboard-content {
    padding: 1rem;
    max-width: 1400px;
    margin: 0 auto;
}

.dashboard-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
}

.dashboard-tab {
    padding: 0.75rem 1.5rem;
    background: white;
    border: none;
    color: #7f8c8d;
    font-weight: 600;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.3s ease;
    white-space: nowrap;
    font-size: 0.875rem;
}

.dashboard-tab.active {
    background: #2c3e50;
    color: white;
}

.tab-content {
    display: none;
}

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

.section-title {
    font-size: 1.5rem;
    color: #2c3e50;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 3px solid #2c3e50;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.section-header .section-title {
    margin-bottom: 0;
    border-bottom: none;
}

/* ==================== APPLICATIONS ==================== */
.filter-section {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.filter-select {
    padding: 0.75rem;
    border: 2px solid #e0ddd5;
    border-radius: 6px;
    background: white;
    color: #2c3e50;
    font-size: 0.875rem;
    cursor: pointer;
    flex: 1;
    min-width: 150px;
}

.applications-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.application-card {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    border-left: 4px solid #2c3e50;
    transition: transform 0.3s ease;
}

.application-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.app-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    gap: 1rem;
    flex-wrap: wrap;
}

.app-header h3 {
    font-size: 1.125rem;
    color: #2c3e50;
    margin-bottom: 0.25rem;
}

.app-meta {
    font-size: 0.8125rem;
    color: #7f8c8d;
}

.app-details {
    margin-bottom: 1rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.5rem;
}

.app-details p {
    font-size: 0.875rem;
    color: #555;
}

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

.status-select {
    padding: 0.5rem;
    border: 2px solid #e0ddd5;
    border-radius: 6px;
    background: white;
    color: #2c3e50;
    font-size: 0.8125rem;
    cursor: pointer;
}

.status-badge {
    display: inline-block;
    padding: 0.375rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge.pending {
    background: #f39c12;
    color: white;
}

.status-badge.reviewing {
    background: #3498db;
    color: white;
}

.status-badge.shortlisted {
    background: #9b59b6;
    color: white;
}

.status-badge.interview-scheduled {
    background: #1abc9c;
    color: white;
}

.status-badge.accepted {
    background: #27ae60;
    color: white;
}

.status-badge.rejected {
    background: #e74c3c;
    color: white;
}

/* ==================== ROLES & COMPANIES ==================== */
.roles-grid,
.companies-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.role-card,
.company-card {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    border-left: 4px solid #2c3e50;
}

.role-card h3,
.company-card h3 {
    font-size: 1.125rem;
    color: #2c3e50;
    margin-bottom: 0.75rem;
}

.role-type {
    margin-bottom: 0.5rem;
    color: #555;
    font-size: 0.875rem;
}

.role-desc,
.company-desc {
    margin-top: 0.75rem;
    color: #7f8c8d;
    font-size: 0.875rem;
    line-height: 1.5;
}

.role-actions,
.company-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

/* ==================== MODAL ==================== */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.6);
    padding: 1rem;
}

.modal-content {
    background-color: white;
    margin: 2rem auto;
    padding: 2rem;
    border-radius: 12px;
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.modal-large {
    max-width: 800px;
}

.close {
    color: #7f8c8d;
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close:hover {
    color: #2c3e50;
}

.details-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-top: 1.5rem;
}

.detail-item {
    padding: 0.75rem;
    background: #f9f8f5;
    border-radius: 6px;
    border-left: 3px solid #2c3e50;
}

.detail-item.full-width {
    grid-column: 1 / -1;
}

.detail-item strong {
    display: block;
    color: #2c3e50;
    font-size: 0.8125rem;
    margin-bottom: 0.25rem;
}

/* ==================== MESSAGES ==================== */
.error-message {
    color: #e74c3c;
    font-size: 1rem;
    font-weight: 600;
    margin-top: 1rem;
    padding: 1rem;
    background: #fadbd8;
    border-radius: 8px;
    border-left: 4px solid #e74c3c;
    display: none;
    text-align: center;
    animation: slideIn 0.3s ease-out;
    box-shadow: 0 2px 8px rgba(231, 76, 60, 0.2);
}

.error-message:not(:empty) {
    display: block;
}

.success-message {
    color: #27ae60;
    font-size: 1rem;
    font-weight: 600;
    margin-top: 1rem;
    padding: 1rem;
    background: #d4edda;
    border-radius: 8px;
    border-left: 4px solid #27ae60;
    display: none;
    text-align: center;
    animation: slideIn 0.3s ease-out;
    box-shadow: 0 2px 8px rgba(39, 174, 96, 0.2);
}

.success-message:not(:empty) {
    display: block;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.loading-text {
    text-align: center;
    color: #7f8c8d;
    padding: 2rem;
    font-size: 0.9375rem;
}

.no-data {
    text-align: center;
    color: #7f8c8d;
    padding: 2rem;
    font-size: 0.9375rem;
}

/* ==================== RESPONSIVE - TABLET ==================== */
@media (min-width: 768px) {
    .features {
        grid-template-columns: repeat(3, 1fr);
    }

    .footer-content {
        grid-template-columns: repeat(3, 1fr);
    }

    .auth-card {
        padding: 2.5rem;
    }

    .hero-title {
        font-size: 2.25rem;
    }

    .hero-subtitle {
        font-size: 1.25rem;
    }

    .applications-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .roles-grid,
    .companies-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .app-details {
        grid-template-columns: repeat(2, 1fr);
    }

    .details-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .dashboard-tabs {
        overflow-x: visible;
    }

    .dashboard-tab {
        font-size: 0.9375rem;
    }
}

/* ==================== RESPONSIVE - DESKTOP ==================== */
@media (min-width: 1024px) {
    .header {
        padding: 2rem;
    }

    .logo h1 {
        font-size: 2.5rem;
    }

    .hero {
        padding: 4rem 2rem;
    }

    .features {
        padding: 3rem 2rem;
    }

    .footer {
        padding: 3rem 2rem;
    }

    .applications-container {
        grid-template-columns: repeat(3, 1fr);
    }

    .roles-grid,
    .companies-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .modal-content {
        margin: 5rem auto;
    }
}

/* ==================== PRINT STYLES ==================== */
@media print {
    .dashboard-header,
    .dashboard-tabs,
    .btn,
    .modal {
        display: none !important;
    }

    body {
        background: white;
    }

    .application-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }
}
