/* ScholarHub Dashboard Styles */
:root {
    --sh-sidebar-width: 260px;
}

.sh-dash-wrapper { 
    display: flex; 
    min-height: calc(100vh - 80px); 
    background: #F4F7FE;
}

.sh-dash-sidebar { 
    width: var(--sh-sidebar-width); 
    background: #ffffff !important; 
    padding: 20px 0; 
    flex-shrink: 0; 
    color: #4b5563 !important;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    border-right: 1px solid #e5e7eb;
}

.sh-dash-sidebar-header {
    padding: 30px 28px;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    color: #ffffff;
}
.sh-dash-sidebar-header h4 { color: #ffffff !important; margin: 0; font-size: 1.25rem; }
.sh-sidebar-badge { 
    display: inline-block; 
    background: #ffffff; 
    color: #1e3a8a; 
    font-size: 10px; 
    font-weight: 700; 
    padding: 2px 8px; 
    border-radius: 4px; 
    margin-top: 8px; 
    text-transform: uppercase; 
    letter-spacing: 0.5px;
}

.sh-dash-sidebar-menu { list-style: none; padding: 0; margin: 0; }
.sh-dash-sidebar-menu li { margin-bottom: 4px; }
.sh-dash-sidebar-menu li a { 
    display: flex; 
    align-items: center; 
    gap: 12px; 
    padding: 12px 28px; 
    color: #4b5563; 
    font-weight: 500; 
    font-size: 14px; 
    transition: all 0.2s ease; 
    text-decoration: none;
    position: relative;
}

.sh-dash-sidebar-menu li a.text-danger {
    color: #ef4444;
}

.sh-dash-sidebar-menu li a i { 
    width: 20px; 
    text-align: center; 
    font-size: 1.1rem; 
    color: #6b7280;
}

.sh-dash-sidebar-menu li a.text-danger i {
    color: #ef4444;
}

.sh-dash-sidebar-menu li a:hover {
    color: #111827;
    background: #f9fafb;
}

.sh-dash-sidebar-menu li a:hover i {
    color: #4b5563;
}

.sh-dash-sidebar-menu li a.active { 
    background: #f3f4f6; 
    color: #1d4ed8; 
    font-weight: 600;
}

.sh-dash-sidebar-menu li a.active::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: #1d4ed8;
    border-radius: 0 4px 4px 0;
}

.sh-dash-sidebar-menu li a.active i {
    color: #1d4ed8;
    opacity: 1;
}

/* Sidebar Submenu Styles */
.sh-sidebar-submenu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: none;
    background: #f8fafc;
}

.sh-sidebar-submenu li a {
    padding: 10px 28px 10px 52px !important;
    font-size: 13px !important;
    color: #64748b !important;
    background: transparent !important;
}

.sh-sidebar-submenu li a:hover {
    color: #1e3a8a !important;
    background: #f1f5f9 !important;
}

.sh-sidebar-submenu li a.active {
    color: #1e3a8a !important;
    font-weight: 700 !important;
    background: #e2e8f0 !important;
}

.sh-sidebar-submenu li a.active::before {
    display: none;
}

.sh-sidebar-submenu li a i {
    font-size: 12px !important;
    width: 16px !important;
    margin-right: 8px;
}

.sh-submenu-arrow {
    font-size: 10px !important;
    transition: transform 0.3s ease;
    opacity: 0.5;
}

.sh-has-submenu.open .sh-submenu-arrow {
    transform: rotate(180deg);
}

.sh-dash-content { 
    flex: 1; 
    padding: 30px; 
    max-width: calc(100% - var(--sh-sidebar-width));
}

.sh-dash-header { margin-bottom: 35px; }
.sh-dash-header h1 { font-size: 2rem; font-weight: 800; color: #1e293b; letter-spacing: -0.5px; }
.sh-dash-header p { color: #64748b; font-size: 1rem; }

/* Dashboard Cards */
.sh-dash-card { 
    background: #fff; 
    border-radius: 8px; 
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05); 
    padding: 25px; 
    margin-bottom: 25px; 
    border: 1px solid #f1f5f9;
    border-left: 4px solid #1d4ed8;
}

.sh-dash-card.success { border-left-color: #10b981; }
.sh-dash-card.warning { border-left-color: #f59e0b; }
.sh-dash-card.info { border-left-color: #3b82f6; }

.sh-welcome-banner {
    background: #3b82f6;
    color: #fff;
    padding: 35px 40px;
    border-radius: 12px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.2);
}
.sh-welcome-banner h2 { color: #fff; font-weight: 800; }
.sh-welcome-banner p { color: rgba(255, 255, 255, 0.9); }
.sh-welcome-banner .sh-btn-outline {
    border: 1px solid #fff;
    color: #fff;
    background: transparent;
}
.sh-welcome-banner .sh-btn-outline:hover {
    background: #fff;
    color: #3b82f6;
}

.sh-dash-stat { display: flex; justify-content: space-between; align-items: center; }
.sh-dash-stat-value { font-size: 2rem; font-weight: 800; color: #1e293b; line-height: 1; margin-bottom: 5px; }
.sh-dash-stat-label { color: #64748b; font-size: 14px; font-weight: 500; }
.sh-dash-stat-icon { 
    width: 50px; 
    height: 50px; 
    border-radius: 50%; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    font-size: 1.5rem; 
}
.sh-dash-stat-icon.primary { background: #eff6ff; color: #2563eb; }
.sh-dash-stat-icon.success { background: #ecfdf5; color: #10b981; }
.sh-dash-stat-icon.warning { background: #fffbeb; color: #f59e0b; }
.sh-dash-stat-icon.info { background: #eff6ff; color: #3b82f6; }
.sh-dash-stat-icon.danger { background: #fef2f2; color: #ef4444; }

/* Premium Table Styles */
.sh-dash-table { width: 100%; border-collapse: separate; border-spacing: 0; }
.sh-dash-table th { 
    background: #ffffff;
    font-size: 11px; 
    font-weight: 700; 
    color: #6b7280; 
    text-transform: uppercase; 
    letter-spacing: 1px; 
    padding: 16px 20px; 
    border-bottom: 1px solid #e5e7eb; 
}

.sh-dash-table td { 
    padding: 16px 20px; 
    border-bottom: 1px solid #e5e7eb; 
    font-size: 13px; 
    color: #374151;
    vertical-align: middle; 
}

.sh-dash-table tr:last-child td { border-bottom: none; }
.sh-dash-table tr:hover td { background: #f9fafb; }

.badge { 
    padding: 4px 8px; 
    border-radius: 12px; 
    font-weight: 600; 
    font-size: 11px; 
}

/* Responsive Dashboard */
@media (max-width: 1200px) {
    :root { --sh-sidebar-width: 240px; }
}

@media (max-width: 991.98px) {
    .sh-dash-wrapper { flex-direction: column; }
    .sh-dash-sidebar { 
        width: 100%; 
        height: auto;
        position: sticky;
        top: 70px;
        padding: 0; 
        z-index: 1000;
        border-right: none;
        border-bottom: 1px solid #e5e7eb;
        background: #fff !important;
    }
    .sh-dash-sidebar-header { display: none; }
    .sh-dash-sidebar-menu { 
        display: flex; 
        overflow-x: auto; 
        padding: 10px 15px;
        gap: 8px;
        -webkit-overflow-scrolling: touch;
    }
    .sh-dash-sidebar-menu::-webkit-scrollbar { display: none; }
    .sh-dash-sidebar-menu li { margin: 0; }
    .sh-dash-sidebar-menu li a { 
        padding: 8px 16px; 
        white-space: nowrap; 
        border-radius: 50px;
        background: #f3f4f6;
        font-size: 13px;
        border: 1px solid #e5e7eb;
    }
    .sh-dash-sidebar-menu li a.active {
        background: #1e3a8a;
        color: #fff;
        border-color: #1e3a8a;
    }
    .sh-dash-sidebar-menu li a.active::before { display: none; }
    .sh-dash-sidebar-menu li a i { font-size: 14px; color: inherit; }
    
    /* Mobile Submenu: Inline Flex */
    .sh-dash-sidebar-menu .sh-sidebar-submenu { 
        display: none; 
        padding: 0;
        margin: 0;
        gap: 8px;
    }
    .sh-has-submenu.open .sh-sidebar-submenu {
        display: flex !important;
    }
    .sh-sidebar-submenu li a {
        background: #eff6ff !important;
        border-color: #dbeafe !important;
        color: #1e3a8a !important;
        padding: 8px 14px !important;
    }

    .sh-dash-sidebar-menu .sh-submenu-arrow { display: none !important; }
    .sh-dash-sidebar-menu .sh-menu-divider, .sh-admin-menu-label { display: none; }
    
    .sh-dash-content { 
        padding: 20px 15px; 
        max-width: 100%;
    }
}

/* Responsive Tables to Cards on Mobile/Tablet */
@media (max-width: 991.98px) {
    .sh-table-responsive {
        border: none !important;
        overflow: visible !important;
    }
    
    .sh-dash-table, 
    .sh-dash-table thead, 
    .sh-dash-table tbody, 
    .sh-dash-table th, 
    .sh-dash-table td, 
    .sh-dash-table tr { 
        display: block !important; 
        width: 100% !important;
    }

    /* Hide table headers on mobile */
    .sh-dash-table thead tr {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }

    .sh-dash-table tr {
        background: #fff;
        border: 1px solid #e2e8f0 !important;
        border-radius: 16px;
        margin-bottom: 20px;
        padding: 15px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.03);
        position: relative;
        overflow: hidden;
    }

    .sh-dash-table td {
        border: none !important;
        border-bottom: 1px solid #f1f5f9 !important;
        position: relative;
        padding: 12px 15px !important;
        text-align: left !important;
        min-height: auto;
        display: block !important;
        font-size: 14px;
    }

    .sh-dash-table td:last-child {
        border-bottom: none !important;
    }

    /* Add labels using data-label attribute */
    .sh-dash-table td::before {
        content: attr(data-label);
        display: block !important;
        position: static !important;
        width: 100% !important;
        transform: none !important;
        margin-bottom: 6px;
        text-align: left;
        font-weight: 800;
        color: #1e3a8a;
        font-size: 10px;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }
    
    /* Specific styling for the first TD (usually checkbox or ID) */
    .sh-dash-table td:first-child {
        background: #f8fafc;
        margin: -15px -15px 15px -15px;
        padding: 12px 15px !important;
        width: calc(100% + 30px) !important;
        border-radius: 16px 16px 0 0;
        justify-content: space-between;
        border-bottom: 1px solid #e2e8f0 !important;
    }
    .sh-dash-table td:first-child::before {
        position: static;
        width: auto;
        transform: none;
    }

    /* Actions Alignment */
    .sh-dash-table td[data-label="Actions"],
    .sh-dash-table td[data-label="Action"] {
        justify-content: center !important;
        padding-left: 0 !important;
        margin-top: 10px;
        background: #fafafa;
        margin: 10px -15px -15px -15px;
        width: calc(100% + 30px) !important;
        padding: 15px !important;
    }
    .sh-dash-table td[data-label="Actions"]::before,
    .sh-dash-table td[data-label="Action"]::before {
        display: none;
    }
}
/* Status Badges */
.sh-status-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}
.sh-status-pending { background: #fff7ed; color: #9a3412; border: 1px solid #ffedd5; }
.sh-status-in_progress { background: #eff6ff; color: #3b82f6; }
.sh-status-completed { background: #ecfdf5; color: #10b981; }
.sh-status-cancelled { background: #fef2f2; color: #ef4444; }

/* Profile Header & Avatar */
.sh-profile-header {
    background: #fff;
    padding: 25px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    border: 1px solid #f1f5f9;
}
.sh-avatar-upload {
    position: relative;
    width: 120px;
    height: 120px;
    flex-shrink: 0;
}
.sh-avatar-preview {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 4px solid #fff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    overflow: hidden;
    background: #f8fafc;
}
.sh-avatar-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.sh-avatar-edit {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 36px;
    height: 36px;
    background: #1e3a8a;
    border: 3px solid #fff;
    border-radius: 50%;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10;
    box-shadow: 0 4px 10px rgba(30, 58, 138, 0.3);
}
.sh-avatar-edit:hover {
    background: #3b82f6;
    transform: scale(1.1) rotate(15deg);
}
.sh-profile-header h2 {
    font-size: 24px;
    font-weight: 700;
    color: #1e293b;
}
.sh-profile-header p {
    font-size: 14px;
    color: #64748b;
}

/* Full Focus Edit Mode */
.sh-full-focus-content {
    max-width: 1000px;
    margin: 0 auto;
    padding: 50px 20px;
}

.sh-focus-card {
    position: relative;
    overflow: hidden;
}

#save-success-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.98);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
}

.sh-success-icon {
    animation: bounceIn 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}


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

@media (max-width: 991.98px) {
    .sh-full-focus-content {
        padding: 20px;
    }
}

/* Advanced Profile Page Styling */
.sh-profile-section {
    background: #ffffff;
    border-radius: 24px;
    padding: 40px;
    margin-bottom: 35px;
    box-shadow: 0 10px 40px rgba(30, 58, 138, 0.04);
    border: 1px solid rgba(226, 232, 240, 0.6);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.sh-profile-section:hover {
    box-shadow: 0 15px 50px rgba(30, 58, 138, 0.07);
    border-color: rgba(30, 58, 138, 0.1);
}

.sh-profile-section h3 {
    font-size: 1.35rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 35px;
    display: flex;
    align-items: center;
    gap: 18px;
    letter-spacing: -0.5px;
    position: relative;
}

.sh-profile-section h3::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 60px;
    width: 30px;
    height: 3px;
    background: #3b82f6;
    border-radius: 10px;
    opacity: 0.6;
}

.sh-profile-section h3 i {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    color: #ffffff;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    box-shadow: 0 8px 16px rgba(30, 58, 138, 0.15);
}

.sh-form-group label {
    font-weight: 700;
    font-size: 11.5px;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
    display: block;
}

.sh-form-group .form-control {
    background: #f8fafc;
    border: 2px solid #f1f5f9;
    padding: 15px 20px;
    font-size: 15px;
    border-radius: 16px;
    color: #1e293b;
    font-weight: 500;
    transition: all 0.3s ease;
}

.sh-form-group .form-control:focus {
    background: #ffffff;
    border-color: #3b82f6;
    box-shadow: 0 0 0 5px rgba(59, 130, 246, 0.08);
    transform: translateY(-2px);
}

/* Avatar Glass Card */
.sh-profile-avatar-wrap {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 35px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    gap: 30px;
    margin-bottom: 45px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
}

.sh-avatar-circle {
    width: 110px;
    height: 110px;
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    font-weight: 800;
    position: relative;
    border: 6px solid #fff;
    box-shadow: 0 12px 25px rgba(30, 58, 138, 0.2);
}

.sh-avatar-upload-btn {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 34px;
    height: 34px;
    background: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1e3a8a;
    font-size: 15px;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border: none;
    transition: all 0.3s ease;
}

.sh-avatar-upload-btn:hover {
    transform: scale(1.1) rotate(15deg);
    color: #3b82f6;
}

/* Premium Progress Bar */
.sh-profile-completeness {
    background: #f8fafc;
    padding: 20px 25px;
    border-radius: 20px;
    margin-bottom: 45px;
    border: 1px solid #f1f5f9;
}

.sh-progress-text {
    font-size: 13px;
    font-weight: 700;
    color: #475569;
    margin-bottom: 12px;
    display: flex;
    justify-content: space-between;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sh-progress-bar-wrap {
    height: 12px;
    background: #e2e8f0;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.05);
}

.sh-progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #1e3a8a 0%, #3b82f6 50%, #60a5fa 100%);
    border-radius: 20px;
    position: relative;
    overflow: hidden;
}

.sh-progress-bar-fill::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: sh-progress-shine 2s infinite;
}

@keyframes sh-progress-shine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Document Cards */
.sh-file-upload-card {
    background: #ffffff !important;
    border: 2px dashed #e2e8f0 !important;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}

.sh-file-upload-card:hover {
    border-color: #3b82f6 !important;
    background: #f0f7ff !important;
    transform: translateY(-5px);
}

/* Section Separator Detail */
.sh-profile-section-sep {
    height: 2px;
    background: radial-gradient(circle, #e2e8f0 0%, transparent 70%);
    margin: 50px 0;
}

/* Profile Dashboard Header */
.sh-profile-banner {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    border-radius: 24px;
    padding: 40px;
    color: #fff;
    position: relative;
    overflow: hidden;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(30, 58, 138, 0.2);
}

.sh-profile-banner::after {
    content: '\f19d'; /* Graduation cap */
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    right: 40px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 120px;
    opacity: 0.1;
    color: #fff;
}

.sh-banner-title {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 8px;
}

.sh-banner-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 25px;
}

.sh-btn-banner-outline {
    background: transparent;
    border: 1.5px solid rgba(255, 255, 255, 0.6);
    color: #fff;
    padding: 10px 24px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 14px;
    transition: all 0.3s;
}

.sh-btn-banner-outline:hover {
    background: #fff;
    color: #1e3a8a;
    border-color: #fff;
}

/* Stats Summary Cards */
.sh-profile-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.sh-stat-card {
    background: #fff;
    border-radius: 16px;
    padding: 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    border-left: 4px solid #1e3a8a;
    transition: transform 0.3s ease;
}

.sh-stat-card:hover {
    transform: translateY(-5px);
}

.sh-stat-info h2 {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 2px;
    color: #1e293b;
}

.sh-stat-info p {
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 0;
}

.sh-stat-icon-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

/* Specific Stat Styles */
.sh-stat-saved { border-color: #3b82f6; }
.sh-stat-saved .sh-stat-icon-circle { background: #eff6ff; color: #3b82f6; }

.sh-stat-orders { border-color: #10b981; }
.sh-stat-orders .sh-stat-icon-circle { background: #ecfdf5; color: #10b981; }

.sh-stat-notify { border-color: #f59e0b; }
.sh-stat-notify .sh-stat-icon-circle { background: #fffbeb; color: #f59e0b; }

.sh-stat-completion { border-color: #6366f1; }
.sh-stat-completion .sh-stat-icon-circle { background: #eef2ff; color: #6366f1; }

@media (max-width: 991px) {
    .sh-profile-stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 576px) {
    .sh-profile-stats-grid { grid-template-columns: 1fr; }
}

/* Saved Scholarships Page Styling */
.sh-saved-header {
    background: linear-gradient(135deg, #fff 0%, #f8fafc 100%);
    padding: 30px;
    border-radius: 20px;
    margin-bottom: 30px;
    border: 1px solid #f1f5f9;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sh-saved-title-wrap h1 {
    font-size: 1.8rem;
    font-weight: 800;
    color: #1e3a8a;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.sh-saved-count {
    background: #fef2f2;
    color: #ef4444;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    text-transform: uppercase;
}

.sh-dash-card-premium {
    background: #fff;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.03);
    border: 1px solid #f8fafc;
}

.sh-dash-table thead th {
    background: #f8fafc;
    border: none;
    color: #64748b;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 15px 20px;
}

.sh-dash-table tbody td {
    padding: 18px 20px;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
    font-size: 14.5px;
}

.sh-dash-table tr:hover {
    background: #fcfdfe;
}

.sh-saved-scholarship-link {
    font-weight: 700;
    color: #1e293b;
    transition: all 0.2s;
}

.sh-saved-scholarship-link:hover {
    color: #3b82f6;
}

.sh-btn-action {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.sh-btn-view { background: #f0f7ff; color: #3b82f6; }
.sh-btn-view:hover { background: #3b82f6; color: #fff; }

.sh-btn-remove { background: #fef2f2; color: #ef4444; }
.sh-btn-remove:hover { background: #ef4444; color: #fff; }

/* Ultra-Modern Saved Scholarships Styling */
.sh-saved-header {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 40px;
    border-radius: 30px;
    margin-bottom: 40px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 15px 40px rgba(30, 58, 138, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sh-saved-title-wrap h1 {
    font-size: 2.2rem;
    font-weight: 900;
    color: #1e293b;
    margin-bottom: 8px;
    letter-spacing: -1px;
}

.sh-saved-count {
    background: linear-gradient(135deg, #ef4444 0%, #f43f5e 100%);
    color: #ffffff;
    font-size: 13px;
    font-weight: 800;
    padding: 6px 16px;
    border-radius: 50px;
    box-shadow: 0 8px 20px rgba(239, 68, 68, 0.2);
}

.sh-dash-card-premium {
    background: #ffffff;
    border-radius: 30px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(30, 58, 138, 0.05);
    border: 1px solid rgba(226, 232, 240, 0.6);
}

.sh-dash-table thead th {
    background: transparent;
    border-bottom: 2px solid #f1f5f9;
    color: #94a3b8;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 20px;
}

.sh-dash-table tbody td {
    padding: 25px 20px;
    border-bottom: 1px solid #f8fafc;
    vertical-align: middle;
}

.sh-dash-table tr {
    transition: all 0.3s ease;
}

.sh-dash-table tr:hover {
    background: #f8fafc;
    transform: scale(1.005);
}

.sh-saved-scholarship-link {
    font-weight: 800;
    color: #1e3a8a;
    font-size: 16px;
    transition: all 0.3s;
}

.sh-btn-action {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: none;
    font-size: 16px;
}

.sh-btn-view { 
    background: #eff6ff; 
    color: #3b82f6; 
    box-shadow: 0 4px 10px rgba(59, 130, 246, 0.1);
}
.sh-btn-view:hover { 
    background: #3b82f6; 
    color: #fff; 
    transform: translateY(-4px) rotate(-5deg);
    box-shadow: 0 10px 20px rgba(59, 130, 246, 0.2);
}

.sh-btn-remove { 
    background: #fef2f2; 
    color: #ef4444; 
    box-shadow: 0 4px 10px rgba(239, 68, 68, 0.1);
}
.sh-btn-remove:hover { 
    background: #ef4444; 
    color: #fff; 
    transform: translateY(-4px) rotate(5deg);
    box-shadow: 0 10px 20px rgba(239, 68, 68, 0.2);
}

#dash-chat-badge {
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    font-weight: 700;
    box-shadow: 0 2px 5px rgba(239, 68, 68, 0.4);
}

@keyframes pulse-red {
    0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
    70% { box-shadow: 0 0 0 6px rgba(239, 68, 68, 0); }
    100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

#dash-chat-badge:not([style*="display: none"]) {
    animation: pulse-red 2s infinite;
}

/* Standardized Circular Dashboard Pagination */
.sh-pagination ul.pagination,
.sh-pagination .pagination,
.pagination.justify-content-center {
    display: flex !important;
    gap: 12px !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    justify-content: center !important;
    align-items: center !important;
}

.sh-pagination ul.pagination li,
.sh-pagination .pagination li,
.pagination.justify-content-center li {
    margin: 0 !important;
    padding: 0 !important;
}

.sh-pagination ul.pagination li a,
.sh-pagination ul.pagination li span,
.sh-pagination .pagination a,
.sh-pagination .pagination span,
.pagination.justify-content-center li a,
.pagination.justify-content-center li span {
    width: 44px !important;
    height: 44px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 50% !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    color: #1e3a8a !important;
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    text-decoration: none !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05) !important;
    padding: 0 !important;
}

.sh-pagination ul.pagination li.active span,
.sh-pagination ul.pagination li.current,
.sh-pagination ul.pagination li span.current,
.sh-pagination .pagination .current,
.sh-pagination .pagination .active span,
.pagination.justify-content-center li.active span,
.pagination.justify-content-center li span.current {
    background: #1e3a8a !important;
    color: #ffffff !important;
    border-color: #1e3a8a !important;
    box-shadow: 0 10px 20px rgba(30, 58, 138, 0.3) !important;
    transform: scale(1.1);
    z-index: 2;
}

.sh-pagination ul.pagination li a:hover,
.sh-pagination .pagination a:hover,
.pagination.justify-content-center li a:hover {
    background: #f8fafc !important;
    border-color: #1e3a8a !important;
    color: #1e3a8a !important;
    transform: translateY(-4px);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.08) !important;
}

/* Premium Pagination Info Pill */
.sh-pagination-info {
    display: inline-flex !important;
    align-items: center !important;
    padding: 10px 24px !important;
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 50px !important;
    font-size: 13.5px !important;
    color: #64748b !important;
    font-weight: 600 !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04) !important;
    margin-bottom: 15px !important;
}

.sh-pagination-info strong {
    color: #1e3a8a !important;
    margin: 0 5px !important;
    font-weight: 800 !important;
}

/* Premium Modal Styles */
.sh-modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
}

.sh-confirm-modal {
    background: #ffffff;
    border-radius: 24px;
    padding: 40px;
    width: 100%;
    max-width: 420px;
    text-align: center;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.sh-confirm-icon {
    font-size: 3.5rem;
    margin-bottom: 20px;
}

.sh-confirm-modal h3 {
    font-size: 1.5rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 12px;
}

.sh-confirm-modal p {
    color: #64748b;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 30px;
}

.sh-confirm-actions {
    display: flex;
    gap: 15px;
}

.sh-confirm-btn {
    flex: 1;
    padding: 14px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 15px;
    border: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.sh-confirm-btn.cancel {
    background: #f1f5f9;
    color: #64748b;
}

.sh-confirm-btn.cancel:hover {
    background: #e2e8f0;
    color: #1e293b;
}

.sh-confirm-btn.confirm {
    color: #ffffff;
}

.sh-confirm-btn.confirm:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    filter: brightness(1.1);
}

/* Animate.css Lite */
.animate__animated { animation-duration: 0.3s; animation-fill-mode: both; }
@keyframes zoomIn {
    from { opacity: 0; transform: scale3d(0.3, 0.3, 0.3); }
    50% { opacity: 1; }
}
.animate__zoomIn { animation-name: zoomIn; }
@keyframes zoomOut {
    from { opacity: 1; }
    50% { opacity: 0; transform: scale3d(0.3, 0.3, 0.3); }
    to { opacity: 0; }
}
.animate__zoomOut { animation-name: zoomOut; }

/* ── Admin Bulk Action Bar ── */
#sh-bulk-bar {
    display: none;
    position: sticky;
    top: 70px;
    z-index: 999;
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    color: #fff;
    padding: 12px 24px;
    border-radius: 14px;
    margin-bottom: 16px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.18);
    animation: shBulkSlideIn 0.25s ease;
}
@keyframes shBulkSlideIn {
    from { opacity: 0; transform: translateY(-12px); }
    to   { opacity: 1; transform: translateY(0); }
}
#sh-bulk-bar .sh-bulk-inner {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}
#sh-bulk-bar .sh-bulk-info {
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}
#sh-bulk-bar .sh-bulk-count {
    display: inline-block;
    background: #3b82f6;
    color: #fff;
    font-weight: 800;
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 12px;
    min-width: 24px;
    text-align: center;
}
#sh-bulk-bar .sh-bulk-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}
#sh-bulk-bar button {
    border: none;
    padding: 7px 16px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
#sh-bulk-bar button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
#sh-bulk-bar #sh-bulk-delete {
    background: #ef4444;
    color: #fff;
}
#sh-bulk-bar #sh-bulk-delete:hover { background: #dc2626; }
#sh-bulk-bar #sh-bulk-deselect {
    background: rgba(255,255,255,0.15);
    color: #fff;
}
#sh-bulk-bar #sh-bulk-deselect:hover { background: rgba(255,255,255,0.25); }
#sh-bulk-bar .sh-bulk-status {
    background: #3b82f6;
    color: #fff;
}
#sh-bulk-bar .sh-bulk-status:hover { background: #2563eb; }
#sh-bulk-bar .sh-bulk-status.btn-success { background: #10b981; }
#sh-bulk-bar .sh-bulk-status.btn-success:hover { background: #059669; }

/* Bulk Checkboxes */
.sh-bulk-check, .sh-bulk-select-all {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #3b82f6;
    border-radius: 4px;
    vertical-align: middle;
}
.sh-dash-table th:first-child, .sh-dash-table td:first-child {
    width: 42px;
    text-align: center;
}
.sh-dash-table tr:has(.sh-bulk-check:checked) td,
.sh-log-item:has(.sh-bulk-check:checked) {
    background: #eff6ff !important;
}
.sh-log-item:has(.sh-bulk-check:checked) {
    border-color: #3b82f6 !important;
}

@media (max-width: 768px) {
    #sh-bulk-bar {
        padding: 10px 14px;
        border-radius: 10px;
    }
    #sh-bulk-bar .sh-bulk-inner {
        gap: 8px;
    }
    #sh-bulk-bar button {
        padding: 5px 10px;
        font-size: 11px;
    }
}

/* --- Mobile Dashboard Overrides --- */
@media (max-width: 991.98px) {
    .sh-dash-content {
        padding: 15px !important;
    }
    
    /* Stats Row Compact */
    .sh-dash-stat-value {
        font-size: 1.5rem !important;
    }
    .sh-dash-stat-icon {
        width: 40px !important;
        height: 40px !important;
        font-size: 1.1rem !important;
    }
    
    /* Deadline Cards Mobile */
    .sh-deadline-card {
        padding: 12px !important;
        border-radius: 10px !important;
    }
    .sh-deadline-card a {
        font-size: 14px !important;
        line-height: 1.4 !important;
    }
    .sh-deadline-countdown {
        font-size: 11px !important;
        margin-top: 4px !important;
    }

    /* Welcome Banner Mobile */
    .sh-welcome-banner {
        padding: 20px !important;
        text-align: center;
    }
    .sh-welcome-banner h2 {
        font-size: 1.4rem !important;
    }
    .sh-welcome-banner .sh-progress {
        margin: 15px auto !important;
    }
    
    /* Notification Items */
    .sh-notification-item {
        padding: 12px !important;
    }
    .sh-notification-text {
        font-size: 13px !important;
    }
}

@media (max-width: 575.98px) {
    .sh-dash-stat-value {
        font-size: 1.25rem !important;
    }
    .sh-dash-stat-icon {
        display: none !important; /* Hide icons on very small screens to save space */
    }
    .sh-dash-stat {
        justify-content: center !important;
        text-align: center !important;
    }
}

/* --- Final Mobile Scholarship Card Overrides --- */
@media (max-width: 991.98px) {
    .sh-dash-table td[data-label="Opportunity"],
    .sh-dash-table td[data-label="Title"] {
        padding: 20px 15px !important;
        background: #f8fbff !important;
    }

    .sh-dash-table td[data-label="Opportunity"]::before,
    .sh-dash-table td[data-label="Title"]::before {
        margin-bottom: 10px !important;
        font-size: 11px !important;
    }

    .sh-saved-scholarship-link {
        font-size: 16px !important;
        font-weight: 700 !important;
        color: #1e293b !important;
        display: block !important;
        width: 100% !important;
        line-height: 1.4 !important;
    }
}
/* ==========================================================================
   NUCLEAR MOBILE TABLE FIX V2 (Forces Stacked Cards globally)
   ========================================================================== */
@media (max-width: 991.98px) {
    /* Force table elements to be blocks with ultra specificity */
    body .sh-dash-wrapper .sh-dash-table, 
    body .sh-dash-wrapper .sh-dash-table thead, 
    body .sh-dash-wrapper .sh-dash-table tbody, 
    body .sh-dash-wrapper .sh-dash-table th, 
    body .sh-dash-wrapper .sh-dash-table td, 
    body .sh-dash-wrapper .sh-dash-table tr { 
        display: block !important; 
        width: 100% !important;
        float: none !important;
        clear: both !important;
        box-sizing: border-box !important;
    }

    /* Absolute hide for table headers */
    body .sh-dash-wrapper .sh-dash-table thead {
        display: none !important;
        visibility: hidden !important;
        height: 0 !important;
        overflow: hidden !important;
    }

    /* Row Card Styling - Premium Look */
    body .sh-dash-wrapper .sh-dash-table tr {
        background: #fff !important;
        border: 1px solid #edf2f7 !important;
        border-radius: 20px !important;
        margin-bottom: 20px !important;
        padding: 10px 0 !important;
        box-shadow: 0 10px 25px rgba(0,0,0,0.04) !important;
        overflow: hidden !important;
        position: relative !important;
        border-left: 5px solid #1d4ed8 !important; /* Premium Blue accent */
    }

    /* Cell Layout */
    body .sh-dash-wrapper .sh-dash-table td {
        border: none !important;
        border-bottom: 1px solid #f1f5f9 !important; /* Divider Line */
        padding: 12px 25px !important;
        text-align: left !important;
        position: relative !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 2px !important;
    }

    /* The Labels (ORDER ID, STATUS, etc) */
    body .sh-dash-wrapper .sh-dash-table td::before {
        content: attr(data-label) !important;
        display: block !important;
        font-weight: 700 !important;
        color: #94a3b8 !important; /* Subtle gray for labels */
        font-size: 11px !important;
        text-transform: uppercase !important;
        letter-spacing: 1px !important;
    }

    /* Cell Values Styling */
    body .sh-dash-wrapper .sh-dash-table td strong,
    body .sh-dash-wrapper .sh-dash-table td span,
    body .sh-dash-wrapper .sh-dash-table td div {
        font-size: 15px !important;
        color: #1e293b !important;
        font-weight: 600 !important;
    }

    /* First Cell (Checkbox/Select) - Header of the Card */
    body .sh-dash-wrapper .sh-dash-table td[data-label="Select"],
    body .sh-dash-wrapper .sh-dash-table td:first-child {
        background: #f8fafc !important;
        padding: 12px 25px !important;
        margin-top: -10px !important;
        margin-bottom: 10px !important;
        border-bottom: 1px solid #e2e8f0 !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
    }

    /* Action Buttons Area */
    body .sh-dash-wrapper .sh-dash-table td[data-label="Actions"],
    body .sh-dash-wrapper .sh-dash-table td[data-label="Action"],
    body .sh-dash-wrapper .sh-dash-table td:last-child {
        background: #fafbff !important;
        padding: 20px 25px !important;
        margin-top: 10px !important;
        margin-bottom: -10px !important;
        display: flex !important;
        flex-direction: row !important;
        gap: 12px !important;
        flex-wrap: wrap !important;
    }

    body .sh-dash-wrapper .sh-dash-table td[data-label="Actions"]::before,
    body .sh-dash-wrapper .sh-dash-table td[data-label="Action"]::before,
    body .sh-dash-wrapper .sh-dash-table td:last-child::before {
        display: none !important;
    }

    /* Global UI Tweaks */
    .table-responsive, .sh-table-responsive {
        border: none !important;
        overflow: visible !important;
        padding: 5px !important;
    }
}
