 :root {
            --primary-green: #1a7f5c;
            --primary-green-light: #2ecc8b;
            --primary-green-dark: #0d5c3e;
            --secondary-green: #94c720;
            --accent-teal: #20c997;
            --accent-lime: #b0e64c;
            --neutral-light: #f5f7fa;
            --neutral-medium: #e9ecef;
            --neutral-dark: #343a40;
            --card-bg: #ffffff;
            --text-primary: #1a1d29;
            --text-secondary: #6c757d;
            --success: #28a745;
            --warning: #ffc107;
            --danger: #dc3545;
            --info: #17a2b8;
            --shadow-xs: 0 1px 3px rgba(0, 0, 0, 0.08);
            --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
            --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
            --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.15);
            --shadow-xl: 0 20px 48px rgba(0, 0, 0, 0.18);
            --radius-sm: 12px;
            --radius-md: 16px;
            --radius-lg: 24px;
            --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        }

        * {
            font-family: 'Inter', sans-serif;
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            background: linear-gradient(135deg, #f5f7fa 0%, #e8eef5 100%);
            color: var(--text-primary);
            line-height: 1.6;
            min-height: 100vh;
            overflow-x: hidden;
        }

        h1, h2, h3, h4, h5, h6 {
            font-family: 'Poppins', sans-serif;
            font-weight: 700;
            letter-spacing: -0.5px;
        }

        /* Login Page Styling */
        .login-container {
            min-height: 100vh;
            display: flex;
            align-items: center;
            justify-content: center;
            background: linear-gradient(135deg, var(--primary-green) 0%, #0d8659 50%, var(--primary-green-dark) 100%);
            padding: 20px;
            position: relative;
            overflow: hidden;
        }

        .login-container::before {
            content: '';
            position: absolute;
            width: 600px;
            height: 600px;
            background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, transparent 70%);
            border-radius: 50%;
            top: -200px;
            right: -200px;
            animation: float 25s ease-in-out infinite;
        }

        .login-container::after {
            content: '';
            position: absolute;
            width: 400px;
            height: 400px;
            background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
            border-radius: 50%;
            bottom: -150px;
            left: -150px;
            animation: float 30s ease-in-out infinite reverse;
        }

        @keyframes float {
            0%, 100% { transform: translateY(0px); }
            50% { transform: translateY(30px); }
        }

        .login-card {
            background-color: var(--card-bg);
            border-radius: var(--radius-lg);
            box-shadow: var(--shadow-xl);
            width: 100%;
            max-width: 500px;
            overflow: hidden;
            position: relative;
            z-index: 1;
            border: none;
            backdrop-filter: blur(10px);
        }

        .login-header {
            background: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-green-light) 100%);
            color: white;
            padding: 20px 30px;
            text-align: center;
            position: relative;
            overflow: hidden;
        }

        .login-header::before {
            content: '';
            position: absolute;
            width: 200px;
            height: 200px;
            background: rgba(255, 255, 255, 0.1);
            border-radius: 50%;
            top: -80px;
            right: -80px;
        }

        .login-header::after {
            content: '';
            position: absolute;
            width: 150px;
            height: 150px;
            background: rgba(255, 255, 255, 0.08);
            border-radius: 50%;
            bottom: -60px;
            left: -60px;
        }

        .university-logo {
            font-size: 5rem;
            margin-bottom: 20px;
            position: relative;
            z-index: 2;
            display: inline-block;
            animation: bounceIn 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
        }

        @keyframes bounceIn {
            0% { 
                opacity: 0;
                transform: scale(0.3);
            }
            50% {
                opacity: 1;
                transform: scale(1.1);
            }
            100% {
                transform: scale(1);
            }
        }

        .login-header h2 {
            font-size: 1.8rem;
            margin-bottom: 8px;
            font-weight: 700;
        }

        .login-header p {
            opacity: 0.95;
            font-size: 0.95rem;
            letter-spacing: 0.5px;
        }

        .login-body {
            padding: 45px 35px;
        }

        .form-label {
            font-weight: 600;
            color: var(--text-primary);
            margin-bottom: 10px;
            font-size: 0.95rem;
        }

        .form-control {
            border-radius: var(--radius-sm);
            padding: 14px 16px;
            border: 1.5px solid var(--neutral-medium);
            margin-bottom: 22px;
            transition: var(--transition);
            font-size: 1rem;
            background-color: #fafbfc;
        }

        .form-control:focus {
            border-color: var(--primary-green);
            box-shadow: 0 0 0 4px rgba(26, 127, 92, 0.15);
            background-color: #ffffff;
        }

        .btn-login {
            background: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-green-light) 100%);
            color: white;
            padding: 14px;
            border-radius: var(--radius-sm);
            font-weight: 700;
            width: 100%;
            border: none;
            transition: var(--transition);
            font-size: 1rem;
            letter-spacing: 0.5px;
            box-shadow: 0 4px 12px rgba(26, 127, 92, 0.3);
        }

        .btn-login:hover {
            transform: translateY(-3px);
            box-shadow: 0 8px 20px rgba(26, 127, 92, 0.4);
            color: white;
        }

        .btn-login:active {
            transform: translateY(-1px);
        }

        /* Dashboard Styling */
        .dashboard-container {
            display: none;
        }

        /* Sticky Navbar */
        .sticky-navbar {
            background: linear-gradient(90deg, var(--primary-green) 0%, var(--primary-green-dark) 100%);
            box-shadow: var(--shadow-md);
            padding: 1rem 0;
            position: sticky;
            top: 0;
            z-index: 1030;
            transition: var(--transition);
            backdrop-filter: blur(10px);
            background-color: rgba(26, 127, 92, 0.95);
        }

        .sticky-navbar.scrolled {
            padding: 0.75rem 0;
            box-shadow: var(--shadow-lg);
        }

        .navbar-brand {
            color: white;
            font-weight: 700;
            font-size: 1.4rem;
            display: flex;
            align-items: center;
            text-decoration: none;
        }

        .navbar-brand i {
            margin-right: 12px;
            font-size: 1.8rem;
        }

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

        .user-avatar {
            width: 48px;
            height: 48px;
            border-radius: 50%;
            background: linear-gradient(135deg, var(--accent-teal) 0%, var(--accent-lime) 100%);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.5rem;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
            border: 2px solid rgba(255, 255, 255, 0.2);
        }

        .user-profile > div {
            display: flex;
            flex-direction: column;
        }

        .user-profile .fw-medium {
            font-size: 0.95rem;
            font-weight: 600;
        }

        .user-profile small {
            opacity: 0.9;
            font-size: 0.8rem;
        }

        /* Sidebar */
        .sidebar {
            background-color: var(--card-bg);
            height: calc(100vh - 70px);
            box-shadow: 2px 0 12px rgba(0, 0, 0, 0.08);
            position: fixed;
            top: 70px;
            left: -300px;
            width: 280px;
            overflow-y: auto;
            transition: var(--transition);
            z-index: 1020;
            border-right: 1px solid var(--neutral-medium);
        }

        .sidebar.active {
            left: 0;
        }

        .sidebar-header {
            padding: 28px 20px;
            border-bottom: 1px solid var(--neutral-medium);
            font-weight: 700;
            color: var(--primary-green);
            display: flex;
            align-items: center;
            background: linear-gradient(135deg, rgba(26, 127, 92, 0.05) 0%, rgba(46, 204, 139, 0.03) 100%);
            font-size: 1rem;
        }

        .sidebar-header i {
            margin-right: 12px;
            font-size: 1.4rem;
        }

        .nav-system-list {
            list-style: none;
            padding: 12px 8px;
        }

        .nav-system-item {
            padding: 14px 16px;
            margin: 4px 0;
            cursor: pointer;
            transition: var(--transition);
            display: flex;
            align-items: center;
            border-radius: 12px;
            border-left: 4px solid transparent;
            color: var(--text-secondary);
        }

        .nav-system-item:hover {
            background-color: rgba(26, 127, 92, 0.08);
            color: var(--primary-green);
            transform: translateX(4px);
        }

        .nav-system-item.active {
            background: linear-gradient(135deg, rgba(26, 127, 92, 0.12) 0%, rgba(46, 204, 139, 0.08) 100%);
            border-left-color: var(--primary-green);
            color: var(--primary-green);
            font-weight: 600;
        }

        .system-icon {
            margin-right: 14px;
            font-size: 1.2rem;
            width: 24px;
            text-align: center;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        /* Main Content Area */
        .main-content {
            padding: 35px;
            min-height: calc(100vh - 70px);
            transition: var(--transition);
            width: 100%;
        }

        .main-content.with-sidebar {
            margin-left: 280px;
            width: calc(100% - 280px);
        }

        /* Dashboard View */
        .dashboard-header {
            margin-bottom: 50px;
            text-align: center;
            max-width: 900px;
            margin-left: auto;
            margin-right: auto;
        }

        .dashboard-title {
            color: var(--primary-green);
            margin-bottom: 15px;
            font-size: 2.8rem;
            position: relative;
            display: inline-block;
            background: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-green-light) 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        .dashboard-subtitle {
            color: var(--text-secondary);
            font-size: 1.1rem;
            margin-top: 20px;
            letter-spacing: 0.3px;
        }

        /* System Cards Grid */
        .system-cards {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
            gap: 28px;
            max-width: 1500px;
            margin: 0 auto;
        }

        .system-card {
            background-color: var(--card-bg);
            border-radius: var(--radius-md);
            box-shadow: var(--shadow-sm);
            padding: 32px 28px;
            transition: var(--transition);
            cursor: pointer;
            border: 2px solid transparent;
            height: 100%;
            display: flex;
            flex-direction: column;
            align-items: center;
            text-align: center;
            position: relative;
            overflow: hidden;
        }

        .system-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 6px;
            background: linear-gradient(90deg, var(--primary-green) 0%, var(--accent-teal) 100%);
        }

        .system-card::after {
            content: '';
            position: absolute;
            bottom: 0;
            right: 0;
            width: 100px;
            height: 100px;
            background: radial-gradient(circle, rgba(26, 127, 92, 0.05) 0%, transparent 70%);
            border-radius: 50%;
        }

        .system-card:hover {
            transform: translateY(-12px);
            box-shadow: var(--shadow-lg);
            border-color: var(--primary-green-light);
        }

        .system-card.popular::before {
            background: linear-gradient(90deg, var(--secondary-green) 0%, var(--accent-lime) 100%);
        }

        .system-logo {
            font-size: 3.5rem;
            margin-bottom: 22px;
            color: var(--primary-green);
            height: 100px;
            width: 100px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 50%;
            background: linear-gradient(135deg, rgba(26, 127, 92, 0.1) 0%, rgba(46, 204, 139, 0.06) 100%);
            transition: var(--transition);
            position: relative;
            z-index: 1;
        }

        .system-card:hover .system-logo {
            background: linear-gradient(135deg, rgba(26, 127, 92, 0.2) 0%, rgba(46, 204, 139, 0.12) 100%);
            transform: scale(1.15) rotateY(5deg);
        }

        .system-name {
            font-weight: 700;
            margin-bottom: 12px;
            color: var(--text-primary);
            font-size: 1.3rem;
            position: relative;
            z-index: 1;
        }

        .system-description {
            color: var(--text-secondary);
            font-size: 0.95rem;
            margin-bottom: 20px;
            flex-grow: 1;
            position: relative;
            z-index: 1;
            line-height: 1.5;
        }

        .system-status {
            display: inline-block;
            padding: 8px 18px;
            border-radius: 20px;
            font-size: 0.85rem;
            font-weight: 600;
            letter-spacing: 0.3px;
            position: relative;
            z-index: 1;
        }

        .status-active {
            background: linear-gradient(135deg, rgba(40, 167, 69, 0.12) 0%, rgba(40, 167, 69, 0.06) 100%);
            color: #1e7e34;
        }

        .status-maintenance {
            background: linear-gradient(135deg, rgba(255, 193, 7, 0.12) 0%, rgba(255, 193, 7, 0.06) 100%);
            color: #cc8800;
        }

        /* System Frame View */
        .system-frame-container {
            background-color: var(--card-bg);
            border-radius: var(--radius-md);
            box-shadow: var(--shadow-md);
            padding: 30px;
            height: calc(100vh - 140px);
            display: none;
            border: 1px solid var(--neutral-medium);
            overflow: hidden;
        }

        .system-frame-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 28px;
            padding-bottom: 24px;
            border-bottom: 2px solid var(--neutral-medium);
            flex-wrap: wrap;
            gap: 20px;
        }

        .system-frame-title {
            display: flex;
            align-items: center;
            color: var(--primary-green);
            flex: 1;
            min-width: 0;
        }

        .system-frame-title h4 {
            font-size: 1.4rem;
            margin-bottom: 4px;
        }

        .system-frame-title small {
            display: block;
            color: var(--text-secondary);
            font-weight: 500;
        }

        .frame-logo {
            font-size: 2.5rem;
            margin-right: 20px;
            width: 70px;
            height: 70px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 50%;
            background: linear-gradient(135deg, rgba(26, 127, 92, 0.12) 0%, rgba(46, 204, 139, 0.08) 100%);
        }

        .btn-back {
            background: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-green-light) 100%);
            color: white;
            border: none;
            padding: 12px 26px;
            border-radius: var(--radius-sm);
            font-weight: 600;
            transition: var(--transition);
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            box-shadow: 0 4px 12px rgba(26, 127, 92, 0.25);
            cursor: pointer;
        }

        .btn-back:hover {
            transform: translateY(-3px);
            box-shadow: 0 8px 20px rgba(26, 127, 92, 0.35);
            color: white;
        }

        .system-frame {
            width: 100%;
            height: calc(100% - 90px);
            border: none;
            border-radius: var(--radius-sm);
            background-color: #fafbfc;
            border: 1px solid var(--neutral-medium);
        }

        /* Welcome Banner */
        .welcome-banner {
            background: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-green-light) 100%);
            color: white;
            padding: 40px 35px;
            border-radius: var(--radius-md);
            margin-bottom: 50px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
            gap: 25px;
            box-shadow: var(--shadow-lg);
            position: relative;
            overflow: hidden;
        }

        .welcome-banner::before {
            content: '';
            position: absolute;
            width: 300px;
            height: 300px;
            background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
            border-radius: 50%;
            top: -100px;
            right: -100px;
        }

        .welcome-banner::after {
            content: '';
            position: absolute;
            width: 200px;
            height: 200px;
            background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
            border-radius: 50%;
            bottom: -80px;
            left: -80px;
        }

        .welcome-text {
            position: relative;
            z-index: 1;
            flex: 1;
            min-width: 250px;
        }

        .welcome-text h3 {
            margin-bottom: 12px;
            font-size: 1.9rem;
            font-weight: 700;
        }

        .welcome-text p {
            opacity: 0.95;
            margin-bottom: 0;
            font-size: 1rem;
        }

        .logout-btn {
            background-color: rgba(255, 255, 255, 0.25);
            color: white;
            border: 1.5px solid rgba(255, 255, 255, 0.4);
            padding: 12px 28px;
            border-radius: var(--radius-sm);
            transition: var(--transition);
            font-weight: 600;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            cursor: pointer;
            position: relative;
            z-index: 2;
        }

        .logout-btn:hover {
            background-color: rgba(255, 255, 255, 0.35);
            transform: translateY(-2px);
            color: white;
        }

        /* Mobile Toggle Button */
        .sidebar-toggle {
            background: transparent;
            border: none;
            color: white;
            font-size: 1.6rem;
            display: block;
            margin-right: 15px;
            padding: 8px;
            border-radius: 8px;
            transition: var(--transition);
            cursor: pointer;
        }

        .sidebar-toggle:hover {
            background-color: rgba(255, 255, 255, 0.15);
        }

        /* Sidebar Overlay */
        .sidebar-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.5);
            z-index: 1019;
            display: none;
            backdrop-filter: blur(2px);
        }

        .sidebar-overlay.active {
            display: block;
        }

        /* Badge */
        .badge {
            position: absolute;
            top: 15px;
            right: 15px;
            z-index: 10;
            background: linear-gradient(135deg, var(--secondary-green) 0%, var(--accent-lime) 100%);
            color: white;
            font-size: 0.7rem;
            padding: 6px 12px;
            border-radius: 20px;
            font-weight: 700;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
        }

        /* Verification Modal Styles */
        .verification-modal {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            /* Transparent blur overlay */
            background: rgba(255, 255, 255, 0.06);
            backdrop-filter: blur(10px);
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 9999;
            animation: fadeIn 0.3s ease;
            -webkit-backdrop-filter: blur(10px);
        }

        @keyframes fadeIn {
            from { opacity: 0; }
            to { opacity: 1; }
        }

        .verification-card {
            background: rgba(255,255,255,0.98);
            border-radius: var(--radius-lg);
            box-shadow: var(--shadow-xl);
            max-width: 380px; /* reduced to avoid vertical overlap */
            width: 90%;
            max-height: 80vh; /* keep it from overlapping top/bottom */
            overflow-y: auto;
            animation: slideUp 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        }

        @keyframes slideUp {
            from { 
                opacity: 0;
                transform: translateY(50px) scale(0.95);
            }
            to { 
                opacity: 1;
                transform: translateY(0) scale(1);
            }
        }

        .verification-header {
            background: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-green-light) 100%);
            color: white;
            padding: 40px 30px;
            text-align: center;
            position: relative;
            overflow: hidden;
        }

        .verification-header::before {
            content: '';
            position: absolute;
            width: 200px;
            height: 200px;
            background: rgba(255, 255, 255, 0.1);
            border-radius: 50%;
            top: -80px;
            right: -80px;
        }

        .verification-icon {
            font-size: 4rem;
            margin-bottom: 20px;
            animation: bounce 1s infinite alternate;
        }

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

        .verification-header h3 {
            font-size: 1.8rem;
            margin-bottom: 10px;
        }

        .email-display {
            background: rgba(255, 255, 255, 0.2);
            padding: 12px 20px;
            border-radius: var(--radius-sm);
            margin-top: 15px;
            font-family: monospace;
            font-size: 1.1rem;
            letter-spacing: 0.5px;
            backdrop-filter: blur(10px);
        }

        .verification-body {
            padding: 40px 30px;
        }

        .countdown-container {
            text-align: center;
            margin-bottom: 30px;
        }

        .countdown-circle {
            position: relative;
            display: inline-block;
            margin-bottom: 15px;
        }

        .countdown-svg {
            transform: rotate(-90deg);
        }

        .countdown-bg {
            fill: none;
            stroke: var(--neutral-medium);
            stroke-width: 4;
        }

        .countdown-progress {
            fill: none;
            stroke: var(--primary-green);
            stroke-width: 4;
            stroke-linecap: round;
            transition: stroke-dashoffset 1s linear;
            stroke-dasharray: 339.292;
            stroke-dashoffset: 0;
        }

        .countdown-text {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            font-family: 'Poppins', sans-serif;
            font-size: 1.8rem;
            font-weight: 700;
            color: var(--primary-green);
        }

        .countdown-label {
            color: var(--text-secondary);
            font-size: 0.9rem;
            margin-top: 10px;
        }

        .verification-info {
            background: linear-gradient(135deg, rgba(26, 127, 92, 0.05) 0%, rgba(46, 204, 139, 0.03) 100%);
            padding: 25px;
            border-radius: var(--radius-sm);
            margin: 30px 0;
        }

        .info-item {
            display: flex;
            align-items: center;
            margin-bottom: 15px;
            color: var(--text-secondary);
        }

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

        .info-item i {
            color: var(--primary-green);
            margin-right: 12px;
            font-size: 1.2rem;
        }

        .verification-actions {
            display: flex;
            gap: 15px;
            margin-bottom: 25px;
        }

        .btn-verify {
            flex: 2;
            background: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-green-light) 100%);
            color: white;
            border: none;
            padding: 16px;
            border-radius: var(--radius-sm);
            font-weight: 600;
            cursor: pointer;
            transition: var(--transition);
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
        }

        .btn-verify:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 20px rgba(26, 127, 92, 0.3);
        }

        .btn-resend {
            flex: 1;
            background: transparent;
            border: 2px solid var(--neutral-medium);
            color: var(--text-secondary);
            padding: 16px;
            border-radius: var(--radius-sm);
            font-weight: 600;
            cursor: pointer;
            transition: var(--transition);
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
        }

        .btn-resend:hover {
            border-color: var(--primary-green);
            color: var(--primary-green);
            background: rgba(26, 127, 92, 0.05);
        }

        .verification-footer {
            text-align: center;
            font-size: 0.9rem;
            color: var(--text-secondary);
            border-top: 1px solid var(--neutral-medium);
            padding-top: 20px;
        }

        .verification-footer a {
            color: var(--primary-green);
            text-decoration: none;
            font-weight: 600;
        }

        .verification-footer a:hover {
            text-decoration: underline;
        }

        .verification-success {
            padding: 50px 30px;
            text-align: center;
            animation: successFade 0.6s ease;
        }

        @keyframes successFade {
            from { opacity: 0; transform: scale(0.9); }
            to { opacity: 1; transform: scale(1); }
        }

        .success-icon {
            font-size: 5rem;
            color: var(--primary-green);
            margin-bottom: 25px;
            animation: successBounce 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        }

        @keyframes successBounce {
            0%, 20%, 50%, 80%, 100% {transform: translateY(0);}
            40% {transform: translateY(-20px);}
            60% {transform: translateY(-10px);}
        }

        .verification-success h3 {
            color: var(--primary-green);
            margin-bottom: 15px;
            font-size: 2rem;
        }

        .success-message {
            margin-top: 30px;
            color: var(--text-secondary);
        }

        .loading-dots {
            display: flex;
            justify-content: center;
            margin-top: 20px;
        }

        .loading-dots span {
            width: 8px;
            height: 8px;
            margin: 0 4px;
            background: var(--primary-green);
            border-radius: 50%;
            animation: loading 1.4s infinite ease-in-out both;
        }

        .loading-dots span:nth-child(1) { animation-delay: -0.32s; }
        .loading-dots span:nth-child(2) { animation-delay: -0.16s; }

        @keyframes loading {
            0%, 80%, 100% { transform: scale(0); }
            40% { transform: scale(1); }
        }

        /* Loading Overlay */
        .loading-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.8);
            backdrop-filter: blur(5px);
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 9999;
        }

        .spinner-container {
            text-align: center;
            color: white;
        }

        .spinner-container .spinner {
            width: 60px;
            height: 60px;
            border: 4px solid rgba(255, 255, 255, 0.3);
            border-top-color: var(--primary-green-light);
            border-radius: 50%;
            animation: spin 1s linear infinite;
            margin: 0 auto 20px;
        }

        .spinner-container p {
            font-size: 1.1rem;
            letter-spacing: 0.5px;
        }

        /* Error Toast */
        .error-toast {
            position: fixed;
            bottom: 30px;
            right: 30px;
            background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
            color: white;
            padding: 16px 24px;
            border-radius: var(--radius-sm);
            box-shadow: var(--shadow-lg);
            z-index: 10000;
            transform: translateY(100px);
            opacity: 0;
            transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s ease;
        }

        .error-toast.show {
            transform: translateY(0);
            opacity: 1;
        }

        /* Welcome popup */
        .welcome-popup {
            position: fixed;
            top: 78px;
            left: 50%;
            transform: translateX(-50%) translateY(-10px) scale(0.98);
            background: rgba(255,255,255,0.98);
            color: var(--text-primary);
            padding: 12px 18px;
            border-radius: 14px;
            box-shadow: 0 10px 30px rgba(15, 23, 42, 0.12);
            display: flex;
            align-items: center;
            gap: 12px;
            opacity: 0;
            z-index: 1050;
            transition: transform 360ms cubic-bezier(0.2,0.8,0.2,1), opacity 260ms ease;
            min-width: 240px;
            max-width: 420px;
        }

        .welcome-popup.show {
            transform: translateX(-50%) translateY(0) scale(1);
            opacity: 1;
        }

        .welcome-popup .avatar {
            width: 44px;
            height: 44px;
            border-radius: 50%;
            background: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-green-light) 100%);
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 1.15rem;
            flex-shrink: 0;
            box-shadow: 0 6px 18px rgba(20,28,36,0.08);
        }

        .welcome-popup .content {
            display: flex;
            flex-direction: column;
        }

        .welcome-popup .content .title {
            font-weight: 700;
            font-size: 0.98rem;
            line-height: 1.1;
        }

        .welcome-popup .content .subtitle {
            font-size: 0.82rem;
            color: var(--text-secondary);
            margin-top: 3px;
        }

        @media (max-width: 576px) {
            .welcome-popup { min-width: unset; left: 16px; right: 16px; transform: translateX(0) translateY(-10px); }
        }

        .toast-content {
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .toast-content i {
            font-size: 1.4rem;
        }

        /* Loading Spinner */
        .loading-spinner {
            display: none;
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            z-index: 10;
        }

        .spinner {
            width: 50px;
            height: 50px;
            border: 4px solid rgba(26, 127, 92, 0.15);
            border-radius: 50%;
            border-top-color: var(--primary-green);
            animation: spin 1s linear infinite;
        }

        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }

        /* Active Card */
        .system-card.active {
            border-color: var(--primary-green);
            box-shadow: 0 0 0 4px rgba(26, 127, 92, 0.15), var(--shadow-md);
        }

        /* Scrollbar */
        ::-webkit-scrollbar {
            width: 8px;
            height: 8px;
        }

        ::-webkit-scrollbar-track {
            background: rgba(0, 0, 0, 0.05);
        }

        ::-webkit-scrollbar-thumb {
            background: rgba(26, 127, 92, 0.3);
            border-radius: 4px;
        }

        ::-webkit-scrollbar-thumb:hover {
            background: rgba(26, 127, 92, 0.5);
        }

        /* Responsive Design */
        @media (max-width: 1200px) {
            .main-content.with-sidebar {
                margin-left: 0;
                width: 100%;
            }

            .sidebar {
                z-index: 1021;
                box-shadow: var(--shadow-lg);
            }
        }

        @media (max-width: 992px) {
            .system-cards {
                grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
                gap: 24px;
            }

            .dashboard-title {
                font-size: 2.3rem;
            }

            .main-content {
                padding: 28px;
            }
        }

        @media (max-width: 768px) {
            .system-cards {
                grid-template-columns: 1fr;
                max-width: 100%;
            }

            .login-card {
                max-width: 100%;
            }

            .login-body {
                padding: 35px 25px;
            }

            .welcome-banner {
                padding: 30px;
                text-align: center;
                justify-content: center;
            }

            .welcome-text {
                width: 100%;
            }

            .dashboard-title {
                font-size: 2rem;
            }

            .system-frame-header {
                flex-direction: column;
                align-items: flex-start;
            }

            .btn-back {
                align-self: flex-end;
            }

            .sticky-navbar {
                padding: 0.75rem 0;
            }

            .navbar-brand {
                font-size: 1.2rem;
            }

            .user-profile {
                gap: 8px;
            }

            .user-avatar {
                width: 40px;
                height: 40px;
                font-size: 1.2rem;
            }

            .user-profile small {
                display: none;
            }

            .verification-actions {
                flex-direction: column;
            }
        }

        @media (max-width: 576px) {
            .main-content {
                padding: 20px;
            }

            .dashboard-header {
                margin-bottom: 35px;
            }

            .dashboard-title {
                font-size: 1.7rem;
            }

            .system-card {
                padding: 24px 18px;
            }

            .system-frame-container {
                padding: 20px;
                height: calc(100vh - 120px);
                border-radius: var(--radius-md);
            }

            .login-header {
                padding: 40px 20px;
            }

            .university-logo {
                font-size: 4rem;
            }

            .welcome-banner {
                margin-bottom: 35px;
            }

            .welcome-text h3 {
                font-size: 1.5rem;
            }

            .verification-card {
                width: 95%;
            }
        }

        /* Verification Modal */
.verification-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.verification-card {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    max-width: 500px;
    width: 90%;
    overflow: hidden;
    animation: slideUp 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes slideUp {
    from { 
        opacity: 0;
        transform: translateY(50px) scale(0.95);
    }
    to { 
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.verification-header {
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-green-light) 100%);
    color: white;
    padding: 30px 30px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.verification-header::before {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    top: -80px;
    right: -80px;
}

.verification-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    animation: bounce 1s infinite alternate;
}

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

.verification-header h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.email-display {
    background: rgba(255, 255, 255, 0.2);
    padding: 12px 20px;
    border-radius: var(--radius-sm);
    margin-top: 15px;
    font-family: monospace;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
    backdrop-filter: blur(10px);
}

.verification-body {
    padding: 40px 30px;
}

.countdown-container {
    text-align: center;
    margin-bottom: 30px;
}

.countdown-circle {
    position: relative;
    display: inline-block;
    margin-bottom: 15px;
}

.countdown-svg {
    transform: rotate(-90deg);
}

.countdown-bg {
    fill: none;
    stroke: var(--neutral-medium);
    stroke-width: 4;
}

.countdown-progress {
    fill: none;
    stroke: var(--primary-green);
    stroke-width: 4;
    stroke-linecap: round;
    transition: stroke-dashoffset 1s linear;
    stroke-dasharray: 339.292; /* 2 * π * 54 */
    stroke-dashoffset: 0;
}

.countdown-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'Poppins', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-green);
}

.countdown-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 10px;
}

.verification-info {
    background: linear-gradient(135deg, rgba(26, 127, 92, 0.05) 0%, rgba(46, 204, 139, 0.03) 100%);
    padding: 25px;
    border-radius: var(--radius-sm);
    margin: 30px 0;
}

.info-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    color: var(--text-secondary);
}

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

.info-item i {
    color: var(--primary-green);
    margin-right: 12px;
    font-size: 1.2rem;
}

.verification-actions {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

.btn-verify {
    flex: 2;
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-green-light) 100%);
    color: white;
    border: none;
    padding: 16px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-verify:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(26, 127, 92, 0.3);
}

.btn-resend {
    flex: 1;
    background: transparent;
    border: 2px solid var(--neutral-medium);
    color: var(--text-secondary);
    padding: 16px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-resend:hover {
    border-color: var(--primary-green);
    color: var(--primary-green);
    background: rgba(26, 127, 92, 0.05);
}

.verification-footer {
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-secondary);
    border-top: 1px solid var(--neutral-medium);
    padding-top: 20px;
}

.verification-footer a {
    color: var(--primary-green);
    text-decoration: none;
    font-weight: 600;
}

.verification-footer a:hover {
    text-decoration: underline;
}

.verification-success {
    padding: 50px 30px;
    text-align: center;
    animation: successFade 0.6s ease;
}

@keyframes successFade {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

.success-icon {
    font-size: 5rem;
    color: var(--primary-green);
    margin-bottom: 25px;
    animation: successBounce 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes successBounce {
    0%, 20%, 50%, 80%, 100% {transform: translateY(0);}
    40% {transform: translateY(-20px);}
    60% {transform: translateY(-10px);}
}

.verification-success h3 {
    color: var(--primary-green);
    margin-bottom: 15px;
    font-size: 2rem;
}

.success-message {
    margin-top: 30px;
    color: var(--text-secondary);
}

.loading-dots {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.loading-dots span {
    width: 8px;
    height: 8px;
    margin: 0 4px;
    background: var(--primary-green);
    border-radius: 50%;
    animation: loading 1.4s infinite ease-in-out both;
}

.loading-dots span:nth-child(1) { animation-delay: -0.32s; }
.loading-dots span:nth-child(2) { animation-delay: -0.16s; }

@keyframes loading {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1); }
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.spinner-container {
    text-align: center;
    color: white;
}

.spinner-container .spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top-color: var(--primary-green-light);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

.spinner-container p {
    font-size: 1.1rem;
    letter-spacing: 0.5px;
}

/* Error Toast */
.error-toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
    padding: 16px 24px;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    z-index: 10000;
    transform: translateY(100px);
    opacity: 0;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s ease;
}

.error-toast.show {
    transform: translateY(0);
    opacity: 1;
}

.toast-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.toast-content i {
    font-size: 1.4rem;
}