:root {
    --primary: #4f46e5;
    --primary-hover: #4338ca;
    --primary-light: #e0e7ff;
    --bg: #f9fafb;
    --card-bg: #ffffff;
    --text-main: #111827;
    --text-muted: #6b7280;
    --border: #f3f4f6;
    --red: #ef4444;
    --green: #10b981;
    --pink: #ec4899;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

body {
    background-color: var(--bg);
    color: var(--text-main);
    min-height: 100vh;
}

.auth-body {
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    transition: background-image 0.5s ease-in-out;
    background-image: linear-gradient(rgba(17, 24, 39, 0.7), rgba(17, 24, 39, 0.7)), url('assets/images/login_bg.png');
}

.auth-body[data-role="student"] {
    background-image: linear-gradient(rgba(249, 250, 251, 0.7), rgba(249, 250, 251, 0.7)), url('assets/images/student_bg.png');
}

.auth-body[data-role="employer"] {
    background-image: linear-gradient(rgba(249, 250, 251, 0.7), rgba(249, 250, 251, 0.7)), url('assets/images/employer_bg.png');
}

.layout {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 280px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    border-right: 1px solid rgba(243, 244, 246, 0.5);
    padding: 24px;
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 48px;
    padding: 0 8px;
}

.logo-box {
    width: 40px;
    height: 40px;
    background: var(--primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 900;
    font-size: 20px;
    box-shadow: 0 10px 15px -3px rgba(79, 70, 229, 0.2);
}

.logo-text {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.025em;
}

.nav-menu {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 16px;
    border-radius: 16px;
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    transition: all 0.2s;
    border: none;
    background: transparent;
    cursor: pointer;
    width: 100%;
    text-align: left;
}

.nav-item i {
    font-size: 20px;
}

.nav-item:hover {
    background: var(--bg);
    color: var(--primary);
}

.nav-item.active {
    background: var(--primary);
    color: white;
    box-shadow: 0 10px 15px -3px rgba(79, 70, 229, 0.2);
}

.sidebar-footer {
    padding-top: 24px;
    border-top: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.btn-switch {
    background: var(--primary-light);
    color: var(--primary);
    font-weight: 700;
    font-size: 14px;
}

.btn-switch:hover {
    background: #dbeafe;
}

/* Main Content */
.main-content {
    flex: 1;
    padding: 0 40px 40px 40px;
    overflow-y: auto;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 0;
    position: sticky;
    top: 0;
    background: rgba(249, 250, 251, 0.5);
    backdrop-filter: blur(12px);
    z-index: 30;
}

.breadcrumb {
    font-size: 14px;
    font-weight: 600;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 24px;
}

.notification-btn {
    position: relative;
    padding: 8px;
    color: #9ca3af;
    background: transparent;
    border: none;
    cursor: pointer;
}

.notification-dot {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 8px;
    height: 8px;
    background: var(--pink);
    border-radius: 50%;
    border: 2px solid var(--bg);
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 4px 16px 4px 4px;
    background: white;
    border-radius: 9999px;
    border: 1px solid var(--border);
    cursor: pointer;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.avatar {
    width: 32px;
    height: 32px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
}

.username {
    font-size: 14px;
    font-weight: 700;
    color: #374151;
}

/* Dashboard Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 24px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(8px);
    padding: 24px;
    border-radius: 24px;
    border: 1px solid rgba(243, 244, 246, 0.5);
}

.stat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.stat-value {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 4px;
}

.stat-label {
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 500;
}

/* Internship Cards */
.internship-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 24px;
    margin-top: 24px;
}

.internship-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(8px);
    padding: 24px;
    border-radius: 24px;
    border: 1px solid rgba(243, 244, 246, 0.5);
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
}

.internship-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.company-info {
    display: flex;
    gap: 16px;
}

.company-logo {
    width: 48px;
    height: 48px;
    background: var(--bg);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 20px;
    color: var(--primary);
}

.role-title {
    font-weight: 700;
    font-size: 18px;
    margin-bottom: 4px;
}

.company-name {
    color: var(--text-muted);
    font-size: 14px;
}

.match-badge {
    padding: 6px 12px;
    border-radius: 9999px;
    font-size: 12px;
    font-weight: 700;
    background: #ecfdf5;
    color: #059669;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
    padding-top: 16px;
}

.tag {
    padding: 4px 12px;
    border-radius: 9999px;
    font-size: 12px;
    font-weight: 600;
    background: var(--bg);
    color: var(--text-muted);
}

.btn-apply {
    width: 100%;
    padding: 12px;
    border-radius: 14px;
    background: var(--primary);
    color: white;
    border: none;
    font-weight: 700;
    margin-top: 24px;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-apply:hover {
    background: var(--primary-hover);
}

/* Toast */
.toast {
    position: fixed;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    background: #111827;
    color: white;
    padding: 12px 24px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    z-index: 1000;
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        transform: translate(-50%, 100%);
        opacity: 0;
    }

    to {
        transform: translate(-50%, 0);
        opacity: 1;
    }
}

/* Loader */
.loader {
    display: flex;
    justify-content: center;
    padding: 40px;
}

.hidden {
    display: none !important;
}

/* Auth Pages */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    padding: 24px;
}

.auth-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    padding: 40px;
    border-radius: 32px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 450px;
    border: 1px solid rgba(243, 244, 246, 0.5);
    animation: authSlideUp 0.5s ease-out;
}

@keyframes authSlideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.auth-header {
    text-align: center;
    margin-bottom: 32px;
}

.auth-logo {
    width: 64px;
    height: 64px;
    background: var(--primary);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 800;
    font-size: 32px;
    margin: 0 auto 20px;
}

.auth-title {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 8px;
    color: var(--text-main);
}

.auth-subtitle {
    color: var(--text-muted);
    font-size: 15px;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #374151;
}

.form-input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: 12px;
    font-size: 15px;
    transition: all 0.2s;
    outline: none;
}

.form-input:focus {
    border-color: var(--primary);
}

.role-selector {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 24px;
}

.role-option {
    padding: 12px;
    border: 2px solid var(--border);
    border-radius: 12px;
    text-align: center;
    cursor: pointer;
    font-weight: 700;
    font-size: 14px;
    transition: all 0.2s;
}

.role-option.active {
    border-color: var(--primary);
    background: var(--primary-light);
    color: var(--primary);
}

.auth-footer {
    text-align: center;
    margin-top: 24px;
    font-size: 14px;
    color: var(--text-muted);
}

.auth-link {
    color: var(--primary);
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
}

/* Modern Dashboard Styles */
.dashboard-hero {
    background: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
    border-radius: 24px;
    padding: 40px;
    color: white;
    margin-bottom: 32px;
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 20px 25px -5px rgba(99, 102, 241, 0.4);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 60%;
}

.hero-content h1 {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 12px;
}

.hero-content p {
    font-size: 16px;
    opacity: 0.9;
    margin-bottom: 24px;
    line-height: 1.5;
}

/* Gamification Elements */
.gamification-stats {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}

.stat-badge {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    padding: 8px 16px;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 700;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    animation: float 3s ease-in-out infinite;
}

.stat-badge.level {
    animation-delay: 1.5s;
    background: rgba(251, 191, 36, 0.2);
    /* Gold tint */
    border-color: rgba(251, 191, 36, 0.4);
}

.stat-badge .emoji {
    font-size: 18px;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

.hero-btn {
    padding: 14px 28px;
    background: white;
    color: #6366f1;
    border: none;
    border-radius: 16px;
    font-weight: 800;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.hero-btn:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2);
}

/* Enhanced Cards */
.stat-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid white;
}

.stat-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 25px 30px -5px rgba(0, 0, 0, 0.1);
    z-index: 10;
}

.activity-item {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.activity-item:hover {
    transform: translateX(8px) scale(1.01);
    background: white;
    box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.05);
}

.hero-image {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    width: 50%;
    z-index: 1;
    mask-image: linear-gradient(to right, transparent, black);
    -webkit-mask-image: linear-gradient(to right, transparent, black);
}

.hero-image img {
    height: 100%;
    width: 100%;
    object-fit: cover;
}

/* Modern Stat Cards */
.stat-card.accent-purple .stat-icon-wrapper {
    background: #e0e7ff;
    color: #4f46e5;
}

.stat-card.accent-pink .stat-icon-wrapper {
    background: #fce7f3;
    color: #ec4899;
}

.stat-card.accent-green .stat-icon-wrapper {
    background: #dcfce7;
    color: #10b981;
}

.stat-icon-wrapper {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    font-size: 24px;
}

.stat-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Section Headers */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 40px;
    margin-bottom: 24px;
}

.section-header h3 {
    font-weight: 800;
    font-size: 20px;
}

.btn-link {
    background: none;
    border: none;
    color: var(--primary);
    font-weight: 600;
    cursor: pointer;
    font-size: 14px;
}

/* Modern Activity List */
.activity-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.activity-item {
    background: white;
    /* Fallback */
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(243, 244, 246, 0.6);
    padding: 16px 24px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.activity-item:hover {
    transform: translateX(4px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
    background: rgba(255, 255, 255, 0.9);
}

.company-logo.small {
    width: 40px;
    height: 40px;
    font-size: 16px;
    border-radius: 10px;
}

.activity-details {
    flex: 1;
}

.activity-role {
    font-weight: 700;
    font-size: 15px;
    color: var(--text-main);
    margin-bottom: 2px;
}

.activity-company {
    font-size: 13px;
    color: var(--text-muted);
}

.activity-status {
    font-size: 12px;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 9999px;
    text-transform: capitalize;
}

.activity-status.pending {
    background: #fff7ed;
    color: #c2410c;
}

.activity-status.interview {
    background: #eff6ff;
    color: #1d4ed8;
}

.activity-status.rejected {
    background: #fef2f2;
    color: #b91c1c;
}

.activity-status.accepted {
    background: #f0fdf4;
    color: #15803d;
}

.empty-state {
    text-align: center;
    padding: 40px;
    color: var(--text-muted);
    font-style: italic;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 16px;
    border: 1px dashed var(--border);
}