        :root {
            --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            --success-gradient: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
            --warning-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
            --info-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
            --dark-gradient: linear-gradient(135deg, #434343 0%, #000000 100%);
            
            --bg-color: #f0f2f5;
            --card-bg: #ffffff;
            --text-primary: #2c3e50;
            --text-secondary: #7f8c8d;
            --border-color: #e1e8ed;
            --shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
            --shadow-hover: 0 15px 40px rgba(0, 0, 0, 0.12);
        }
     
        
        /* Animated Background */
        .dashboard-wrapper {
            position: relative;
            min-height: 100vh;
            padding: 2rem 0;
        }
        
        .dashboard-wrapper::before {
            content: '';
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: 
                radial-gradient(circle at 20% 50%, rgba(102, 126, 234, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(118, 75, 162, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 40% 20%, rgba(17, 153, 142, 0.08) 0%, transparent 50%);
            z-index: -1;
            animation: bgShift 20s ease-in-out infinite;
        }
        
        @keyframes bgShift {
            0%, 100% { opacity: 1; transform: scale(1); }
            50% { opacity: 0.8; transform: scale(1.1); }
        }
        
        /* Header */
        .dashboard-header {
            background: var(--card-bg);
            border-radius: 20px;
            padding: 1.5rem 2rem;
            margin-bottom: 2rem;
            box-shadow: var(--shadow);
            display: flex;
            justify-content: space-between;
            align-items: center;
            animation: slideDown 0.6s ease-out;
        }
        
        @keyframes slideDown {
            from {
                opacity: 0;
                transform: translateY(-30px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }
        
        .dashboard-header h1 {
            font-size: 1.8rem;
            font-weight: 700;
            background: var(--primary-gradient);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            margin: 0;
        }
        
        .logout-btn {
            padding: 0.6rem 1.5rem;
            background: var(--dark-gradient);
            color: white;
            border: none;
            border-radius: 12px;
            font-weight: 600;
            text-decoration: none;
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            transition: all 0.3s ease;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
        }
        
        .logout-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
            color: white;
        }
        
        /* Profile Card */
        .profile-card {
            background: var(--primary-gradient);
            border-radius: 24px;
            overflow: hidden;
            box-shadow: var(--shadow);
            margin-bottom: 2rem;
            animation: fadeInUp 0.8s ease-out 0.1s both;
        }
        
        @keyframes fadeInUp {
            from {
                opacity: 0;
                transform: translateY(40px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }
        
        .profile-header {
            background: rgba(255, 255, 255, 0.15);
            backdrop-filter: blur(10px);
            padding: 2.5rem 2rem;
            display: flex;
            align-items: center;
            gap: 2rem;
        }
        
        .profile-avatar {
            width: 120px;
            height: 120px;
            background: white;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
            position: relative;
            animation: float 3s ease-in-out infinite;
        }
        
        @keyframes float {
            0%, 100% { transform: translateY(0); }
            50% { transform: translateY(-10px); }
        }
        
        .profile-avatar i {
            font-size: 70px;
            background: var(--primary-gradient);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }
        
        .profile-status-badge {
            position: absolute;
            bottom: 8px;
            right: 8px;
            width: 28px;
            height: 28px;
            background: #10b981;
            border-radius: 50%;
            border: 4px solid white;
            display: flex;
            align-items: center;
            justify-content: center;
            animation: pulse-ring 2s ease-out infinite;
        }
        
        @keyframes pulse-ring {
            0% {
                box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
            }
            70% {
                box-shadow: 0 0 0 15px rgba(16, 185, 129, 0);
            }
            100% {
                box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
            }
        }
        
        .profile-status-badge i {
            font-size: 14px;
            color: white;
        }
        
        .profile-info {
            flex: 1;
            color: white;
        }
        
        .profile-name {
            font-size: 2rem;
            font-weight: 700;
            margin-bottom: 0.5rem;
            text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
            color: #fff
        }
        
        .profile-role {
            font-size: 1rem;
            opacity: 0.95;
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }
        
        .profile-details {
            background: white;
            padding: 2.5rem 2rem;
        }
        
        /* Info Cards */
        .info-card {
            background: linear-gradient(135deg, #f5f7fa 0%, #f8f9fb 100%);
            border-radius: 16px;
            padding: 1.5rem;
            display: flex;
            align-items: center;
            gap: 1.2rem;
            transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
            border: 2px solid transparent;
            position: relative;
            overflow: hidden;
        }
        
        .info-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 4px;
            height: 100%;
            background: var(--primary-gradient);
            transform: scaleY(0);
            transition: transform 0.4s ease;
        }
        
        .info-card:hover {
            transform: translateX(8px);
            background: white;
            box-shadow: 0 10px 30px rgba(102, 126, 234, 0.15);
        }
        
        .info-card:hover::before {
            transform: scaleY(1);
        }
        
        .info-icon {
            width: 60px;
            height: 60px;
            border-radius: 16px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 24px;
            color: white;
            flex-shrink: 0;
            position: relative;
            overflow: hidden;
        }
        
        .info-icon::after {
            content: '';
            position: absolute;
            width: 100%;
            height: 100%;
            background: rgba(255, 255, 255, 0.2);
            top: -100%;
            transition: top 0.4s ease;
        }
        
        .info-card:hover .info-icon::after {
            top: 0;
        }
        
        .info-icon.email { background: var(--primary-gradient); }
        .info-icon.phone { background: var(--warning-gradient); }
        
        .info-content h6 {
            font-size: 0.75rem;
            text-transform: uppercase;
            letter-spacing: 1px;
            color: var(--text-secondary);
            font-weight: 600;
            margin-bottom: 0.3rem;
        }
        
        .info-content p {
            font-size: 1rem;
            font-weight: 600;
            color: var(--text-primary);
            margin: 0;
        }
        
        /* Academic Section */
        .academic-section {
            background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
            border-radius: 20px;
            padding: 2rem;
            margin-top: 2rem;
        }
        
        .section-title {
            font-size: 1.2rem;
            font-weight: 700;
            color: var(--text-primary);
            margin-bottom: 1.5rem;
            display: flex;
            align-items: center;
            gap: 0.8rem;
        }
        
        .section-title i {
            font-size: 1.5rem;
            background: var(--primary-gradient);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }
        
        .academic-badge {
            background: white;
            border-radius: 16px;
            padding: 1.5rem;
            display: flex;
            align-items: center;
            gap: 1rem;
            border-left: 5px solid;
            transition: all 0.4s ease;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
        }
        
        .academic-badge:hover {
            transform: translateY(-5px) scale(1.02);
            box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
        }
        
        .academic-badge i {
            font-size: 2rem;
        }
        
        .batch-badge { border-color: #3b82f6; }
        .batch-badge i { color: #3b82f6; }
        
        .section-badge { border-color: #10b981; }
        .section-badge i { color: #10b981; }
        
        .stream-badge { border-color: #f59e0b; }
        .stream-badge i { color: #f59e0b; }
        
        .academic-badge small {
            display: block;
            font-size: 0.7rem;
            text-transform: uppercase;
            letter-spacing: 1px;
            color: var(--text-secondary);
            font-weight: 600;
        }
        
        .academic-badge strong {
            display: block;
            font-size: 1.2rem;
            color: var(--text-primary);
            font-weight: 700;
            margin-top: 0.2rem;
        }
        
        /* Stats Cards */
        .dashboard-stat-card {
            background: white;
            border-radius: 20px;
            padding: 2rem;
            display: flex;
            align-items: center;
            gap: 1.5rem;
            transition: all 0.4s ease;
            border: 2px solid var(--border-color);
            position: relative;
            overflow: hidden;
            animation: fadeInUp 0.8s ease-out both;
        }
        
        .dashboard-stat-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
            transition: left 0.6s ease;
        }
        
        .dashboard-stat-card:hover::before {
            left: 100%;
        }
        
        .dashboard-stat-card:nth-child(1) { animation-delay: 0.2s; }
        .dashboard-stat-card:nth-child(2) { animation-delay: 0.3s; }
        .dashboard-stat-card:nth-child(3) { animation-delay: 0.4s; }
        
        .dashboard-stat-card:hover {
            transform: translateY(-8px) scale(1.02);
            box-shadow: var(--shadow-hover);
            border-color: transparent;
        }
        
        .dashboard-stat-icon {
            width: 70px;
            height: 70px;
            border-radius: 18px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 32px;
            flex-shrink: 0;
            position: relative;
        }
        
        .dashboard-stat-card:nth-child(1) .dashboard-stat-icon { background: var(--primary-gradient); }
        .dashboard-stat-card:nth-child(2) .dashboard-stat-icon { background: var(--success-gradient); }
        .dashboard-stat-card:nth-child(3) .dashboard-stat-icon { background: var(--info-gradient); }
        
        .stat-info h5 {
            font-size: 2.5rem;
            font-weight: 800;
            color: var(--text-primary);
            margin: 0;
            line-height: 1;
        }
        
        .stat-info p {
            font-size: 0.9rem;
            color: var(--text-secondary);
            font-weight: 600;
            margin: 0.5rem 0 0 0;
        }
        
        /* Progress Section */
        .progress-section {
            background: white;
            border-radius: 20px;
            padding: 2rem;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
            animation: fadeInUp 0.8s ease-out 0.5s both;
        }
        
        .progress-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 1.5rem;
        }
        
        .progress-label {
            font-size: 1.1rem;
            font-weight: 700;
            color: var(--text-primary);
            display: flex;
            align-items: center;
            gap: 0.6rem;
        }
        
        .progress-percentage {
            font-size: 2rem;
            font-weight: 800;
            background: var(--success-gradient);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }
        
        .progress {
            height: 16px;
            border-radius: 20px;
            background: #e9ecef;
            overflow: hidden;
            position: relative;
        }
        
        .progress-bar {
            height: 100%;
            background: var(--success-gradient);
            border-radius: 20px;
            position: relative;
            overflow: hidden;
            transition: width 1.5s cubic-bezier(0.65, 0, 0.35, 1);
        }
        
        .progress-bar::after {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
            animation: shimmer 2s infinite;
        }
        
        @keyframes shimmer {
            0% { transform: translateX(-100%); }
            100% { transform: translateX(100%); }
        }
        


        /* Exam Cards */
        .exam-section {
            background: white;
            border-radius: 20px;
            padding: 2rem;
            box-shadow: var(--shadow);
            margin-bottom: 2rem;
            animation: fadeInUp 0.8s ease-out both;
        }
        
        .exam-section:nth-child(1) { animation-delay: 0.6s; }
        .exam-section:nth-child(2) { animation-delay: 0.7s; }
        .exam-section:nth-child(3) { animation-delay: 0.8s; }
        
        .exam-section h3 {
            font-size: 1.5rem;
            font-weight: 700;
            color: var(--text-primary);
            margin-bottom: 1rem;
            display: flex;
            align-items: center;
            gap: 0.8rem;
        }
        
        .exam-section h3 i {
            font-size: 1.8rem;
        }
        
        .exam-card {
            background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
            border-radius: 16px;
            padding: 1.8rem;
            margin-bottom: 1.2rem;
            border: 2px solid var(--border-color);
            transition: all 0.4s ease;
            position: relative;
            overflow: hidden;
        }
        
        .exam-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: -5px;
            width: 5px;
            height: 100%;
            background: var(--primary-gradient);
            transform: scaleY(0);
            transition: transform 0.4s ease;
        }
        
        .exam-card:hover {
            transform: translateX(8px);
            box-shadow: 0 12px 35px rgba(0, 0, 0, 0.1);
            border-color: transparent;
        }
        
        .exam-card:hover::before {
            transform: scaleY(1);
        }
        
        .exam-name {
            font-size: 1.2rem;
            font-weight: 700;
            color: var(--text-primary);
            margin-bottom: 1rem;
        }
        
        .exam-meta {
            display: inline-block;
            margin-right: 12px;
            margin-bottom: 1rem;
        }

        .mk-time-new{
         padding: 0.5rem 1rem;
        border-radius: 12px;
        font-size: 0.9rem;
        font-weight: 700;
        display: inline-flex;
        align-items: center;
        gap: 0.4rem;
        margin-left: 12px;
        background-color: #fff;
        }
        
        .badge-custom {
            padding: 0.5rem 1rem;
            border-radius: 12px;
            font-size: 0.85rem;
            font-weight: 600;
            display: inline-flex;
            align-items: center;
            gap: 0.4rem;
        }
        
        .badge-upcoming {
            background: linear-gradient(135deg, #fff3cd 0%, #ffe69c 100%);
            color: #856404;
        }
        
        .badge-time {
            background: linear-gradient(135deg, #e7f3ff 0%, #cfe7ff 100%);
            color: #0056b3;
        }
        
        .countdown {
            padding: 0.6rem 1.2rem;
            background: linear-gradient(135deg, #d4edda 0%, #a8e6b5 100%);
            border-radius: 12px;
            font-size: 0.95rem;
            font-weight: 700;
            color: #155724;
            font-family: 'Courier New', monospace;
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            animation: countdownPulse 2s ease-in-out infinite;
        }
        
        @keyframes countdownPulse {
            0%, 100% { transform: scale(1); }
            50% { transform: scale(1.05); }
        }
        
        .countdown.ending-soon {
            background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
            color: #721c24;
            animation: pulse 1.5s ease-in-out infinite;
        }
        
        @keyframes pulse {
            0%, 100% { opacity: 1; }
            50% { opacity: 0.7; }
        }
        
        /* Exam Buttons */
        .exam-btn {
            padding: 0.8rem 1.8rem;
            border-radius: 12px;
            font-weight: 600;
            font-size: 0.95rem;
            text-decoration: none;
            display: inline-flex;
            align-items: center;
            gap: 0.6rem;
            transition: all 0.3s ease;
            border: none;
            cursor: pointer;
        }
        
        .exam-btn-primary {
            background: var(--primary-gradient);
            color: white;
            box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
        }
        
        .exam-btn-primary:hover {
            transform: translateY(-3px);
            box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
            color: white;
        }
        
        .exam-btn-success {
            background: var(--success-gradient);
            color: white;
            box-shadow: 0 4px 15px rgba(17, 153, 142, 0.3);
        }
        
        .exam-btn-success:hover {
            transform: translateY(-3px);
            box-shadow: 0 8px 25px rgba(17, 153, 142, 0.4);
            color: white;
        }
        
        .exam-btn-secondary {
            background: var(--dark-gradient);
            color: white;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
            margin-left: 0.5rem;
        }
        
        .exam-btn-secondary:hover {
            transform: translateY(-3px);
            box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
            color: white;
        }
        
        .exam-btn-disabled {
            background: #e9ecef;
            color: #6c757d;
            cursor: not-allowed;
            pointer-events: none;
        }
        
        /* Score Badge */
        .score-badge {
            padding: 0.5rem 1rem;
            border-radius: 12px;
            font-size: 0.9rem;
            font-weight: 700;
            display: inline-flex;
            align-items: center;
            gap: 0.4rem;
            margin-left: 12px
        }
        
        .score-badge.pass {
            background: linear-gradient(135deg, #d4edda 0%, #a8e6b5 100%);
            color: #155724;
        }
        
        .score-badge.fail {
            background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
            color: #721c24;
        }
        
        .attempt-badge {
            background: linear-gradient(135deg, #f0f0f0 0%, #e0e0e0 100%);
            color: #495057;
            padding: 0.4rem 0.9rem;
            border-radius: 12px;
            font-size: 0.85rem;
            font-weight: 600;
        }
        
        /* Empty State */
        .empty-state {
            text-align: center;
            padding: 3rem 2rem;
            border-radius: 16px;
            background: linear-gradient(135deg, #fff3cd 0%, #ffe69c 100%);
            border: 2px dashed #ffc107;
        }
        
        .empty-state i {
            font-size: 4rem;
            color: #856404;
            margin-bottom: 1rem;
            display: block;
        }
        
        .empty-state h4 {
            font-size: 1.3rem;
            font-weight: 700;
            color: #856404;
            margin-bottom: 0.5rem;
        }
        
        .empty-state p {
            color: #856404;
            font-size: 1rem;
        }
        
        /* Responsive */
        @media (max-width: 768px) {
            .dashboard-header {
                flex-direction: column;
                gap: 1rem;
                text-align: center;
                padding: 10px;
            }
            .dashboard-header h1{font-size: 18px !important}
            
            .profile-header {
                flex-direction: column;
                text-align: center;
            }
            
            .profile-name {
                font-size: 1.5rem;
            }
            
            .dashboard-stat-card {
                flex-direction: column;
                text-align: center;
            }

            .profile-details{padding: 10px}
            .academic-section{padding: 10px}
            .exam-section{padding: 12px}
            .exam-card{padding: 8px 4px}
            .progress-label{font-size: 12px !important; margin-bottom: 0 !important;}
            .exam-btn {display: inline-block !important; width: auto !important;   margin: 5px 0 !important; padding: 8px !important;font-size: 15px !important;}
            .countdown{    padding: 8px 10px;}
            .stat-info h5{font-size: 1.5rem;}

        }
