.dashboard-section {
    padding: 40px 0;
    background: var(--bg-light);
}

.dashboard-title {
    font-size: 28px;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 24px;
    text-align: center;
}


.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin-bottom: 32px;
}

.metric-card {
    background: var(--white);
    padding: 16px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s;
}

.metric-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.metric-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.metric-content h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
}

.metric-content p {
    font-size: 12px;
    color: var(--text-gray);
    margin: 2px 0 0;
}


.charts-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    margin-bottom: 32px;
}

.chart-card {
    background: var(--white);
    padding: 16px;
    border-radius: 10px;
    box-shadow: var(--shadow-sm);
}

.chart-card h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.chart-card canvas {
    max-height: 200px;
}


.calendar-card {
    display: none;
    background: var(--white);
    padding: 24px;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
}

.calendar-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
}

.calendar-day {
    aspect-ratio: 1;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 8px;
    font-size: 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.calendar-day.header {
    font-weight: 700;
    color: var(--text-gray);
    border: none;
}

.calendar-day.has-followup {
    background: #FFF3E0;
    border-color: var(--accent-orange);
    cursor: pointer;
}

.calendar-day.has-followup:hover {
    background: #FFE0B2;
}

.calendar-day-number {
    font-weight: 600;
    margin-bottom: 4px;
}

.calendar-day-indicator {
    width: 6px;
    height: 6px;
    background: var(--accent-orange);
    border-radius: 50%;
}


.applications-section {
    padding: 60px 0;
    background: var(--white);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

.section-header h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-dark);
}

.applications-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

@media (max-width: 768px) {
    .applications-list {
        grid-template-columns: 1fr;
    }
}


.application-card {
    background: var(--white);
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);

    transition: all 0.3s ease;
    border: 1px solid transparent;

    display: flex;
    flex-direction: column;
    gap: 16px;
    position: relative;
    overflow: hidden;
}


.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.header-main {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.header-main h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
}

.header-main .role {
    font-size: 14px;
    color: var(--text-gray);
    font-weight: 500;
}

.status-badge {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}


.card-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.info-row {
    display: flex;
    gap: 24px;
    align-items: center;
    flex-wrap: wrap;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-dark);
    font-weight: 500;
}

.info-item svg {
    width: 16px;
    height: 16px;
    color: var(--text-gray);
}

.info-item a {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 600;
}

.info-item a:hover {
    text-decoration: underline;
}


.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
    padding-top: 16px;
    border-top: 1px solid #f0f0f0;
}

.action-buttons {
    display: flex;
    gap: 10px;
}

.btn-action {
    padding: 8px 16px;
    border-radius: 20px;

    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-edit {
    background: #0284c7;

    color: white;
}

.btn-edit:hover {
    background: #0369a1;
}

.btn-delete {
    background: #dc2626;

    color: white;
}

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

.btn-view {
    background: #16a34a;

    color: white;
}

.btn-view:hover {
    background: #15803d;
}

.resume-link {
    font-size: 14px;
    color: var(--text-gray);
    text-decoration: underline;
    font-weight: 500;
}

.resume-link:hover {
    color: var(--text-dark);
}


[data-theme="dark"] .application-card {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-sm);
}


[data-theme="dark"] .application-card:hover {
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-color);
}

[data-theme="dark"] .header-main h3 {
    color: var(--text-main);
    text-shadow: 0 0 10px var(--glow-primary);
}

[data-theme="dark"] .header-main .role {
    color: #94a3b8;
}


[data-theme="dark"] .status-badge {
    box-shadow: 0 0 10px currentColor;

}

[data-theme="dark"] .info-item {
    color: var(--text-main);
}

[data-theme="dark"] .info-item svg {
    color: var(--text-muted);
}

[data-theme="dark"] .card-footer {
    border-top: 1px solid var(--glass-border);
}

[data-theme="dark"] .btn-action {
    background: transparent;
    border: 1px solid currentColor;
}

[data-theme="dark"] .btn-edit {
    color: #38bdf8;
    border-color: #38bdf8;
}

[data-theme="dark"] .btn-edit:hover {
    background: rgba(56, 189, 248, 0.1);
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.3);
}

[data-theme="dark"] .btn-delete {
    color: #ef4444;
    border-color: #ef4444;
}

[data-theme="dark"] .btn-delete:hover {
    background: rgba(239, 68, 68, 0.1);
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.3);
}

[data-theme="dark"] .btn-view {
    color: #4ade80;
    border-color: #4ade80;
}

[data-theme="dark"] .btn-view:hover {
    background: rgba(74, 222, 128, 0.1);
    box-shadow: 0 0 15px rgba(74, 222, 128, 0.3);
}

[data-theme="dark"] .resume-link {
    color: var(--text-muted);
}

[data-theme="dark"] .resume-link:hover {
    color: var(--text-main);
    text-shadow: 0 0 5px var(--text-main);
}


.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    overflow-y: auto;
    padding: 40px 20px;
}

.modal.active {
    display: flex !important;
    align-items: center;
    justify-content: center;
    visibility: visible !important;
    opacity: 1 !important;
}

.modal-content {
    background: var(--white);
    border-radius: 16px;
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 32px;
    border-bottom: 2px solid var(--bg-light);
}

.modal-header h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-dark);
}

.close-btn {
    background: none;
    border: none;
    font-size: 32px;
    color: var(--text-gray);
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
}

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


.application-form {
    padding: 32px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-bottom: 32px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    font-family: 'Inter', sans-serif;
    transition: all 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(21, 101, 192, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.file-note {
    font-size: 12px;
    color: var(--text-gray);
    margin-top: 4px;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding-top: 24px;
    border-top: 2px solid var(--bg-light);
}

.btn-secondary {
    background: var(--bg-light);
    color: var(--text-dark);
    border: none;
    padding: 12px 32px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-secondary:hover {
    background: #e0e0e0;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-state svg {
    margin-bottom: 24px;
    opacity: 0.3;
}

.empty-state h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.empty-state p {
    color: var(--text-gray);
    font-size: 16px;
    margin-bottom: 24px;
}


.nav-links a.active {
    opacity: 1;
    position: relative;
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--white);
    border-radius: 2px;
}


@media (max-width: 968px) {
    .metrics-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .charts-grid {
        grid-template-columns: 1fr;
    }

    .chart-card canvas {
        max-height: 250px;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
}

@media (max-width: 640px) {
    .metrics-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-title {
        font-size: 28px;
    }

    .modal-content {
        margin: 0;
        border-radius: 0;
        max-height: 100vh;
    }

    .application-details {
        grid-template-columns: 1fr;
    }
}




.dashboard-section {
    padding-top: 100px;

    background: transparent;
}


[data-theme="dark"] .dashboard-title,
[data-theme="dark"] .section-header h2 {
    color: var(--text-main);
}

[data-theme="dark"] .metric-card,
[data-theme="dark"] .chart-card,
[data-theme="dark"] .calendar-card,
[data-theme="dark"] .application-item {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-sm);
}

[data-theme="dark"] .metric-content h3,
[data-theme="dark"] .chart-card h3,
[data-theme="dark"] .calendar-card h3,
[data-theme="dark"] .application-title h3,
[data-theme="dark"] .detail-item .value {
    color: var(--text-main);
}

[data-theme="dark"] .application-header {
    background: var(--card-bg);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .application-details {
    background: rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .form-actions {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .detail-item {
    color: var(--text-muted);
}

[data-theme="dark"] .form-group label {
    color: var(--text-main);
}

[data-theme="dark"] .form-group input,
[data-theme="dark"] .form-group select,
[data-theme="dark"] .form-group textarea {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    color: var(--text-main);
}

[data-theme="dark"] .btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-main);
}

[data-theme="dark"] .modal-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .modal-header h2 {
    color: var(--text-main);
}


.modal-content {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

[data-theme="dark"] .modal-content {
    background: rgba(30, 41, 59, 0.85);

    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}


.applications-section {
    background: transparent;

}