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

:root {
    --primary: #101d2d;
    --primary-dark: #0d1621;
    --secondary: #64748b;
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --info: #101d2d;
    --cyan: #06b6d4;
    --purple: #101d2d;
    --pink: #ec4899;
    --yellow: #eab308;
    --dark: #1e293b;
    --light: #f8fafc;
    --white: #ffffff;
    --border: #e2e8f0;
    --text-primary: #0f172a;
    --text-secondary: #64748b;
    --sidebar-width: 260px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--light);
    color: var(--text-primary);
    line-height: 1.6;
}

.dashboard-wrapper {
    display: flex;
    min-height: 100vh;
}

/* Sidebar Styles */
.sidebar {
    width: var(--sidebar-width);
    background: linear-gradient(180deg, #0d1621 0%, #101d2d 50%, #14283a 100%);
    color: var(--white);
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.sidebar-brand {
    padding: 24px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.brand-icon {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.2;
}

.brand-tagline {
    font-size: 12px;
    opacity: 0.8;
}

.sidebar-nav {
    flex: 1;
    padding: 20px 0;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: all 0.3s;
    margin: 4px 12px;
    border-radius: 8px;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(4px);
}

.nav-item.active {
    background: rgba(255, 255, 255, 0.15);
    font-weight: 600;
}

.nav-icon {
    font-size: 20px;
    width: 24px;
    text-align: center;
}

.nav-text {
    font-size: 14px;
}

.sidebar-footer {
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.logout-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    transition: all 0.3s;
}

.logout-btn:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* Main Content */
.main-content {
    margin-left: var(--sidebar-width);
    flex: 1;
    padding: 24px;
    min-height: 100vh;
}

/* Top Header */
.top-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    background: var(--white);
    padding: 20px 24px;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.header-left {
    flex: 1;
}

.page-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.page-subtitle {
    font-size: 14px;
    color: var(--text-secondary);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

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

.profile-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #101d2d, #14283a);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 700;
    font-size: 18px;
}

.profile-info {
    display: flex;
    flex-direction: column;
}

.profile-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.profile-role {
    font-size: 12px;
    color: var(--text-secondary);
}

/* Alert Styles */
.alert {
    background: var(--white);
    border: 1px solid var(--border);
    border-left: 4px solid var(--warning);
    border-radius: 8px;
    padding: 16px 20px;
    margin-bottom: 24px;
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.alert-warning {
    border-left-color: var(--warning);
    background: #fffbeb;
}

.alert-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.alert-content {
    flex: 1;
}

.alert-content strong {
    display: block;
    margin-bottom: 4px;
    font-size: 15px;
}

.alert-content p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.alert-btn {
    display: inline-block;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
}

.alert-btn:hover {
    text-decoration: underline;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.stat-card {
    background: var(--white);
    border-radius: 12px;
    padding: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
}

.stat-card.stat-cyan::before { background: var(--cyan); }
.stat-card.stat-blue::before { background: var(--info); }
.stat-card.stat-green::before { background: var(--success); }
.stat-card.stat-dark::before { background: var(--dark); }
.stat-card.stat-red::before { background: var(--danger); }
.stat-card.stat-yellow::before { background: var(--yellow); }
.stat-card.stat-blue-alt::before { background: var(--primary); }

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.stat-content {
    flex: 1;
}

.stat-value {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.stat-label {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
}

.stat-icon {
    font-size: 40px;
    opacity: 0.2;
}

/* Content Grid */
.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}

.content-card {
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
}

.card-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
}

.btn-link {
    color: var(--primary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: color 0.3s;
}

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

.card-body {
    padding: 24px;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 40px 20px;
}

.empty-icon {
    font-size: 64px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.empty-text {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.empty-subtext {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

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

.application-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 16px;
    background: var(--light);
    border-radius: 8px;
    border: 1px solid var(--border);
    transition: all 0.3s;
}

.application-item:hover {
    border-color: var(--primary);
    box-shadow: 0 2px 8px rgba(16, 29, 45, 0.1);
}

.application-main {
    flex: 1;
}

.application-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.application-company {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.application-meta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.meta-item {
    font-size: 12px;
    color: var(--text-secondary);
}

.application-status {
    flex-shrink: 0;
}

/* Badges */
.badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.badge-default {
    background: #e2e8f0;
    color: #475569;
}

.badge-success {
    background: #dcfce7;
    color: #166534;
}

.badge-danger {
    background: #fee2e2;
    color: #991b1b;
}

.badge-warning {
    background: #fef3c7;
    color: #92400e;
}

.badge-info {
    background: #dbeafe;
    color: #1e40af;
}

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

.interview-item {
    display: flex;
    gap: 16px;
    padding: 16px;
    background: var(--light);
    border-radius: 8px;
    border: 1px solid var(--border);
    align-items: center;
    transition: all 0.3s;
}

.interview-item:hover {
    border-color: var(--primary);
    box-shadow: 0 2px 8px rgba(16, 29, 45, 0.1);
}

.interview-date {
    background: #101d2d;
    color: var(--white);
    border-radius: 8px;
    padding: 12px;
    text-align: center;
    min-width: 64px;
}

.date-day {
    font-size: 24px;
    font-weight: 700;
    line-height: 1;
}

.date-month {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.interview-details {
    flex: 1;
}

.interview-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.interview-company {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.interview-meta {
    display: flex;
    gap: 12px;
}

/* Quick Actions */
.quick-actions {
    margin-bottom: 32px;
}

.section-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.action-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px;
    display: flex;
    gap: 16px;
    text-decoration: none;
    transition: all 0.3s;
}

.action-card:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(16, 29, 45, 0.1);
    transform: translateY(-2px);
}

.action-icon {
    font-size: 32px;
    flex-shrink: 0;
}

.action-content h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.action-content p {
    font-size: 13px;
    color: var(--text-secondary);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

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

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 29, 45, 0.3);
}

.btn-secondary {
    background: var(--secondary);
    color: var(--white);
}

.btn-secondary:hover {
    background: #475569;
    transform: translateY(-1px);
}

.btn-danger {
    background: var(--danger);
    color: var(--white);
}

.btn-danger:hover {
    background: #dc2626;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.btn-sm {
    padding: 6px 16px;
    font-size: 13px;
}

.badge {
    display: inline-block;
    padding: 4px 12px;
    background: #e8eef3;
    color: #101d2d;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

/* Footer */
.dashboard-footer {
    text-align: center;
    padding: 24px;
    color: var(--text-secondary);
    font-size: 13px;
    border-top: 1px solid var(--border);
    background: var(--white);
    border-radius: 12px;
    margin-top: 32px;
}

/* Mobile Menu Toggle */
.mobile-sidebar-toggle {
    display: none;
    position: fixed;
    top: 16px;
    left: 16px;
    z-index: 1002;
    background: var(--primary);
    color: var(--white);
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 8px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.3s;
}

.mobile-sidebar-toggle:hover {
    background: var(--primary-dark);
}

.mobile-sidebar-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--white);
    margin: 4px auto;
    transition: all 0.3s;
}

.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
    opacity: 0;
    transition: opacity 0.3s;
}

.sidebar-overlay.active {
    opacity: 1;
}

/* Responsive */
@media (max-width: 1200px) {
    .main-content {
        padding: 20px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

@media (max-width: 992px) {
    .mobile-sidebar-toggle {
        display: flex;
    }

    .sidebar-overlay {
        display: block;
    }

    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 999;
    }

    .sidebar.active {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0;
        padding: 80px 20px 20px;
    }

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

    .top-header {
        padding: 16px 20px;
    }

    .page-title {
        font-size: 24px;
    }
}

@media (max-width: 768px) {
    html, body {
        overflow-x: hidden;
        max-width: 100%;
    }

    .main-content {
        padding: 70px 16px 16px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .stat-card {
        padding: 20px;
    }

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

    .page-title {
        font-size: 22px;
    }

    .page-subtitle {
        font-size: 13px;
    }

    .header-right {
        width: 100%;
        justify-content: space-between;
    }

    .profile-info {
        display: none;
    }

    .content-card {
        padding: 20px 16px;
    }

    .card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .card-actions {
        width: 100%;
        justify-content: flex-start;
    }

    .table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .data-table {
        min-width: 600px;
    }

    .btn {
        padding: 10px 16px;
        font-size: 13px;
    }

    .btn-sm {
        padding: 6px 12px;
        font-size: 12px;
    }

    .alert {
        padding: 12px 16px;
        flex-direction: column;
        gap: 12px;
    }

    .sidebar {
        width: 280px;
    }

    .brand-icon {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }

    .brand-name {
        font-size: 16px;
    }

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

    .application-item,
    .interview-item {
        flex-direction: column;
        gap: 12px;
    }

    .application-meta {
        flex-direction: column;
        gap: 8px;
    }
}

@media (max-width: 576px) {
    .mobile-sidebar-toggle {
        top: 12px;
        left: 12px;
        width: 40px;
        height: 40px;
    }

    .main-content {
        padding: 65px 12px 12px;
    }

    .top-header {
        padding: 12px;
    }

    .page-title {
        font-size: 20px;
    }

    .stat-card {
        padding: 16px;
    }

    .stat-value {
        font-size: 28px;
    }

    .stat-label {
        font-size: 12px;
    }

    .content-card {
        padding: 16px 12px;
    }

    .card-title {
        font-size: 18px;
    }

    .btn {
        padding: 10px 14px;
        font-size: 13px;
    }

    .btn-lg {
        padding: 12px 20px;
        font-size: 14px;
    }

    .sidebar {
        width: 260px;
    }

    .nav-text {
        font-size: 13px;
    }
}

@media (max-width: 375px) {
    .page-title {
        font-size: 18px;
    }

    .stat-value {
        font-size: 24px;
    }

    .card-title {
        font-size: 16px;
    }

    .sidebar {
        width: 100%;
    }
}
