/* Custom styles for myppg application */

/* Enhanced CSS Variables */
:root {
    --primary-green: #006838;
    --secondary-green: #00844a;
    --accent-green: #00a05c;
    --light-green: #e8f5f0;
    --text-dark: #2d3748;
    --text-gray: #718096;
    --white: #ffffff;
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========================================
   GLOBAL HORIZONTAL SCROLL
   ======================================== */

/* Enable horizontal scrolling for all tables and content that might overflow */
.table-responsive {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
    display: block;
}

/* Make sure all tables have horizontal scroll */
table {
    width: 100%;
    min-width: 800px; /* Ensure tables have minimum width to trigger scroll */
}

/* Fix for modern-table to ensure horizontal scrolling works */
.modern-table {
    width: 100%;
    min-width: 800px;
}

/* Add horizontal scroll to card bodies that might contain tables or wide content */
.card-body {
    overflow-x: auto;
}

/* Removed horizontal scroll from containers */

/* ========================================
   IMPORT FORM ENHANCEMENTS
   ======================================== */

/* Enhanced card styling for import form */
.import-form-card {
    border: none;
    box-shadow: 0 4px 20px rgba(0, 104, 56, 0.1);
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition-smooth);
}

.import-form-card:hover {
    box-shadow: 0 8px 30px rgba(0, 104, 56, 0.15);
    transform: translateY(-2px);
}

/* Enhanced file input styling */
.form-control-lg {
    border-radius: 8px;
    border: 2px solid #e2e8f0;
    transition: var(--transition-smooth);
    padding: 12px 16px;
}

.form-control-lg:focus {
    border-color: var(--primary-green);
    box-shadow: 0 0 0 3px rgba(0, 104, 56, 0.1);
}

/* Badge enhancements */
.badge {
    font-size: 0.75rem;
    padding: 4px 8px;
    border-radius: 6px;
    font-weight: 500;
}

/* Card header enhancements */
.card-header {
    border-bottom: none;
    font-weight: 600;
}

/* Button enhancements */
.btn-lg {
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    transition: var(--transition-smooth);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-green), var(--secondary-green));
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--secondary-green), var(--accent-green));
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 104, 56, 0.3);
}

.btn-success {
    background: linear-gradient(135deg, #28a745, #20c997);
    border: none;
}

.btn-success:hover {
    background: linear-gradient(135deg, #20c997, #17a2b8);
    transform: translateY(-1px);
}

/* Table enhancements */
.table-sm th {
    background: linear-gradient(135deg, var(--primary-green), var(--secondary-green));
    color: white;
    font-weight: 600;
    border: none;
    padding: 12px 8px;
}

.table-sm td {
    padding: 8px;
    vertical-align: middle;
    border-color: #e2e8f0;
}

.table-bordered {
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
}

/* Alert enhancements */
.alert {
    border: none;
    border-radius: 8px;
}

.alert-warning {
    background: linear-gradient(135deg, #fff3cd, #ffeaa7);
    color: #856404;
}

.alert-info {
    background: linear-gradient(135deg, #d1ecf1, #74b9ff);
    color: #0c5460;
}

/* Form text styling */
.form-text {
    color: var(--text-gray);
    font-size: 0.875rem;
    margin-top: 4px;
}

/* Responsive improvements */
@media (max-width: 768px) {
    .col-md-8, .col-md-4 {
        margin-bottom: 1rem;
    }
    
    .d-grid .btn {
        width: 100%;
    }
}

/* ========================================
   MAINTENANCE MODE STYLES
   ======================================== */

.maintenance-container {
    padding: 2rem 0;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* Floating Particles Background */
.maintenance-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(0, 104, 56, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(0, 160, 92, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(0, 132, 74, 0.05) 0%, transparent 50%);
    animation: floatingBackground 20s ease-in-out infinite;
    z-index: 0;
}

@keyframes floatingBackground {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    33% { transform: translateY(-10px) rotate(1deg); }
    66% { transform: translateY(5px) rotate(-1deg); }
}

.maintenance-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 249, 250, 0.95) 100%);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 3rem 2.5rem;
    text-align: center;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(0, 104, 56, 0.1);
    position: relative;
    overflow: hidden;
    z-index: 1;
    animation: cardSlideIn 1s ease-out;
}

@keyframes cardSlideIn {
    0% {
        opacity: 0;
        transform: translateY(50px) scale(0.9);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.maintenance-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-green), var(--accent-green));
    animation: progressBar 3s ease-in-out infinite;
}

@keyframes progressBar {
    0% { left: -100%; }
    50% { left: 0%; }
    100% { left: 100%; }
}

.maintenance-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent, rgba(0, 104, 56, 0.03), transparent);
    animation: rotate 15s linear infinite;
    z-index: -1;
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.maintenance-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-green), var(--accent-green));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    position: relative;
    animation: iconBounce 3s ease-in-out infinite;
    box-shadow: 0 10px 30px rgba(0, 104, 56, 0.3);
}

.maintenance-icon::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border-radius: 50%;
    border: 2px solid transparent;
    background: linear-gradient(45deg, var(--primary-green), var(--accent-green)) border-box;
    mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    animation: borderRotate 4s linear infinite;
}

@keyframes iconBounce {
    0%, 100% { 
        transform: translateY(0px) scale(1);
        box-shadow: 0 10px 30px rgba(0, 104, 56, 0.3);
    }
    50% { 
        transform: translateY(-10px) scale(1.05);
        box-shadow: 0 20px 40px rgba(0, 104, 56, 0.4);
    }
}

@keyframes borderRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.maintenance-icon i {
    font-size: 2rem;
    color: white;
    animation: toolsRotate 2s ease-in-out infinite;
}

@keyframes toolsRotate {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-5deg); }
    75% { transform: rotate(5deg); }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.maintenance-title {
    color: var(--text-dark);
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    line-height: 1.3;
    animation: titleFadeIn 1.5s ease-out 0.5s both;
}

@keyframes titleFadeIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.maintenance-description {
    color: var(--text-gray);
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2.5rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    animation: descriptionFadeIn 1.5s ease-out 0.8s both;
}

@keyframes descriptionFadeIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Loading Progress Bar */
.maintenance-progress {
    margin-bottom: 2.5rem;
    animation: progressFadeIn 1.5s ease-out 1.1s both;
}

@keyframes progressFadeIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.progress-label {
    color: var(--text-gray);
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    text-align: center;
}

.progress-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.progress-bar {
    flex: 1;
    height: 8px;
    background: rgba(0, 104, 56, 0.1);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.progress-fill {
    height: 100%;
    width: 75%;
    background: linear-gradient(90deg, var(--primary-green), var(--accent-green));
    border-radius: 10px;
    position: relative;
    animation: progressFill 3s ease-in-out infinite;
}

.progress-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: progressShimmer 2s ease-in-out infinite;
}

@keyframes progressFill {
    0%, 100% { width: 70%; }
    50% { width: 80%; }
}

@keyframes progressShimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.progress-percentage {
    color: var(--primary-green);
    font-weight: 600;
    font-size: 0.9rem;
    min-width: 35px;
}

/* Loading Spinner */
.maintenance-spinner {
    margin-bottom: 2.5rem;
    animation: spinnerFadeIn 1.5s ease-out 1.4s both;
}

@keyframes spinnerFadeIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.spinner-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(0, 104, 56, 0.1);
    border-top: 3px solid var(--primary-green);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.spinner-text {
    color: var(--text-gray);
    font-size: 0.9rem;
    font-weight: 500;
    animation: textPulse 2s ease-in-out infinite;
}

@keyframes textPulse {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

/* Floating Particles Animation */
.floating-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.particle {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-green), var(--accent-green));
    opacity: 0.6;
    animation: float 15s ease-in-out infinite;
}

.particle-1 {
    width: 8px;
    height: 8px;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
    animation-duration: 12s;
}

.particle-2 {
    width: 12px;
    height: 12px;
    top: 60%;
    left: 85%;
    animation-delay: -3s;
    animation-duration: 18s;
}

.particle-3 {
    width: 6px;
    height: 6px;
    top: 80%;
    left: 20%;
    animation-delay: -6s;
    animation-duration: 14s;
}

.particle-4 {
    width: 10px;
    height: 10px;
    top: 30%;
    left: 70%;
    animation-delay: -9s;
    animation-duration: 16s;
}

.particle-5 {
    width: 4px;
    height: 4px;
    top: 10%;
    left: 50%;
    animation-delay: -12s;
    animation-duration: 20s;
}

.particle-6 {
    width: 14px;
    height: 14px;
    top: 70%;
    left: 60%;
    animation-delay: -15s;
    animation-duration: 22s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) translateX(0px) rotate(0deg);
        opacity: 0.6;
    }
    25% {
        transform: translateY(-20px) translateX(10px) rotate(90deg);
        opacity: 0.8;
    }
    50% {
        transform: translateY(-40px) translateX(-5px) rotate(180deg);
        opacity: 0.4;
    }
    75% {
        transform: translateY(-20px) translateX(-15px) rotate(270deg);
        opacity: 0.7;
    }
}

.maintenance-features {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-gray);
    font-size: 0.95rem;
    padding: 0.75rem 1.25rem;
    background: rgba(0, 104, 56, 0.05);
    border-radius: 25px;
    border: 1px solid rgba(0, 104, 56, 0.1);
    transition: var(--transition-smooth);
}

.feature-item:hover {
    background: rgba(0, 104, 56, 0.1);
    transform: translateY(-2px);
}

.feature-item i {
    color: var(--primary-green);
    font-size: 1rem;
}

.maintenance-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.maintenance-actions .btn {
    padding: 0.75rem 2rem;
    border-radius: 10px;
    font-weight: 500;
    transition: var(--transition-smooth);
    text-decoration: none;
}

.maintenance-actions .btn-primary {
    background: linear-gradient(135deg, var(--primary-green), var(--accent-green));
    border: none;
    color: white;
}

.maintenance-actions .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 104, 56, 0.3);
}

.maintenance-actions .btn-outline-primary {
    border: 2px solid var(--primary-green);
    color: var(--primary-green);
    background: transparent;
}

.maintenance-actions .btn-outline-primary:hover {
    background: var(--primary-green);
    color: white;
    transform: translateY(-2px);
}

.maintenance-contact {
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 104, 56, 0.1);
    color: var(--text-gray);
    font-size: 0.95rem;
}

.maintenance-contact a {
    color: var(--primary-green);
    text-decoration: none;
    font-weight: 500;
}

.maintenance-contact a:hover {
    text-decoration: underline;
}

/* Responsive Design for Maintenance */
@media (max-width: 768px) {
    .maintenance-card {
        padding: 2rem 1.5rem;
        margin: 1rem;
    }
    
    .maintenance-title {
        font-size: 1.5rem;
    }
    
    .maintenance-features {
        flex-direction: column;
        gap: 1rem;
    }
    
    .maintenance-actions {
        flex-direction: column;
    }
    
    .maintenance-actions .btn {
        width: 100%;
    }
}



@media (min-width: 992px) and (max-width: 1199.98px) {
    .sidebar-column {
        flex: 0 0 250px;
        width: 250px;
        min-width: 250px;
    }
}

@media (min-width: 1200px) and (max-width: 1399.98px) {
    .sidebar-column {
        flex: 0 0 260px;
        width: 260px;
        min-width: 260px;
    }
}

@media (min-width: 1400px) {
    .sidebar-column {
        flex: 0 0 300px;
        width: 300px;
        min-width: 300px;
    }
}

@media (max-width: 991.98px) {
    .sidebar-column {
        flex: 1 1 100%;
        width: 100%;
        min-width: auto;
        position: relative;
        top: auto;
        order: 2;
    }
}

/* Content Column Enhancement */
.content-column {
    flex: 1;
    min-width: 0;
    width: calc(100% - 300px);
}

@media (max-width: 991.98px) {
    .content-column {
        width: 100%;
        order: 1;
    }
}

/* ========================================
   RESPONSIVE LAYOUT SYSTEM
   ======================================== */

/* Universal Container Responsiveness */
.container,
.container-fluid {
    width: 100%;
    max-width: 100%;
    padding-left: 15px;
    padding-right: 15px;
}

/* Enhanced Responsive Grid System */
.row {
    margin-left: -15px;
    margin-right: -15px;
}

.row > * {
    padding-left: 15px;
    padding-right: 15px;
}

/* Main Layout Columns - Enhanced Responsive */
.col-lg-3,
.col-lg-9 {
    width: 100%;
    position: relative;
    min-height: 1px;
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) {
    .container {
        max-width: 540px;
    }
}

/* ========================================
   ADVANCED 2-COLUMN RESPONSIVE LAYOUT SYSTEM
   Enhanced with Performance & Accessibility
   ======================================== */

/* Advanced Container Fluid System with Optimal Sizing */
.container-fluid {
    width: 100%;
    padding-left: var(--container-padding, 15px);
    padding-right: var(--container-padding, 15px);
    margin-left: auto;
    margin-right: auto;
    transition: padding 0.3s ease;
}

/* CSS Custom Properties for Dynamic Spacing */
:root {
    --container-padding: 15px;
    --sidebar-width: 280px;
    --content-gap: 1.5rem;
    --border-radius: 0.5rem;
    --transition-speed: 0.3s;
    --box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

/* Enhanced Mobile First Approach with Performance Optimization */
.row {
    display: flex;
    flex-wrap: wrap;
    margin-left: calc(-1 * var(--content-gap) / 2);
    margin-right: calc(-1 * var(--content-gap) / 2);
    transition: margin var(--transition-speed) ease;
}

.row > * {
    padding-left: calc(var(--content-gap) / 2);
    padding-right: calc(var(--content-gap) / 2);
    width: 100%;
    min-height: 1px;
}

/* Mobile devices (up to 575px) - Touch Optimized */
@media (max-width: 575.98px) {
    :root {
        --container-padding: 10px;
        --content-gap: 1rem;
        --border-radius: 0.375rem;
    }
    
    .col-lg-3,
    .col-lg-9 {
        width: 100%;
        padding: 0.5rem;
    }
    
    .sidebar-wrapper {
        order: 2;
        margin-top: 1rem;
        border-radius: var(--border-radius);
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
    }
    
    .content-wrapper {
        order: 1;
        padding: 0.5rem;
    }
    
    /* Touch-friendly buttons */
    .btn {
        min-height: 44px;
        padding: 0.75rem 1rem;
    }
}

/* Small devices (landscape phones, 576px to 767px) */
@media (min-width: 576px) and (max-width: 767.98px) {
    :root {
        --container-padding: 12px;
        --content-gap: 1.25rem;
    }
    
    .col-lg-3,
    .col-lg-9 {
        width: 100%;
    }
    
    .sidebar-wrapper {
        order: 2;
        background: rgba(255, 255, 255, 0.98);
        border-radius: var(--border-radius);
        box-shadow: var(--box-shadow);
    }
    
    .content-wrapper {
        order: 1;
    }
}

/* Medium devices (tablets, 768px to 991px) - Optimized for Touch */
@media (min-width: 768px) and (max-width: 991.98px) {
    :root {
        --container-padding: 15px;
        --sidebar-width: 240px;
        --content-gap: 1.5rem;
    }
    
    .col-lg-3 {
        width: 30%;
        min-width: var(--sidebar-width);
        max-width: 280px;
        flex: 0 0 30%;
    }
    
    .col-lg-9 {
        width: 70%;
        flex: 1 1 70%;
        min-width: 0;
    }
    
    .sidebar-wrapper {
        position: sticky;
        top: 20px;
        align-self: flex-start;
        z-index: 100;
    }
}

/* Large devices (desktops, 992px to 1199px) - Professional Layout */
@media (min-width: 992px) and (max-width: 1199.98px) {
    :root {
        --container-padding: 20px;
        --sidebar-width: 250px;
        --content-gap: 1.75rem;
    }
    
    .container-fluid {
        max-width: 1140px;
    }
    
    .col-lg-3 {
        width: 22%;
        min-width: var(--sidebar-width);
        max-width: 260px;
        flex: 0 0 22%;
    }
    
    .col-lg-9 {
        width: 78%;
        flex: 1 1 78%;
        min-width: 0;
    }
    
    .sidebar-wrapper {
        position: sticky;
        top: 20px;
        align-self: flex-start;
        box-shadow: var(--box-shadow);
        border-radius: var(--border-radius);
    }
}

/* Extra large devices (1200px to 1399px) - Enhanced Desktop */
@media (min-width: 1200px) and (max-width: 1399.98px) {
    :root {
        --container-padding: 25px;
        --sidebar-width: 280px;
        --content-gap: 2rem;
    }
    
    .container-fluid {
        max-width: 1320px;
    }
    
    .col-lg-3 {
        width: 20%;
        min-width: var(--sidebar-width);
        max-width: 300px;
        flex: 0 0 20%;
    }
    
    .col-lg-9 {
        width: 80%;
        flex: 1 1 80%;
        min-width: 0;
    }
}

/* Extra extra large devices (1400px to 1599px) - Wide Desktop */
@media (min-width: 1400px) and (max-width: 1599.98px) {
    :root {
        --container-padding: 30px;
        --sidebar-width: 300px;
        --content-gap: 2.25rem;
    }
    
    .container-fluid {
        max-width: 1500px;
    }
    
    .col-lg-3 {
        width: 18%;
        min-width: var(--sidebar-width);
        max-width: 320px;
        flex: 0 0 18%;
    }
    
    .col-lg-9 {
        width: 82%;
        flex: 1 1 82%;
        min-width: 0;
    }
}

/* Ultra-wide screens (1600px to 1919px) - Premium Experience */
@media (min-width: 1600px) and (max-width: 1919.98px) {
    :root {
        --container-padding: 35px;
        --sidebar-width: 320px;
        --content-gap: 2.5rem;
    }
    
    .container-fluid {
        max-width: 1680px;
    }
    
    .col-lg-3 {
        width: 16%;
        min-width: var(--sidebar-width);
        max-width: 340px;
        flex: 0 0 16%;
    }
    
    .col-lg-9 {
        width: 84%;
        flex: 1 1 84%;
        min-width: 0;
    }
}

/* Full HD screens (1920px to 2559px) - Maximum Comfort */
@media (min-width: 1920px) and (max-width: 2559.98px) {
    :root {
        --container-padding: 40px;
        --sidebar-width: 350px;
        --content-gap: 2.75rem;
    }
    
    .container-fluid {
        max-width: 1920px;
    }
    
    .col-lg-3 {
        width: 15%;
        min-width: var(--sidebar-width);
        max-width: 380px;
        flex: 0 0 15%;
    }
    
    .col-lg-9 {
        width: 85%;
        flex: 1 1 85%;
        min-width: 0;
    }
}

/* 4K and above (2560px+) - Enterprise Grade */
@media (min-width: 2560px) {
    :root {
        --container-padding: 50px;
        --sidebar-width: 400px;
        --content-gap: 3rem;
        --border-radius: 0.75rem;
    }
    
    .container-fluid {
        max-width: 2400px;
    }
    
    .col-lg-3 {
        width: 12%;
        min-width: var(--sidebar-width);
        max-width: 420px;
        flex: 0 0 12%;
    }
    
    .col-lg-9 {
        width: 88%;
        flex: 1 1 88%;
        min-width: 0;
    }
}

/* Enhanced Table Responsiveness */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

@media (max-width: 991.98px) {
    .table-responsive {
        border: 1px solid #dee2e6;
        border-radius: 0.375rem;
    }
}

/* ========================================
   ADVANCED RESPONSIVE DASHBOARD COMPONENTS
   Enhanced Performance & Accessibility
   ======================================== */

/* Enhanced Dashboard Grid System with CSS Grid */
.dashboard-grid {
    display: grid;
    gap: var(--content-gap);
    margin-bottom: 2rem;
    width: 100%;
    container-type: inline-size;
}

/* Container Queries for Future-Proof Responsive Design */
@container (max-width: 600px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

@container (min-width: 601px) and (max-width: 900px) {
    .dashboard-grid.grid-2,
    .dashboard-grid.grid-3,
    .dashboard-grid.grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@container (min-width: 901px) {
    .dashboard-grid.grid-2 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .dashboard-grid.grid-3 {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .dashboard-grid.grid-4 {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Fallback for browsers without container queries */
/* Mobile - Single Column */
@media (max-width: 575.98px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .dashboard-grid > * {
        min-width: 0;
    }
}

/* Small Mobile - Two Columns for better space usage */
@media (min-width: 576px) and (max-width: 767.98px) {
    .dashboard-grid.grid-2,
    .dashboard-grid.grid-3,
    .dashboard-grid.grid-4 {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

/* Tablet - Flexible Columns with optimal layout */
@media (min-width: 768px) and (max-width: 991.98px) {
    .dashboard-grid.grid-2 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .dashboard-grid.grid-3,
    .dashboard-grid.grid-4 {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .dashboard-grid {
        gap: 1.25rem;
    }
}

/* Desktop - Standard Grid with perfect proportions */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .dashboard-grid.grid-2 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .dashboard-grid.grid-3 {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .dashboard-grid.grid-4 {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .dashboard-grid {
        gap: 1.5rem;
    }
}

/* Large Desktop and above - Optimal Grid with enhanced spacing */
@media (min-width: 1200px) {
    .dashboard-grid.grid-2 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .dashboard-grid.grid-3 {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .dashboard-grid.grid-4 {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .dashboard-grid {
        gap: 1.75rem;
    }
}

/* Ultra-wide - Enhanced Grid with maximum comfort */
@media (min-width: 1600px) {
    .dashboard-grid {
        gap: 2rem;
    }
    
    .dashboard-grid.grid-4 {
        grid-template-columns: repeat(5, 1fr);
    }
}

/* Enhanced Stats Cards with Performance Optimization */
.welcome-stats {
    margin-bottom: 2rem;
    contain: layout style;
}

.welcome-stats .row {
    margin-left: calc(-1 * var(--content-gap) / 2);
    margin-right: calc(-1 * var(--content-gap) / 2);
    gap: 0.5rem;
}

.welcome-stats .row > * {
    padding-left: calc(var(--content-gap) / 2);
    padding-right: calc(var(--content-gap) / 2);
    margin-bottom: 1rem;
    min-width: 0;
}

/* Responsive Stats Cards with Grid Layout */
.stats-container {
    display: grid;
    gap: 1rem;
    width: 100%;
}

/* Mobile - Single column stats */
@media (max-width: 575.98px) {
    .stats-container {
        grid-template-columns: 1fr;
    }
    
    .welcome-stats .col-md-3 {
        width: 100%;
    }
}

/* Small mobile - Two column stats */
@media (min-width: 576px) and (max-width: 767.98px) {
    .stats-container {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .welcome-stats .col-md-3 {
        width: 50%;
    }
}

/* Tablet - Three column stats */
@media (min-width: 768px) and (max-width: 991.98px) {
    .stats-container {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .welcome-stats .col-md-3 {
        width: 33.333333%;
    }
}

/* Desktop and above - Four column stats */
@media (min-width: 992px) {
    .stats-container {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .welcome-stats .col-md-3 {
        width: 25%;
    }
}

/* Enhanced Content Cards with Better Performance */
.content-card {
    margin-bottom: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: all var(--transition-speed) ease;
    background: #ffffff;
    border: 1px solid rgba(0,0,0,0.08);
    contain: layout style;
    will-change: transform;
}

.content-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
}

@media (max-width: 767.98px) {
    .content-card {
        margin-bottom: 1rem;
        border-radius: calc(var(--border-radius) * 0.75);
    }
    
    .content-card:hover {
        transform: none; /* Disable hover effects on touch devices */
    }
}

@media (min-width: 1400px) {
    .content-card {
        margin-bottom: 2rem;
        border-radius: calc(var(--border-radius) * 1.5);
    }
}

/* Enhanced Table Responsive with Better UX */
.table-responsive {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    background: #ffffff;
    position: relative;
}

.table-responsive::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 20px;
    background: linear-gradient(to left, rgba(255,255,255,1), rgba(255,255,255,0));
    pointer-events: none;
    z-index: 2;
}

@media (max-width: 991.98px) {
    .table-responsive {
        border: 1px solid #dee2e6;
        font-size: 0.875rem;
    }
    
    .table-responsive table {
        min-width: 600px;
    }
    
    .table-responsive::after {
        content: 'Scroll to see more →';
        position: absolute;
        bottom: 0;
        right: 10px;
        font-size: 0.75rem;
        color: #6c757d;
        background: rgba(255,255,255,0.9);
        padding: 0.25rem 0.5rem;
        border-radius: 0.25rem;
    }
}

@media (max-width: 575.98px) {
    .table-responsive {
        font-size: 0.8rem;
    }
    
    .table-responsive table {
        min-width: 500px;
    }
}

/* Enhanced Button Groups with Better Touch Support */
.btn-group-responsive {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    align-items: center;
}

@media (max-width: 575.98px) {
    .btn-group-responsive {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .btn-group-responsive .btn {
        width: 100%;
        min-height: 44px;
        font-size: 1rem;
    }
}

/* Performance Optimizations */
.content-wrapper {
    contain: layout style;
    will-change: scroll-position;
}

.sidebar-wrapper {
    contain: layout style;
}

/* Accessibility Enhancements */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    :root {
        --box-shadow: 0 2px 12px rgba(0,0,0,0.3);
    }
    
    .content-card {
        background: #1a1a1a;
        border-color: rgba(255,255,255,0.1);
        color: #ffffff;
    }
    
    .table-responsive {
        background: #1a1a1a;
    }
}

/* Stats Cards Responsive Enhancement */
.col-xl-3,
.col-lg-3,
.col-md-6,
.col-sm-6 {
    width: 100%;
    margin-bottom: 1rem;
}

@media (min-width: 576px) {
    .col-sm-6 {
        width: 50%;
    }
}

@media (min-width: 768px) {
    .col-md-6 {
        width: 50%;
    }
    
    .col-md-4 {
        width: 33.333333%;
    }
    
    .col-md-3 {
        width: 25%;
    }
}

@media (min-width: 992px) {
    .col-lg-4 {
        width: 33.333333%;
    }
    
    .col-lg-3 {
        width: 25%;
    }
}

@media (min-width: 1200px) {
    .col-xl-3 {
        width: 25%;
    }
    
    .col-xl-4 {
        width: 33.333333%;
    }
}

/* Enhanced Mobile Layout */
@media (max-width: 767.98px) {
    .col-lg-3,
    .col-lg-9,
    .col-md-3,
    .col-md-9 {
        width: 100%;
        margin-bottom: 1rem;
    }
    
    .sidebar-card {
        margin-bottom: 1.5rem;
    }
    
    .content-card {
        margin-top: 0;
    }
    
    .summary-card {
        margin-bottom: 1rem;
    }
}

/* Enhanced Sidebar Card Styling */
.sidebar-card {
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e7eb;
    transition: var(--transition-smooth);
    overflow: hidden;
    height: fit-content;
    position: sticky;
    top: 20px;
}

.sidebar-card:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

@media (max-width: 991.98px) {
    .sidebar-card {
        position: relative;
        top: auto;
        margin-bottom: 1.5rem;
    }
}

/* Content Area Enhancement */
.content-card,
.dashboard-card,
.stats-card {
    width: 100%;
    margin-bottom: 1.5rem;
}

/* Modal Responsive Enhancement */
@media (max-width: 576px) {
    .modal-dialog {
        margin: 0.5rem;
        max-width: calc(100vw - 1rem);
    }
    
    .modal-content {
        border-radius: 12px;
    }
}

/* Form Elements Responsive */
.form-control,
.form-select,
.btn {
    width: 100%;
    max-width: 100%;
}

@media (min-width: 768px) {
    .form-control,
    .form-select {
        width: auto;
    }
    
    .btn {
        width: auto;
    }
}

/* Table Controls Enhancement */
.table-controls {
    width: 100%;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

.table-controls .row {
    width: 100%;
    margin: 0;
}

.table-controls .col-md-6,
.table-controls .col-md-3 {
    width: 100%;
    padding: 0.5rem;
}

@media (min-width: 768px) {
    .table-controls .col-md-6 {
        width: 50%;
    }
    
    .table-controls .col-md-3 {
        width: 25%;
    }
}

/* Action Buttons Responsive */
.action-buttons {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

@media (max-width: 576px) {
    .action-buttons {
        gap: 0.25rem;
    }
    
    .btn-action {
        min-width: 36px;
        height: 36px;
    }
}

/* Header styling */
header.bg-primary {
    background-color: #0d6efd !important;
}

header.bg-dark {
    background-color: #212529 !important;
}

header.bg-success {
    background-color: #198754 !important;
}

/* Enhanced Dashboard Wrapper with 2-Column Layout */
.dashboard-wrapper {
    min-height: 100vh;
    background: linear-gradient(135deg, #f8fafc 0%, #e8f4f8 100%);
    display: flex;
    flex-direction: column;
}

/* Enhanced Main Content Wrapper */
.main-content-wrapper {
    display: flex;
    min-height: calc(100vh - 120px);
    gap: 2rem;
    padding: 1rem;
    flex: 1;
}

@media (min-width: 768px) {
    .main-content-wrapper {
        padding: 1.5rem;
    }
}

@media (min-width: 1200px) {
    .main-content-wrapper {
        padding: 2rem;
        gap: 2.5rem;
    }
}

@media (max-width: 991.98px) {
    .main-content-wrapper {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }
}

/* Enhanced Flexible Sidebar System - Resolution Adaptive */
.sidebar-wrapper {
    flex: 0 0 auto;
    position: relative;
    transition: all 0.3s ease;
}

/* Mobile First - Full Width */
.sidebar-wrapper {
    width: 100%;
    max-width: 100%;
    order: 2;
    margin-top: 1rem;
}

/* Tablet - Narrow Sidebar */
@media (min-width: 768px) and (max-width: 991.98px) {
    .sidebar-wrapper {
        width: 240px;
        max-width: 240px;
        order: 1;
        margin-top: 0;
        position: sticky;
        top: 20px;
        align-self: flex-start;
    }
}

/* Desktop - Standard Sidebar */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .sidebar-wrapper {
        width: 250px;
        max-width: 250px;
        order: 1;
        margin-top: 0;
        position: sticky;
        top: 20px;
        align-self: flex-start;
    }
}

/* Large Desktop - Comfortable Sidebar */
@media (min-width: 1200px) and (max-width: 1399.98px) {
    .sidebar-wrapper {
        width: 280px;
        max-width: 280px;
        order: 1;
        margin-top: 0;
        position: sticky;
        top: 20px;
        align-self: flex-start;
    }
}

/* Extra Large - Spacious Sidebar */
@media (min-width: 1400px) and (max-width: 1599.98px) {
    .sidebar-wrapper {
        width: 300px;
        max-width: 300px;
        order: 1;
        margin-top: 0;
        position: sticky;
        top: 20px;
        align-self: flex-start;
    }
}

/* Ultra-wide - Wide Sidebar */
@media (min-width: 1600px) and (max-width: 1919.98px) {
    .sidebar-wrapper {
        width: 320px;
        max-width: 320px;
        order: 1;
        margin-top: 0;
        position: sticky;
        top: 20px;
        align-self: flex-start;
    }
}

/* Full HD and above - Maximum Sidebar */
@media (min-width: 1920px) {
    .sidebar-wrapper {
        width: 350px;
        max-width: 350px;
        order: 1;
        margin-top: 0;
        position: sticky;
        top: 20px;
        align-self: flex-start;
    }
}

/* Enhanced Flexible Content Area - Resolution Adaptive */
.content-wrapper {
    flex: 1;
    min-width: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

/* Mobile - Full Width Content */
@media (max-width: 767.98px) {
    .content-wrapper {
        order: 1;
        padding: 0.5rem;
    }
}

/* Tablet and above - Flex Content */
@media (min-width: 768px) {
    .content-wrapper {
        order: 2;
        padding: 1rem;
    }
}

/* Large screens - Enhanced spacing */
@media (min-width: 1400px) {
    .content-wrapper {
        padding: 1.5rem;
    }
}

/* Ultra-wide - Maximum spacing */
@media (min-width: 1920px) {
    .content-wrapper {
        padding: 2rem;
    }
}

/* Enhanced Fluid Layout */
.container-fluid {
    width: 100%;
    padding-right: var(--bs-gutter-x, 0.75rem);
    padding-left: var(--bs-gutter-x, 0.75rem);
    margin-right: auto;
    margin-left: auto;
}

@media (min-width: 576px) {
    .container-fluid {
        padding-right: 1rem;
        padding-left: 1rem;
    }
}

@media (min-width: 768px) {
    .container-fluid {
        padding-right: 1.5rem;
        padding-left: 1.5rem;
    }
}

@media (min-width: 1200px) {
    .container-fluid {
        padding-right: 2rem;
        padding-left: 2rem;
    }
}

@media (min-width: 1920px) {
    .container-fluid {
        max-width: 1800px;
        padding-right: 3rem;
        padding-left: 3rem;
    }
}

/* Row and Column Enhancements */
.row {
    --bs-gutter-x: 1.5rem;
    --bs-gutter-y: 0;
    display: flex;
    flex-wrap: wrap;
    margin-top: calc(-1 * var(--bs-gutter-y));
    margin-right: calc(-0.5 * var(--bs-gutter-x));
    margin-left: calc(-0.5 * var(--bs-gutter-x));
}

.row > * {
    flex-shrink: 0;
    width: 100%;
    max-width: 100%;
    padding-right: calc(var(--bs-gutter-x) * 0.5);
    padding-left: calc(var(--bs-gutter-x) * 0.5);
    margin-top: var(--bs-gutter-y);
}

@media (max-width: 576px) {
    .row {
        --bs-gutter-x: 1rem;
    }
}

/* Viewport Width Classes */
.w-100 { width: 100% !important; }
.mw-100 { max-width: 100% !important; }
.min-vw-100 { min-width: 100vw !important; }
.vw-100 { width: 100vw !important; }

/* Flexible Utilities */
.flex-fill { flex: 1 1 auto !important; }
.flex-grow-1 { flex-grow: 1 !important; }
.flex-shrink-1 { flex-shrink: 1 !important; }
.flex-shrink-0 { flex-shrink: 0 !important; }

/* Overflow Utilities */
.overflow-auto { overflow: auto !important; }
.overflow-hidden { overflow: hidden !important; }
.overflow-x-auto { overflow-x: auto !important; }
.overflow-y-auto { overflow-y: auto !important; }

/* Enhanced Spacing System */
@media (min-width: 1400px) {
    .p-xl-4 { padding: 2rem !important; }
    .px-xl-4 { padding-left: 2rem !important; padding-right: 2rem !important; }
    .py-xl-4 { padding-top: 2rem !important; padding-bottom: 2rem !important; }
    .m-xl-4 { margin: 2rem !important; }
    .mx-xl-4 { margin-left: 2rem !important; margin-right: 2rem !important; }
    .my-xl-4 { margin-top: 2rem !important; margin-bottom: 2rem !important; }
}

@media (min-width: 1920px) {
    .p-xxl-5 { padding: 3rem !important; }
    .px-xxl-5 { padding-left: 3rem !important; padding-right: 3rem !important; }
    .py-xxl-5 { padding-top: 3rem !important; padding-bottom: 3rem !important; }
    .m-xxl-5 { margin: 3rem !important; }
    .mx-xxl-5 { margin-left: 3rem !important; margin-right: 3rem !important; }
    .my-xxl-5 { margin-top: 3rem !important; margin-bottom: 3rem !important; }
}

/* Card styling */
.card {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    border: 1px solid rgba(0, 0, 0, 0.125);
}

.card-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-bottom: 1px solid #e2e8f0;
    padding: 1rem 1.25rem;
    border-radius: 12px 12px 0 0;
}

.card-header .card-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: #2d3748;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.card-header .card-title i {
    color: #006838;
    font-size: 1.1rem;
}

.card-body {
    padding: 1.25rem;
    background: #ffffff;
    border-radius: 0 0 12px 12px;
}

/* Form styling */
.form-control:focus {
    border-color: #86b7fe;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.btn-primary {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

.btn-primary:hover {
    background-color: #0b5ed7;
    border-color: #0a58ca;
}

/* Table styling */
.table th {
    border-top: none;
    border-bottom: 2px solid #dee2e6;
}

.table td {
    border-top: 1px solid #dee2e6;
}

/* Badge styling */
.badge {
    font-weight: 500;
}

/* Footer styling */
footer {
    margin-top: auto;
    background-color: #f8f9fa;
    border-top: 1px solid #dee2e6;
}

/* Additional Login Form Enhancements */
.form-floating .form-control:focus + label {
    color: #667eea;
}

/* Input focus effects */
.form-floating .form-control:focus {
    background-color: #fafbff;
}

/* Alert styling improvements */
.alert {
    border: none;
    border-radius: 12px;
    font-weight: 500;
    margin-bottom: 1rem;
    padding: 1rem 1.25rem;
    position: relative;
    display: flex;
    align-items: center;
    min-height: 3rem;
}

.alert:empty {
    display: none !important;
}

.alert-danger {
    background: linear-gradient(135deg, #ff6b6b 0%, #ff5252 100%);
    color: white;
    border-left: 4px solid #ff3030;
}

.alert-success {
    background: linear-gradient(135deg, #51cf66 0%, #40c057 100%);
    color: white;
    border-left: 4px solid #2b8f47;
}

.alert-info {
    background: linear-gradient(135deg, #74c0fc 0%, #339af0 100%);
    color: white;
    border-left: 4px solid #1c7ed6;
}

.alert-warning {
    background: linear-gradient(135deg, #ffd43b 0%, #fab005 100%);
    color: #212529;
    border-left: 4px solid #e8590c;
}

.alert .btn-close {
    filter: brightness(0) invert(1);
    opacity: 0.8;
}

.alert .btn-close:hover {
    opacity: 1;
}

.alert i {
    margin-right: 0.5rem;
    font-size: 1.1rem;
}

/* Loading animation for button */
.btn-login.loading {
    position: relative;
    color: transparent;
}

.btn-login.loading:after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 2px solid #ffffff;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Password strength indicator */
.password-strength {
    height: 4px;
    background: #e9ecef;
    border-radius: 2px;
    margin-top: 5px;
    overflow: hidden;
}

.password-strength-bar {
    height: 100%;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.password-weak { background: #ff6b6b; width: 33%; }
.password-medium { background: #ffa726; width: 66%; }
.password-strong { background: #51cf66; width: 100%; }

/* Enhanced hover effects */
.form-floating:hover .form-control {
    border-color: #b3c7f7;
}

/* Dark mode support (future enhancement) */
@media (prefers-color-scheme: dark) {
    .login-card {
        background: rgba(33, 37, 41, 0.95);
        color: white;
    }
    
    .form-floating .form-control {
        background-color: rgba(255, 255, 255, 0.1);
        border-color: rgba(255, 255, 255, 0.2);
        color: white;
    }
    
    .form-floating label {
        color: rgba(255, 255, 255, 0.7);
    }
}

/* Enhanced Help Modal Styles */
.modal-backdrop {
    animation: fadeIn 0.3s ease;
}

.help-modal {
    font-family: 'Inter', sans-serif;
    animation: slideUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.help-modal .close-modal:hover {
    background: rgba(0, 104, 56, 0.1) !important;
    color: var(--primary-green) !important;
}

.btn-close-modal:hover {
    background: var(--secondary-green) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 104, 56, 0.3);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Enhanced Status Indicators */
.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 8px;
    animation: pulse 2s infinite;
}

.status-online {
    background: var(--accent-green);
    box-shadow: 0 0 0 2px rgba(0, 168, 92, 0.3);
}

.status-offline {
    background: #ef4444;
    box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.3);
    animation: none;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.1);
    }
}

/* Enhanced System Status Section */
.system-status {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: linear-gradient(135deg, var(--light-green) 0%, rgba(255, 255, 255, 0.9) 100%);
    border: 1px solid rgba(0, 104, 56, 0.1);
    border-radius: 8px;
    margin: 1rem 0;
    font-size: 0.875rem;
}

.status-indicator {
    display: flex;
    align-items: center;
    font-weight: 500;
    color: var(--text-dark);
}

.current-time {
    color: var(--text-gray);
    font-weight: 400;
    font-size: 0.8125rem;
}

/* Enhanced Contact Section */
.contact-section {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(0, 104, 56, 0.1);
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-gray);
    transition: var(--transition-smooth);
}

.contact-item:hover {
    color: var(--primary-green);
    transform: translateY(-1px);
}

.contact-item i {
    color: var(--primary-green);
    width: 16px;
    text-align: center;
}

/* Enhanced Quick Help Section */
.quick-help-section {
    background: linear-gradient(135deg, var(--light-green) 0%, rgba(255, 255, 255, 0.95) 100%);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    border: 1px solid rgba(0, 104, 56, 0.1);
}

.help-title {
    color: var(--primary-green);
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 1rem;
    display: flex;
    align-items: center;
}

.help-items {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.help-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem;
    border-radius: 6px;
    transition: var(--transition-smooth);
    font-size: 0.875rem;
    color: var(--text-dark);
}

.help-item:hover {
    background: rgba(0, 104, 56, 0.05);
    transform: translateX(5px);
}

.help-item i {
    color: var(--primary-green);
    width: 20px;
    text-align: center;
    font-size: 1rem;
}

/* Enhanced Help Links */
.help-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 1.5rem 0;
}

.help-link {
    display: flex;
    align-items: center;
    color: var(--text-gray);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: var(--transition-smooth);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    border: 1px solid transparent;
}

.help-link:hover {
    color: var(--primary-green);
    background: var(--light-green);
    border-color: rgba(0, 104, 56, 0.2);
    transform: translateY(-2px);
    text-decoration: none;
}

.help-link i {
    color: var(--primary-green);
    margin-right: 0.5rem;
}

/* Enhanced Mobile Campus Image */
.mobile-campus-container {
    position: relative;
    width: 100%;
    max-width: 200px;
    margin: 0 auto 1rem;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 104, 56, 0.2);
}

.mobile-campus-img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.mobile-campus-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 104, 56, 0.8) 0%, rgba(0, 132, 74, 0.6) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.university-logo-small-container {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.university-logo-small {
    width: 30px;
    height: 30px;
    object-fit: contain;
}

.mobile-title {
    color: var(--primary-green);
    font-weight: 700;
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
    font-family: 'Playfair Display', serif;
}

.mobile-subtitle {
    color: var(--text-gray);
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

/* Enhanced Responsive Design */
@media (max-width: 768px) {
    .system-status {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
    
    .contact-section {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
    
    .help-links {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
    
    .help-link {
        justify-content: center;
        min-width: 150px;
    }
    
    .quick-help-section {
        margin: 1rem 0;
        padding: 1rem;
    }
    
    .help-modal {
        margin: 1rem;
        width: calc(100% - 2rem) !important;
        max-width: none !important;
    }
}

/* Enhanced Animation for Stat Numbers */
.stat-number {
    font-weight: 700;
    color: var(--primary-green);
    transition: var(--transition-smooth);
}

.stat-number:hover {
    transform: scale(1.1);
    text-shadow: 0 2px 8px rgba(0, 104, 56, 0.3);
}

/* Additional Green Accent Elements */
.divider span {
    color: var(--primary-green);
    font-weight: 500;
}

.register-link span {
    color: var(--primary-green);
    font-weight: 600;
}

.register-link:hover span {
    color: var(--secondary-green);
}

/* ========================================
   USER MANAGEMENT PAGE ENHANCEMENTS
   ======================================== */

/* Summary Cards */
.summary-card {
    background: var(--white);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    position: relative;
    overflow: hidden;
}

.summary-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-green), var(--accent-green));
    transition: var(--transition-smooth);
}

.summary-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.summary-card:hover::before {
    width: 6px;
}

.summary-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--white);
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.summary-icon.bg-primary {
    background: linear-gradient(135deg, #0d6efd, #0b5ed7);
}

.summary-icon.bg-warning {
    background: linear-gradient(135deg, #ffc107, #ffcd39);
}

.summary-icon.bg-info {
    background: linear-gradient(135deg, #0dcaf0, #31d2f2);
}

.summary-icon.bg-success {
    background: linear-gradient(135deg, #198754, #20c997);
}

.summary-content {
    flex: 1;
}

.summary-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
    font-family: 'Inter', sans-serif;
}

.summary-label {
    font-size: 0.875rem;
    color: var(--text-gray);
    font-weight: 500;
    margin: 0;
}

/* Enhanced Content Card Header */
.content-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 2rem 2rem 1.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.header-left {
    flex: 1;
}

.content-card-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-family: 'Inter', sans-serif;
}

.card-subtitle {
    color: var(--text-gray);
    font-size: 0.9rem;
    font-weight: 400;
}

/* Table Controls */
.table-controls {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.search-box {
    position: relative;
}

.search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-gray);
    font-size: 0.875rem;
    z-index: 2;
}

.search-box .form-control {
    padding-left: 2.5rem;
    border-radius: 10px;
    border: 1px solid #e9ecef;
    background: var(--white);
    transition: var(--transition-smooth);
}

.search-box .form-control:focus {
    border-color: var(--primary-green);
    box-shadow: 0 0 0 0.2rem rgba(0, 104, 56, 0.1);
}

.form-select {
    border-radius: 10px;
    border: 1px solid #e9ecef;
    background: var(--white);
    transition: var(--transition-smooth);
}

.form-select:focus {
    border-color: var(--primary-green);
    box-shadow: 0 0 0 0.2rem rgba(0, 104, 56, 0.1);
}

.table-info {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    height: 100%;
    font-size: 0.875rem;
    color: var(--text-gray);
    font-weight: 500;
}

#resultCount {
    font-weight: 700;
    color: var(--primary-green);
}

/* Enhanced Modern Table */
.modern-table {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 0;
}

.modern-table thead {
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--secondary-green) 100%);
    box-shadow: 0 2px 8px rgba(0, 104, 56, 0.15);
}

.modern-table thead th {
    border: none;
    padding: 1rem 1.25rem;
    font-weight: 600;
    color: white;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
}

.modern-table thead th.sortable {
    cursor: pointer;
    user-select: none;
    transition: var(--transition-smooth);
}

.modern-table thead th.sortable:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.sort-icon {
    margin-left: 0.5rem;
    font-size: 0.75rem;
    opacity: 0.5;
    transition: var(--transition-smooth);
}

.sort-icon.active {
    opacity: 1;
    color: white;
}

.modern-table tbody tr {
    border: none;
    transition: var(--transition-smooth);
}

.modern-table tbody tr:hover {
    background: rgba(0, 104, 56, 0.02);
    transform: scale(1.002);
}

.modern-table tbody td {
    border: none;
    padding: 1.25rem;
    vertical-align: middle;
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}

/* User Info Cell */
.user-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--primary-green), var(--accent-green));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 0.875rem;
    flex-shrink: 0;
}

.username {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.9rem;
}

.user-name {
    font-weight: 500;
    color: var(--text-dark);
    font-size: 0.95rem;
}

.email-text {
    color: var(--text-gray);
    font-size: 0.875rem;
}

.study-program {
    color: var(--text-gray);
    font-size: 0.875rem;
    font-style: italic;
}

/* Enhanced Role Badges */
.role-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid;
    transition: var(--transition-smooth);
}

.badge-admin {
    background: linear-gradient(135deg, #6f42c1, #8b5cf6);
    color: var(--white);
    border-color: #6f42c1;
    box-shadow: 0 2px 8px rgba(111, 66, 193, 0.2);
}

.badge-admin-prodi {
    background: linear-gradient(135deg, #fd7e14, #ff922b);
    color: var(--white);
    border-color: #fd7e14;
    box-shadow: 0 2px 8px rgba(253, 126, 20, 0.2);
}

.badge-lecturer {
    background: linear-gradient(135deg, #0dcaf0, #31d2f2);
    color: var(--white);
    border-color: #0dcaf0;
    box-shadow: 0 2px 8px rgba(13, 202, 240, 0.2);
}

.badge-student {
    background: linear-gradient(135deg, #198754, #20c997);
    color: var(--white);
    border-color: #198754;
    box-shadow: 0 2px 8px rgba(25, 135, 84, 0.2);
}

.badge-default {
    background: linear-gradient(135deg, #6c757d, #8e979e);
    color: var(--white);
    border-color: #6c757d;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
}

.btn-action {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.btn-action::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--white);
    opacity: 0;
    transition: var(--transition-smooth);
}

.btn-action:hover::before {
    opacity: 0.2;
}

.btn-edit {
    background: linear-gradient(135deg, #ffc107, #ffcd39);
    color: var(--white);
    box-shadow: 0 2px 8px rgba(255, 193, 7, 0.2);
}

.btn-edit:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.3);
    color: var(--white);
}

.btn-reset {
    background: linear-gradient(135deg, #17a2b8, #20c997);
    color: var(--white);
    box-shadow: 0 2px 8px rgba(23, 162, 184, 0.2);
}

.btn-reset:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(23, 162, 184, 0.3);
    color: var(--white);
}

.btn-delete {
    background: linear-gradient(135deg, #dc3545, #e55563);
    color: var(--white);
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.2);
}

.btn-delete:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.3);
    color: var(--white);
}

/* Enhanced Modal Styling */
.modal-content {
    border-radius: 16px;
    border: none;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

.modal-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 1.5rem 2rem;
}

.modal-title {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 1.25rem;
}

.modal-body {
    padding: 2rem;
}

.modal-footer {
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding: 1.5rem 2rem;
    background: #f8f9fa;
}

/* Form Enhancements */
.form-label {
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.form-control, .form-select {
    border-radius: 10px;
    border: 1px solid #e9ecef;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    transition: var(--transition-smooth);
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-green);
    box-shadow: 0 0 0 0.2rem rgba(0, 104, 56, 0.1);
}

/* Button Enhancements */
.btn {
    border-radius: 10px;
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    transition: var(--transition-smooth);
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-green), var(--accent-green));
    color: var(--white);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--secondary-green), var(--primary-green));
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(0, 104, 56, 0.3);
    color: var(--white);
}

.btn-success {
    background: linear-gradient(135deg, #198754, #20c997);
    color: var(--white);
}

.btn-success:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(25, 135, 84, 0.3);
    color: var(--white);
}

.btn-warning {
    background: linear-gradient(135deg, #ffc107, #ffcd39);
    color: var(--text-dark);
    font-weight: 600;
}

.btn-warning:hover {
    background: linear-gradient(135deg, #ffcd39, #ffc107);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.3);
    color: var(--text-dark);
}

/* Enhanced Alert Styles for Better UX */
.alert-dismissible .btn-close {
    position: absolute;
    top: 50%;
    right: 1rem;
    transform: translateY(-50%);
    background: none;
    border: none;
    opacity: 0.8;
    transition: var(--transition-smooth);
}

.alert-dismissible .btn-close:hover {
    opacity: 1;
    transform: translateY(-50%) scale(1.1);
}

/* Enhanced Card Actions */
.card-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.card-actions .btn {
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
    white-space: nowrap;
}

/* Enhanced Hover Effects for Table Rows */
.user-row {
    position: relative;
    overflow: hidden;
}

.user-row::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, var(--primary-green), transparent);
    opacity: 0;
    transition: var(--transition-smooth);
    z-index: 1;
}

.user-row:hover::before {
    width: 4px;
    opacity: 0.6;
}

/* Enhanced Modal Animations */
.modal.fade .modal-dialog {
    transform: translateY(-30px) scale(0.95);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal.show .modal-dialog {
    transform: translateY(0) scale(1);
    opacity: 1;
}

/* Enhanced Button Group */
.btn-group .btn-action {
    margin: 0;
    border-radius: 0;
}

.btn-group .btn-action:first-child {
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
}

.btn-group .btn-action:last-child {
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
}

.btn-group .btn-action:not(:last-child) {
    border-right: 1px solid rgba(255, 255, 255, 0.2);
}

/* Enhanced Accessibility */
.btn-action:focus {
    outline: 2px solid var(--primary-green);
    outline-offset: 2px;
}

.form-control:focus,
.form-select:focus {
    outline: none;
}

/* Enhanced Typography */
.content-card-title {
    letter-spacing: -0.025em;
}

.summary-label {
    line-height: 1.4;
}

.table-info {
    letter-spacing: 0.025em;
}

.btn-secondary {
    background: #6c757d;
    color: var(--white);
}

.btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-1px);
    color: var(--white);
}

.btn-danger {
    background: linear-gradient(135deg, #dc3545, #e55563);
    color: var(--white);
}

.btn-danger:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.3);
    color: var(--white);
}

/* Responsive Design */
@media (max-width: 768px) {
    .summary-card {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
        padding: 1rem;
        margin-bottom: 0.75rem;
        width: 100%;
    }
    
    .summary-icon {
        width: 48px;
        height: 48px;
        font-size: 1.25rem;
        margin: 0 auto;
    }
    
    .summary-number {
        font-size: 1.5rem;
    }
    
    .content-card-header {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
        padding: 1.5rem 1rem 1rem;
    }
    
    .card-actions {
        display: flex;
        flex-direction: row;
        gap: 0.5rem;
        justify-content: stretch;
        width: 100%;
    }
    
    .card-actions .btn {
        flex: 1;
        text-align: center;
        font-size: 0.8rem;
        padding: 0.5rem 0.75rem;
    }
    
    .table-controls {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    .table-controls .row {
        --bs-gutter-x: 0.75rem;
        gap: 0.75rem;
    }
    
    .table-controls .col-md-6,
    .table-controls .col-md-3 {
        margin-bottom: 0.75rem;
        width: 100%;
        flex: 0 0 100%;
    }
    
    .action-buttons {
        flex-wrap: wrap;
        gap: 0.375rem;
        justify-content: center;
    }
    
    .btn-action {
        width: 32px;
        height: 32px;
        font-size: 0.75rem;
    }
    
    .user-info {
        flex-direction: row;
        text-align: left;
        gap: 0.75rem;
        align-items: center;
    }
    
    .modern-table {
        font-size: 0.875rem;
    }
    
    .modern-table tbody td {
        padding: 1rem 0.75rem;
        word-break: break-word;
    }
    
    .modern-table th {
        padding: 0.75rem 0.5rem;
        font-size: 0.8rem;
    }
    
    .modal-dialog {
        margin: 1rem;
        max-width: calc(100vw - 2rem);
    }
    
    .modal-body {
        padding: 1.5rem;
    }
    
    .modal-header,
    .modal-footer {
        padding: 1.25rem 1.5rem;
    }
    
    .row.mb-4 {
        margin-bottom: 1.5rem !important;
    }
    
    .col-lg-6,
    .col-md-6,
    .col-xl-3,
    .col-lg-4,
    .col-md-4 {
        width: 100%;
        margin-bottom: 1rem;
        padding: 0 0.75rem;
    }
    
    /* Enhanced Stats Cards Mobile */
    .stats-card {
        margin-bottom: 1rem;
        padding: 1rem;
    }
    
    .stats-content {
        text-align: center;
    }
    
    .stats-value {
        font-size: 2rem;
    }
    
    .stats-label {
        font-size: 0.875rem;
    }
    
    /* Dashboard Grid Mobile */
    .dashboard-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    /* Profile Cards Mobile */
    .dashboard-card {
        margin-bottom: 1.5rem;
    }
    
    .profile-info {
        padding: 0;
    }
    
    .profile-item {
        margin-bottom: 1rem;
        padding-bottom: 0.75rem;
        border-bottom: 1px solid #e9ecef;
    }
    
    .profile-item:last-child {
        border-bottom: none;
    }
    
    /* Table Responsive Mobile */
    .table-responsive {
        border: none;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .table {
        min-width: 600px;
    }
    
    .sidebar-card {
        margin-bottom: 1.5rem;
        order: 2;
    }
    
    .col-lg-9 {
        order: 1;
    }
    
    .col-lg-3 {
        order: 2;
    }
}

/* Tablet Responsive Enhancements */
@media (min-width: 769px) and (max-width: 991.98px) {
    .container {
        max-width: 90%;
    }
    
    .col-lg-3 {
        width: 30%;
        max-width: 280px;
    }
    
    .col-lg-9 {
        width: 70%;
    }
    
    .col-md-4 {
        width: 50%;
    }
    
    .col-xl-3 {
        width: 50%;
    }
    
    .summary-card {
        flex-direction: row;
        gap: 1rem;
        padding: 1.25rem;
    }
    
    .summary-icon {
        width: 52px;
        height: 52px;
    }
    
    .table-controls .col-md-6 {
        width: 60%;
    }
    
    .table-controls .col-md-3 {
        width: 20%;
    }
    
    .content-card-header {
        flex-direction: row;
        align-items: flex-start;
    }
    
    .card-actions {
        flex-direction: row;
        gap: 0.75rem;
    }
}

/* Large Screen Optimizations */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
        padding-left: 2rem;
        padding-right: 2rem;
    }
    
    .summary-card {
        padding: 2rem;
        gap: 1.5rem;
    }
    
    .summary-icon {
        width: 64px;
        height: 64px;
        font-size: 1.75rem;
    }
    
    .summary-number {
        font-size: 2.25rem;
    }
    
    .summary-label {
        font-size: 1rem;
    }
    
    .content-card-header {
        padding: 2.5rem 2.5rem 2rem;
    }
    
    .content-card-body {
        padding: 2rem 2.5rem 2.5rem;
    }
    
    .table-controls {
        padding: 1.5rem 2rem;
    }
    
    .modern-table tbody td {
        padding: 1.5rem 1.25rem;
    }
    
    .modern-table thead th {
        padding: 1.25rem;
    }
    
    .btn-action {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .action-buttons {
        gap: 0.75rem;
    }
}

/* Ultra-wide Screen Optimizations */
@media (min-width: 1920px) {
    .container {
        max-width: 1800px;
        padding-left: 3rem;
        padding-right: 3rem;
    }
    
    .summary-card {
        padding: 2.5rem;
        gap: 2rem;
    }
    
    .summary-icon {
        width: 72px;
        height: 72px;
        font-size: 2rem;
    }
    
    .summary-number {
        font-size: 2.5rem;
    }
    
    .content-card-header {
        padding: 3rem 3rem 2.5rem;
    }
    
    .content-card-body {
        padding: 2.5rem 3rem 3rem;
    }
    
    .table-controls {
        padding: 2rem 2.5rem;
    }
    
    .modern-table tbody td {
        padding: 1.75rem 1.5rem;
    }
    
    .modern-table thead th {
        padding: 1.5rem;
    }
}

/* Print Styles */
@media print {
    .sidebar-card,
    .card-actions,
    .action-buttons,
    .btn,
    .modal {
        display: none !important;
    }
    
    .col-lg-9 {
        width: 100% !important;
    }
    
    .content-card {
        box-shadow: none !important;
        border: 1px solid #dee2e6 !important;
    }
    
    .table {
        font-size: 0.8rem;
    }
    
    .summary-card {
        border: 1px solid #dee2e6;
        box-shadow: none;
        page-break-inside: avoid;
    }
}

/* Animation Classes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.5s ease-out;
}

/* Loading States */
.btn.loading {
    position: relative;
    color: transparent;
}

.btn.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 16px;
    height: 16px;
    border: 2px solid currentColor;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Modern University Portal Login Styling - Enhanced */

/* Import Google Fonts for better typography */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:wght@400;600;700&display=swap');

/* Root Variables with Enhanced Green Color Scheme */
:root {
    --primary-blue: #1e3c72;
    --secondary-blue: #2a5298;
    --accent-blue: #3d6cb9;
    --primary-green: #006838;
    --secondary-green: #00844a;
    --accent-green: #00a05c;
    --light-green: #e8f5f0;
    --gold-primary: #ffd700;
    --gold-secondary: #ffed4a;
    --text-dark: #2d3748;
    --text-gray: #718096;
    --text-light: #a0aec0;
    --white: #ffffff;
    --glass-bg: rgba(255, 255, 255, 0.95);
    --shadow-soft: 0 10px 25px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 15px 35px rgba(0, 0, 0, 0.15);
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --border-radius: 16px;
}

/* Login Wrapper */
.login-wrapper {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Enhanced Background with animated shapes */
.login-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 50%, var(--accent-blue) 100%);
    z-index: -1;
}

.login-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(255, 215, 0, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
    animation: backgroundPulse 10s ease-in-out infinite;
}

@keyframes backgroundPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

.background-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.shape {
    position: absolute;
    opacity: 0.08;
    animation: floatElegant 20s infinite ease-in-out;
}

.shape-1 {
    top: 10%;
    left: 5%;
    width: 120px;
    height: 120px;
    background: linear-gradient(45deg, var(--gold-primary), var(--gold-secondary));
    border-radius: 50%;
    animation-delay: 0s;
}

.shape-2 {
    top: 50%;
    right: 10%;
    width: 180px;
    height: 180px;
    background: linear-gradient(45deg, var(--white), rgba(255, 255, 255, 0.5));
    border-radius: 40px;
    animation-delay: 7s;
}

.shape-3 {
    bottom: 15%;
    left: 15%;
    width: 100px;
    height: 100px;
    background: linear-gradient(45deg, var(--gold-primary), var(--white));
    border-radius: 30px;
    animation-delay: 14s;
}

@keyframes floatElegant {
    0%, 100% { 
        transform: translateY(0) rotate(0deg) scale(1); 
    }
    25% { 
        transform: translateY(-30px) rotate(90deg) scale(1.1); 
    }
    50% { 
        transform: translateY(20px) rotate(180deg) scale(0.9); 
    }
    75% { 
        transform: translateY(-15px) rotate(270deg) scale(1.05); 
    }
}

/* Enhanced Brand Side */
.login-brand-side {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    border-right: 1px solid rgba(255, 255, 255, 0.15);
    position: relative;
    overflow: hidden;
}

/* University Building Background - Enhanced for Login Display */
.university-building-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

.building-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%; /* Focus on the building structure */
    opacity: 0.18; /* Slightly more visible for better branding */
    transition: var(--transition-smooth);
    transform: scale(1.08); /* Subtle zoom for elegance */
    animation: buildingParallax 25s ease-in-out infinite;
    filter: contrast(1.1) brightness(1.05); /* Enhanced visual appeal */
}

.building-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg, 
        rgba(30, 60, 114, 0.82) 0%, 
        rgba(42, 82, 152, 0.75) 35%, 
        rgba(0, 104, 56, 0.15) 65%, /* Green accent integration */
        rgba(61, 108, 185, 0.80) 100%
    );
    z-index: 2;
}

@keyframes buildingParallax {
    0%, 100% { 
        transform: scale(1.08) translateY(0) translateX(0);
        opacity: 0.18;
    }
    25% { 
        transform: scale(1.10) translateY(-8px) translateX(3px);
        opacity: 0.15;
    }
    50% { 
        transform: scale(1.12) translateY(-12px) translateX(-2px);
        opacity: 0.14;
    }
    75% { 
        transform: scale(1.10) translateY(-5px) translateX(4px);
        opacity: 0.16;
    }
}

.brand-content {
    color: var(--white);
    max-width: 450px;
    padding: 3rem 2rem;
    position: relative;
    z-index: 3;
}

/* Enhanced System Information Section */
.system-info-section {
    margin: 2rem 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: relative;
    z-index: 3;
}

.info-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-green), var(--accent-green));
    transition: var(--transition-smooth);
}

.info-card:hover {
    background: rgba(255, 255, 255, 0.18);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 104, 56, 0.15);
}

.info-card:hover::before {
    width: 6px;
}

.info-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary-green), var(--secondary-green));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--white);
    box-shadow: 0 4px 15px rgba(0, 104, 56, 0.3);
    flex-shrink: 0;
}

.info-content {
    flex: 1;
}

.info-title {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 0.25rem;
}

.info-desc {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.75);
    margin: 0;
    line-height: 1.4;
}

/* Campus Showcase Section - Enhanced for Login Integration */
.campus-showcase {
    margin: 2rem 0;
    position: relative;
    z-index: 3;
}

.campus-image-container {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-medium);
    transition: var(--transition-smooth);
    margin-bottom: 1.5rem;
    border: 2px solid rgba(0, 104, 56, 0.2); /* Green border accent */
}

.campus-image-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 60px rgba(0, 104, 56, 0.25); /* Green shadow on hover */
    border-color: rgba(0, 104, 56, 0.4);
}

.campus-showcase-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    object-position: center 25%; /* Focus on building architecture */
    transition: var(--transition-smooth);
    filter: contrast(1.1) brightness(1.02) saturate(1.1); /* Enhanced visual quality */
}

.campus-image-container:hover .campus-showcase-img {
    transform: scale(1.08); /* Slightly more zoom for engagement */
    filter: contrast(1.15) brightness(1.05) saturate(1.15);
}

.campus-image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(
        to top,
        rgba(0, 104, 56, 0.85) 0%, /* Green overlay for brand consistency */
        rgba(0, 104, 56, 0.6) 25%,
        rgba(0, 0, 0, 0.4) 60%,
        transparent 100%
    );
    padding: 1.5rem;
    color: var(--white);
}

.campus-info {
    text-align: left;
}

.campus-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--white);
}

.campus-subtitle {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1rem;
    font-weight: 400;
}

/* Enhanced Campus Statistics */
.campus-stats {
    display: flex;
    gap: 1.5rem;
    margin-top: 1rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.75rem;
    background: rgba(0, 104, 56, 0.2);
    border-radius: 8px;
    border: 1px solid rgba(0, 168, 92, 0.3);
    min-width: 80px;
    transition: var(--transition-smooth);
}

.stat-item:hover {
    background: rgba(0, 104, 56, 0.3);
    transform: translateY(-2px);
}

.stat-number {
    font-family: 'Inter', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.8);
    text-align: center;
    line-height: 1.2;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Mobile Campus Integration */
.mobile-campus-container {
    position: relative;
    margin-bottom: 1.5rem;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

/* Enhanced Mobile Campus Image for Login */
.mobile-campus-container {
    position: relative;
    width: 100%;
    max-width: 200px;
    margin: 0 auto 1rem;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 104, 56, 0.25); /* Green shadow */
    border: 2px solid rgba(0, 104, 56, 0.3); /* Green border */
    transition: var(--transition-smooth);
}

.mobile-campus-container:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(0, 104, 56, 0.35);
    border-color: rgba(0, 104, 56, 0.5);
}

.mobile-campus-img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    object-position: center 25%; /* Focus on building architecture */
    transition: var(--transition-smooth);
    filter: contrast(1.1) brightness(1.05) saturate(1.1);
}

.mobile-campus-container:hover .mobile-campus-img {
    transform: scale(1.05);
    filter: contrast(1.15) brightness(1.08) saturate(1.15);
}

.mobile-campus-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(0, 104, 56, 0.75) 0%, /* Green overlay for consistency */
        rgba(30, 60, 114, 0.65) 50%,
        rgba(42, 82, 152, 0.70) 100%
    );
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-campus-overlay .university-logo-small-container {
    background: rgba(255, 255, 255, 0.20);
    backdrop-filter: blur(12px);
    border-radius: 50%;
    padding: 1.2rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 15px rgba(0, 104, 56, 0.2);
    transition: var(--transition-smooth);
}

.mobile-campus-overlay:hover .university-logo-small-container {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.05);
}

/* University Logo Styling */
.university-logo-container {
    position: relative;
    margin-bottom: 2rem;
    display: inline-block;
}

.university-logo-img {
    width: 120px;
    height: 120px;
    filter: drop-shadow(0 8px 32px rgba(255, 215, 0, 0.3));
    animation: logoFloat 6s ease-in-out infinite;
    transition: var(--transition-smooth);
}

.university-logo-img:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 12px 40px rgba(255, 215, 0, 0.4));
}

.logo-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 140px;
    height: 140px;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    animation: glowPulse 4s ease-in-out infinite;
    z-index: -1;
}

@keyframes logoFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes glowPulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.6; }
    50% { transform: translate(-50%, -50%) scale(1.1); opacity: 0.8; }
}

/* Enhanced Typography - Elegant My PPG Styling */
.brand-title {
    font-family: 'Playfair Display', serif;
    font-size: 3.8rem; /* Increased for more elegance */
    font-weight: 900; /* Extra bold for elegance */
    margin-bottom: 0.75rem;
    background: linear-gradient(135deg, 
        #FFD700 0%, 
        rgba(255, 255, 255, 0.98) 20%,
        var(--primary-green) 45%, /* Green accent integration */
        #FFF8DC 70%,
        rgba(255, 255, 255, 0.95) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 6px 20px rgba(0, 104, 56, 0.4), 
                 0 3px 10px rgba(255, 215, 0, 0.3),
                 0 1px 3px rgba(0, 0, 0, 0.1);
    line-height: 1.05;
    letter-spacing: 0.025em; /* Enhanced letter spacing for premium feel */
    position: relative;
    animation: titleGlow 10s ease-in-out infinite;
    text-align: center;
    display: block;
}

.brand-title::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -20px;
    right: -20px;
    bottom: -10px;
    background: linear-gradient(135deg, 
        rgba(0, 104, 56, 0.08) 0%, 
        rgba(255, 215, 0, 0.05) 30%,
        transparent 50%, 
        rgba(255, 215, 0, 0.05) 70%,
        rgba(0, 104, 56, 0.08) 100%);
    border-radius: 20px;
    z-index: -1;
    transform: scale(1.05);
    opacity: 0;
    transition: all 0.8s ease;
    backdrop-filter: blur(10px);
}

.brand-title:hover::before {
    opacity: 1;
    transform: scale(1.1);
}

@keyframes titleGlow {
    0%, 100% {
        filter: drop-shadow(0 0 20px rgba(0, 104, 56, 0.5)) 
                drop-shadow(0 0 35px rgba(255, 215, 0, 0.3))
                drop-shadow(0 2px 8px rgba(0, 0, 0, 0.1));
        transform: scale(1);
    }
    33% {
        filter: drop-shadow(0 0 30px rgba(0, 104, 56, 0.7)) 
                drop-shadow(0 0 50px rgba(255, 215, 0, 0.4))
                drop-shadow(0 3px 12px rgba(0, 0, 0, 0.15));
        transform: scale(1.01);
    }
    66% {
        filter: drop-shadow(0 0 25px rgba(0, 104, 56, 0.6)) 
                drop-shadow(0 0 45px rgba(255, 215, 0, 0.35))
                drop-shadow(0 2px 10px rgba(0, 0, 0, 0.12));
        transform: scale(0.99);
    }
}

.system-title {
    font-family: 'Inter', sans-serif;
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.95);
    letter-spacing: 0.5px;
}

.brand-subtitle {
    margin-bottom: 2.5rem;
}

.brand-description {
    font-size: 1.1rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 1rem;
    font-weight: 400;
}

.university-motto {
    font-family: 'Playfair Display', serif;
    font-size: 1rem;
    font-style: italic;
    color: var(--gold-secondary);
    margin-bottom: 0;
    font-weight: 400;
    text-align: center;
    padding: 0.75rem;
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 8px;
    background: rgba(255, 215, 0, 0.05);
}

/* Enhanced Feature Items */
.brand-features {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: var(--transition-smooth);
    backdrop-filter: blur(10px);
}

.feature-item:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateX(5px);
    border-color: rgba(255, 215, 0, 0.3);
}

.feature-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--gold-primary), var(--gold-secondary));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--primary-blue);
    box-shadow: var(--shadow-soft);
}

.feature-content {
    display: flex;
    flex-direction: column;
}

.feature-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 0.25rem;
}

.feature-desc {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 400;
}

/* Brand Footer */
.brand-footer {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.contact-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    justify-content: center;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
}

.contact-info i {
    color: var(--gold-secondary);
    font-size: 1.1rem;
}

/* Enhanced Form Side */
.login-form-side {
    background: var(--glass-bg);
    backdrop-filter: blur(25px);
    position: relative;
}

.login-form-container {
    width: 100%;
    max-width: 450px;
    padding: 3rem 2.5rem;
    position: relative;
}

/* Mobile logo styling */
.university-logo-small-container {
    margin-bottom: 1rem;
    display: inline-block;
    position: relative;
}

.university-logo-small {
    width: 80px;
    height: 80px;
    filter: drop-shadow(0 4px 16px rgba(30, 60, 114, 0.3));
    animation: logoFloat 6s ease-in-out infinite;
}

/* Enhanced Mobile Title for My PPG - Elegant Styling */
.mobile-title {
    color: var(--primary-blue);
    font-family: 'Playfair Display', serif;
    font-weight: 800; /* Increased weight for elegance */
    margin-bottom: 0.5rem;
    font-size: 2rem; /* Increased size */
    background: linear-gradient(135deg, 
        var(--primary-blue) 0%, 
        var(--primary-green) 50%, /* Green accent */
        var(--secondary-blue) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 0.025em;
    text-shadow: 0 2px 8px rgba(0, 104, 56, 0.3);
    position: relative;
    animation: mobileGlow 6s ease-in-out infinite;
}

.mobile-title::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        var(--primary-green) 50%, 
        transparent 100%);
    border-radius: 2px;
    animation: underlineGlow 6s ease-in-out infinite;
}

@keyframes mobileGlow {
    0%, 100% {
        filter: drop-shadow(0 0 8px rgba(0, 104, 56, 0.4));
    }
    50% {
        filter: drop-shadow(0 0 16px rgba(0, 104, 56, 0.6));
    }
}

@keyframes underlineGlow {
    0%, 100% {
        opacity: 0.6;
        box-shadow: 0 0 8px rgba(0, 104, 56, 0.4);
    }
    50% {
        opacity: 1;
        box-shadow: 0 0 16px rgba(0, 104, 56, 0.8);
    }
}

/* Enhanced Mobile Subtitle for My PPG */
.mobile-subtitle {
    color: var(--text-gray);
    font-family: 'Playfair Display', serif; /* Changed to Playfair for elegance */
    font-size: 1.2rem; /* Increased size */
    font-weight: 600; /* Increased weight */
    font-style: italic; /* Added italic for elegance */
    margin-bottom: 0;
    background: linear-gradient(135deg, 
        var(--primary-green) 0%, 
        var(--text-gray) 50%, 
        var(--secondary-green) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 0.02em;
    text-shadow: 0 1px 4px rgba(0, 104, 56, 0.2);
    position: relative;
}

.mobile-subtitle::before {
    content: '"';
    position: absolute;
    left: -0.3em;
    top: -0.1em;
    font-size: 1.4em;
    color: var(--primary-green);
    opacity: 0.6;
}

.mobile-subtitle::after {
    content: '"';
    position: absolute;
    right: -0.3em;
    bottom: -0.1em;
    font-size: 1.4em;
    color: var(--primary-green);
    opacity: 0.6;
}

/* Enhanced Login Header with Better Spacing */
.login-header {
    text-align: center;
    margin-bottom: 3rem; /* Increased margin for better spacing */
    position: relative;
    padding: 0 1rem;
}

.login-welcome {
    position: relative;
    padding: 2rem 0;
    background: linear-gradient(135deg, 
        rgba(0, 104, 56, 0.02) 0%, 
        rgba(255, 255, 255, 0.8) 50%, 
        rgba(30, 60, 114, 0.02) 100%);
    border-radius: 20px;
    margin-bottom: 1rem;
    border: 1px solid rgba(0, 104, 56, 0.08);
    backdrop-filter: blur(5px);
}

.login-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem; /* Increased size for elegance */
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 1rem; /* Increased margin */
    position: relative;
    background: linear-gradient(135deg, 
        var(--primary-blue) 0%, 
        var(--primary-green) 50%, 
        var(--secondary-blue) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 2px 8px rgba(0, 104, 56, 0.2);
    letter-spacing: 0.015em;
}

.login-title::after {
    content: '';
    position: absolute;
    bottom: -12px; /* Adjusted positioning */
    left: 50%;
    transform: translateX(-50%);
    width: 80px; /* Increased width */
    height: 4px; /* Increased height */
    background: linear-gradient(135deg, 
        var(--primary-green) 0%, 
        var(--gold-primary) 50%, 
        var(--secondary-green) 100%);
    border-radius: 2px;
    box-shadow: 0 2px 8px rgba(0, 104, 56, 0.3);
}

.login-subtitle {
    color: var(--text-gray);
    font-size: 1.15rem; /* Slightly increased */
    margin-bottom: 0;
    font-weight: 450; /* Refined weight */
    letter-spacing: 0.4px;
    line-height: 1.5;
    opacity: 0.9;
}

/* Enhanced System Status Section */
.system-status {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1.5rem;
    padding: 1rem;
    background: linear-gradient(135deg, var(--light-green), rgba(0, 104, 56, 0.05));
    border-radius: 12px;
    border: 1px solid rgba(0, 104, 56, 0.15);
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    position: relative;
    animation: statusPulse 2s infinite ease-in-out;
}

.status-online {
    background: var(--primary-green);
    box-shadow: 0 0 0 3px rgba(0, 104, 56, 0.2);
}

.status-text {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary-green);
}

.current-time {
    font-size: 0.8rem;
    color: var(--text-gray);
    font-weight: 500;
}

@keyframes statusPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.8;
    }
}

/* Enhanced Form Styling with Better Visual Hierarchy */
.login-form {
    width: 100%;
    position: relative;
    padding: 2rem;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.95) 0%, 
        rgba(248, 250, 252, 0.9) 100%);
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 104, 56, 0.08),
                0 8px 25px rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.form-group {
    margin-bottom: 2rem; /* Increased spacing */
    position: relative;
}

.form-label {
    font-weight: 650; /* Refined weight */
    color: var(--text-dark);
    margin-bottom: 1rem; /* Increased margin */
    font-size: 1rem; /* Slightly increased */
    letter-spacing: 0.4px;
    transition: var(--transition-smooth);
    position: relative;
    display: inline-block;
}

/* Enhanced Input Groups with Modern Design */
.input-group {
    position: relative;
    background: var(--white);
    border-radius: 16px; /* Increased border radius */
    box-shadow: 0 8px 30px rgba(0, 104, 56, 0.06),
                0 3px 12px rgba(0, 0, 0, 0.04);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); /* Smoother transition */
    overflow: hidden;
    border: 2px solid rgba(0, 104, 56, 0.08);
}

.input-group:hover {
    box-shadow: 0 12px 40px rgba(0, 104, 56, 0.1),
                0 5px 20px rgba(0, 0, 0, 0.06);
    transform: translateY(-3px);
    border-color: rgba(0, 104, 56, 0.15);
}

.input-group.focused {
    box-shadow: 0 0 0 4px rgba(0, 104, 56, 0.12),
                0 15px 45px rgba(0, 104, 56, 0.15),
                0 8px 30px rgba(0, 0, 0, 0.08);
    transform: translateY(-4px);
    border-color: var(--primary-green);
}

.input-group-text {
    background: linear-gradient(135deg, #f8fafc, #edf2f7);
    border: none;
    color: var(--text-gray);
    padding: 1.125rem 1.5rem; /* Increased padding */
    border-radius: 16px 0 0 16px; /* Match parent radius */
    transition: var(--transition-smooth);
    font-size: 1.125rem; /* Slightly increased */
    min-width: 60px; /* Consistent width */
    display: flex;
    align-items: center;
    justify-content: center;
}

.input-group.focused .input-group-text {
    background: linear-gradient(135deg, var(--primary-green), var(--secondary-green));
    color: var(--white);
    transform: scale(1.02);
}

.form-control {
    border: none;
    padding: 1.125rem 1.5rem; /* Increased padding */
    font-size: 1.0625rem; /* Slightly increased */
    background: var(--white);
    transition: var(--transition-smooth);
    font-weight: 450; /* Refined weight */
    color: var(--text-dark);
    line-height: 1.5;
}

.input-group .form-control {
    border-radius: 0 16px 16px 0; /* Match parent radius */
    flex: 1;
}

.form-control:focus {
    outline: none;
    box-shadow: none;
    background: var(--white);
}

.form-control::placeholder {
    color: var(--text-light);
    font-weight: 400;
    opacity: 0.7;
    transition: var(--transition-smooth);
}

/* Enhanced Password Toggle */
#togglePassword {
    border: none;
    background: linear-gradient(135deg, #f8fafc, #edf2f7);
    color: var(--text-gray);
    padding: 1rem 1.25rem;
    transition: var(--transition-smooth);
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    font-size: 1.1rem;
}

#togglePassword:hover {
    background: linear-gradient(135deg, #edf2f7, #e2e8f0);
    color: var(--primary-blue);
}

.input-group.focused #togglePassword {
    background: linear-gradient(135deg, var(--secondary-blue), var(--accent-blue));
    color: var(--white);
}

/* Enhanced Checkbox */
.form-check {
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.form-check-input {
    width: 1.25rem;
    height: 1.25rem;
    border: 2px solid #d1d5db;
    border-radius: 6px;
    background: var(--white);
    transition: var(--transition-smooth);
    position: relative;
    margin: 0;
}

.form-check-input:checked {
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(30, 60, 114, 0.15);
}

.form-check-input:hover {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(30, 60, 114, 0.1);
}

.form-check-label {
    font-size: 0.95rem;
    color: var(--text-gray);
    font-weight: 500;
    cursor: pointer;
    user-select: none;
}

/* Enhanced Login Button with Refined Green Accents */
.btn-login {
    background: linear-gradient(135deg, 
        var(--primary-blue) 0%, 
        var(--secondary-blue) 30%, 
        var(--primary-green) 70%, 
        var(--secondary-green) 100%);
    border: none;
    border-radius: 16px; /* Increased border radius */
    padding: 1.25rem 3rem; /* Increased padding */
    font-size: 1.125rem; /* Increased font size */
    font-weight: 650; /* Refined weight */
    color: var(--white);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    box-shadow: 0 12px 35px rgba(0, 104, 56, 0.25),
                0 6px 20px rgba(30, 60, 114, 0.15);
    background-size: 300% auto;
    background-position: left center;
}

.btn-login::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.25), 
        transparent);
    transition: left 0.8s ease;
    z-index: 1;
}

.btn-login:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 20px 50px rgba(0, 104, 56, 0.35),
                0 10px 30px rgba(30, 60, 114, 0.2),
                0 0 0 3px rgba(255, 255, 255, 0.3);
    background-position: right center;
}

.btn-login:hover::before {
    left: 100%;
}

.btn-login:active {
    transform: translateY(-1px);
    box-shadow: 0 8px 25px rgba(0, 104, 56, 0.25);
}

.btn-login.loading {
    pointer-events: none;
    background: linear-gradient(135deg, #9ca3af, #6b7280);
    animation: pulse 2s ease-in-out infinite;
}

.btn-login.loading .btn-text {
    opacity: 0;
}

.btn-login.loading .btn-loading {
    display: inline-flex !important;
    opacity: 1;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

/* Enhanced Google Login Button with Modern Design */
.btn-google {
    background: var(--white);
    border: 2px solid rgba(0, 104, 56, 0.1);
    border-radius: 16px; /* Increased border radius */
    padding: 1.25rem 3rem; /* Increased padding */
    font-size: 1.125rem; /* Increased font size */
    font-weight: 600;
    color: var(--text-dark);
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px; /* Increased gap */
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    margin-top: 1.5rem; /* Increased margin */
    box-shadow: 0 8px 25px rgba(0, 104, 56, 0.08),
                0 4px 15px rgba(0, 0, 0, 0.05);
    letter-spacing: 0.4px;
    backdrop-filter: blur(10px);
}

.btn-google::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(0, 104, 56, 0.08), 
        transparent);
    transition: left 0.8s ease;
}

.btn-google:hover {
    background: linear-gradient(135deg, #f8f9fa, #f1f3f4);
    border-color: rgba(0, 104, 56, 0.2);
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 104, 56, 0.12),
                0 8px 25px rgba(0, 0, 0, 0.08),
                0 0 0 2px rgba(0, 104, 56, 0.1);
    color: var(--text-dark);
    text-decoration: none;
}

.btn-google:hover::before {
    left: 100%;
}

.btn-google:active {
    transform: translateY(-1px);
    background: #f1f3f4;
}

.btn-google:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(66, 133, 244, 0.25), var(--shadow-medium);
    color: var(--text-dark);
    text-decoration: none;
}

.google-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
}

.google-icon svg {
    width: 22px;
    height: 22px;
    transition: var(--transition-smooth);
}

.btn-google:hover .google-icon svg {
    transform: scale(1.1);
}

.btn-google.loading {
    pointer-events: none;
    opacity: 0.7;
    background: #f8f9fa;
}

.btn-google.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 2px solid #4285f4;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Enhanced Dashboard Styles for Elegant Design */

/* Student Dashboard Specific Styles */
.profile-info {
    padding: 0;
}

.profile-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.profile-item:hover {
    background: rgba(0, 0, 0, 0.02);
    padding-left: 8px;
    padding-right: 8px;
    border-radius: 6px;
}

.profile-item:last-child {
    border-bottom: none;
}

.profile-item label {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0;
    font-size: 0.9rem;
}

.profile-item span {
    color: var(--text-gray);
    font-size: 0.9rem;
}

.class-info-item {
    padding: 16px;
    background: rgba(0, 0, 0, 0.02);
    border-radius: 12px;
    margin-bottom: 16px;
    border-left: 4px solid var(--primary-blue);
    transition: all 0.3s ease;
}

.class-info-item:hover {
    background: rgba(0, 0, 0, 0.05);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.class-name {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.class-details {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
}

.requirement-list {
    max-height: 300px;
    overflow-y: auto;
    padding-right: 8px;
}

.requirement-list::-webkit-scrollbar {
    width: 6px;
}

.requirement-list::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 3px;
}

.requirement-list::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 3px;
}

.requirement-list::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.3);
}

.requirement-item {
    display: flex;
    align-items: flex-start;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 8px;
    transition: all 0.3s ease;
    background: rgba(0, 0, 0, 0.02);
    border-left: 3px solid #fbbf24;
}

.requirement-item:hover {
    background: rgba(0, 0, 0, 0.05);
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.requirement-item.completed {
    background: rgba(34, 197, 94, 0.1);
    border-left: 3px solid #22c55e;
}

.requirement-item.pending {
    background: rgba(251, 191, 36, 0.1);
    border-left: 3px solid #fbbf24;
}

.requirement-status {
    margin-right: 12px;
    margin-top: 2px;
}

.requirement-content {
    flex: 1;
}

.requirement-content h6 {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 4px;
    font-size: 0.9rem;
}

.requirement-content small {
    font-size: 0.8rem;
    line-height: 1.4;
}

.progress-indicator {
    font-size: 0.8rem;
    color: var(--text-gray);
    font-weight: 500;
}

/* Study Field Specific Styles */
.study-field-card {
    background: rgba(0, 0, 0, 0.02);
    border-radius: 12px;
    padding: 16px;
    height: 100%;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.study-field-card:hover {
    background: rgba(0, 0, 0, 0.05);
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
}

.study-field-header {
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.study-field-progress {
    height: 6px;
    margin: 8px 0;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.study-field-progress .progress-bar {
    background: linear-gradient(90deg, var(--primary-green), var(--secondary-green));
    height: 100%;
    transition: width 1s ease-in-out;
}

.study-field-requirement-item {
    padding: 8px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.study-field-requirement-item:last-child {
    border-bottom: none;
}

.requirement-name {
    font-weight: 500;
    font-size: 0.85rem;
}

.badge-sm {
    font-size: 0.7rem;
    padding: 2px 6px;
}

/* Lecturer Dashboard Specific Styles */
.study-field-item {
    padding: 12px;
    background: rgba(0, 0, 0, 0.02);
    border-radius: 8px;
    margin-bottom: 12px;
    transition: all 0.3s ease;
    border-left: 3px solid var(--primary-blue);
}

.study-field-item:hover {
    background: rgba(0, 0, 0, 0.05);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* Enhanced Table Styles */
.table-hover tbody tr:hover {
    background: rgba(0, 0, 0, 0.02);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Animation Classes */
.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Responsiveness for Dashboard Elements */
@media (max-width: 768px) {
    .stats-card {
        margin-bottom: 16px;
    }
    
    .class-details {
        flex-direction: column;
        gap: 4px;
    }
    
    .requirement-item {
        padding: 8px;
    }
    
    .study-field-card {
        margin-bottom: 16px;
    }
    
    .profile-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    
    .profile-item label {
        font-weight: 700;
    }
}

/* Additional Progress Bar Styles */
.progress {
    height: 8px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.progress .progress-bar {
    background: linear-gradient(90deg, var(--primary-blue), var(--accent-blue));
    transition: width 1s ease-in-out;
}

.progress .progress-bar.bg-warning {
    background: linear-gradient(90deg, #fbbf24, #f59e0b);
}

/* Empty State Improvements */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-gray);
    background: linear-gradient(135deg, rgba(248, 250, 252, 0.8), rgba(237, 242, 247, 0.8));
    border-radius: 12px;
    margin: 2rem 0;
    border: 1px dashed #e2e8f0;
}

.empty-state i {
    font-size: 3rem;
    color: var(--text-light);
    margin-bottom: 16px;
    opacity: 0.7;
}

.empty-state h6 {
    color: var(--text-dark);
    margin-bottom: 8px;
    font-weight: 600;
}

.empty-state p {
    color: var(--text-gray);
    margin-bottom: 16px;
}

/* Small Empty State for Cards */
.empty-state-small {
    text-align: center;
    padding: 2rem 1rem;
    color: #718096;
    background: linear-gradient(135deg, rgba(248, 250, 252, 0.5), rgba(237, 242, 247, 0.5));
    border-radius: 8px;
    border: 1px dashed #e2e8f0;
}

.empty-state-small i {
    font-size: 2rem;
    color: #a0aec0;
    margin-bottom: 0.5rem;
    opacity: 0.8;
}

.empty-state-small p {
    margin: 0;
    font-size: 0.875rem;
    color: #718096;
}

/* Enhanced Button Styles */
.btn {
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.2s ease;
    border: none;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-xs {
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    border-radius: 6px;
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    transition: all 0.2s ease;
}

.btn-xs:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.btn-warning {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    border: none;
}

.btn-warning:hover {
    background: linear-gradient(135deg, #d97706, #b45309);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(217, 119, 6, 0.3);
}

.btn-info {
    background: linear-gradient(135deg, #0ea5e9, #0284c7);
    color: white;
    border: none;
}

.btn-info:hover {
    background: linear-gradient(135deg, #0284c7, #0369a1);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.3);
}

.btn-primary {
    background: linear-gradient(135deg, #006838, #004d2a);
    color: white;
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #004d2a, #003d21);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 104, 56, 0.3);
}

.btn-outline-primary {
    border: 2px solid #006838;
    color: #006838;
    background: transparent;
    position: relative;
    overflow: hidden;
}

.btn-outline-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: #006838;
    transition: width 0.3s ease;
    z-index: -1;
}

.btn-outline-primary:hover {
    color: white;
    border-color: #006838;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 104, 56, 0.2);
}

.btn-outline-primary:hover::before {
    width: 100%;
}

/* Enhanced Badge Styles */
.badge {
    font-weight: 500;
    letter-spacing: 0.025em;
    border-radius: 6px;
    padding: 0.35rem 0.65rem;
    font-size: 0.75rem;
}

/* Button Size Improvements */
.btn-sm {
    padding: 6px 12px;
    font-size: 0.8rem;
    border-radius: 6px;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Updated divider for Google login */
.divider {
    margin: 1.5rem 0 1rem 0;
    position: relative;
    color: #9ca3af;
    font-size: 0.85rem;
    text-align: center;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #e5e7eb;
    z-index: 1;
}

.divider span {
    background: rgba(255, 255, 255, 0.95);
    padding: 0 1rem;
    position: relative;
    z-index: 2;
}

/* Login Footer */
.login-footer {
    margin-top: 2rem;
    text-align: center;
}

.register-link {
    color: #6b7280;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.register-link span {
    color: #1e3c72;
    font-weight: 600;
}

.register-link:hover {
    color: #374151;
}

.register-link:hover span {
    color: #2a5298;
}

.divider {
    margin: 1.5rem 0;
    position: relative;
    color: #9ca3af;
    font-size: 0.85rem;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #e5e7eb;
    z-index: 1;
}

.divider span {
    background: rgba(255, 255, 255, 0.95);
    padding: 0 1rem;
    position: relative;
    z-index: 2;
}

.help-links {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.help-link {
    color: #6b7280;
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.help-link:hover {
    color: var(--primary-green);
}

/* Enhanced Quick Help Section with Better Visual Design */
.quick-help-section {
    background: linear-gradient(135deg, 
        rgba(0, 104, 56, 0.04) 0%, 
        rgba(255, 255, 255, 0.95) 50%,
        rgba(0, 168, 92, 0.04) 100%);
    border-radius: 20px; /* Increased radius */
    padding: 2rem; /* Increased padding */
    margin: 2rem 0; /* Increased margin */
    border: 1px solid rgba(0, 104, 56, 0.12);
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 25px rgba(0, 104, 56, 0.06);
}

.help-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem; /* Increased size */
    font-weight: 650; /* Refined weight */
    color: var(--primary-green);
    margin-bottom: 1.5rem; /* Increased margin */
    display: flex;
    align-items: center;
    text-align: center;
    justify-content: center;
    letter-spacing: 0.3px;
}

.help-items {
    display: flex;
    flex-direction: column;
    gap: 1rem; /* Increased gap */
}

.help-item {
    display: flex;
    align-items: center;
    gap: 1rem; /* Increased gap */
    font-size: 0.9rem; /* Slightly increased */
    color: var(--text-dark);
    padding: 0.875rem 1rem; /* Increased padding */
    border-radius: 12px; /* Increased radius */
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(0, 104, 56, 0.06);
}

.help-item:hover {
    background: linear-gradient(135deg, 
        rgba(0, 104, 56, 0.08), 
        rgba(255, 255, 255, 0.9));
    transform: translateX(8px) scale(1.02);
    box-shadow: 0 4px 15px rgba(0, 104, 56, 0.15);
    border-color: rgba(0, 104, 56, 0.15);
}

.help-item i {
    width: 20px; /* Increased width */
    color: var(--primary-green);
    font-size: 1.05rem; /* Increased size */
    text-align: center;
}

/* Enhanced Contact Section */
.contact-section {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(0, 104, 56, 0.1);
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: var(--text-gray);
    transition: var(--transition-smooth);
}

.contact-item:hover {
    color: var(--primary-green);
}

.contact-item i {
    color: var(--primary-green);
    font-size: 0.9rem;
}

/* Alert Styling */
.alert {
    border: none;
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.alert-danger {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    color: #dc2626;
    border-left: 4px solid #dc2626;
}

.alert-success {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    color: #059669;
    border-left: 4px solid #059669;
}

/* Comprehensive Responsive Design */
@media (max-width: 1199.98px) {
    .brand-content {
        max-width: 380px;
        padding: 2.5rem 1.5rem;
    }
    
    .brand-title {
        font-size: 2.4rem;
    }
    
    .system-title {
        font-size: 1.3rem;
    }
    
    .university-logo-img {
        width: 100px;
        height: 100px;
    }
    
    .campus-showcase-img {
        height: 180px;
    }
    
    .campus-title {
        font-size: 1.1rem;
    }
}

@media (max-width: 991.98px) {
    .login-form-container {
        padding: 2.5rem 2rem;
        max-width: 500px;
    }
    
    .login-title {
        font-size: 2rem;
    }
    
    .mobile-title {
        font-size: 1.6rem;
    }
    
    .university-logo-small {
        width: 70px;
        height: 70px;
    }
    
    .mobile-campus-img {
        height: 100px;
    }
    
    .btn-login, .btn-google {
        padding: 1rem 2rem;
        font-size: 1rem;
    }
    
    .form-control, .input-group-text, #togglePassword {
        padding: 0.875rem 1rem;
        font-size: 1rem;
    }
}

/* Enhanced Mobile Responsiveness - Elegant Design */
@media (max-width: 767.98px) {
    .login-wrapper {
        padding: 0.5rem;
        min-height: 100vh;
    }
    
    .login-form-container {
        padding: 2.5rem 1.5rem; /* Increased padding */
        margin: 0.5rem 0;
        border-radius: 24px; /* Increased border radius */
        box-shadow: 0 15px 50px rgba(0, 104, 56, 0.1),
                    0 8px 30px rgba(0, 0, 0, 0.05);
    }
    
    .login-form {
        padding: 1.5rem; /* Adjusted padding */
        border-radius: 20px;
    }
    
    .login-title {
        font-size: 2rem; /* Increased size */
        margin-bottom: 1rem;
    }
    
    .login-title::after {
        width: 60px; /* Adjusted width */
        height: 3px;
        bottom: -10px;
    }
    
    .mobile-title {
        font-size: 1.75rem; /* Increased size */
    }
    
    .university-logo-small {
        width: 70px; /* Increased size */
        height: 70px;
    }
    
    .mobile-campus-img {
        height: 100px; /* Increased height */
    }
    
    .mobile-campus-container {
        border-radius: 16px; /* Increased radius */
        margin-bottom: 1.5rem;
        max-width: 220px; /* Increased width */
    }
    
    .form-group {
        margin-bottom: 1.75rem; /* Increased spacing */
    }
    
    .btn-login, .btn-google {
        padding: 1rem 2rem; /* Increased padding */
        font-size: 1.0625rem; /* Increased font size */
        border-radius: 14px; /* Increased radius */
    }
    
    .input-group {
        flex-direction: column;
        border-radius: 16px; /* Increased radius */
        box-shadow: 0 8px 25px rgba(0, 104, 56, 0.08);
    }
    
    .input-group-text {
        border-radius: 16px 16px 0 0; /* Match container */
        border-bottom: 1px solid rgba(0, 104, 56, 0.1);
        justify-content: flex-start;
        padding: 1rem 1.25rem; /* Increased padding */
    }
    
    .form-control {
        border-radius: 0 0 16px 16px; /* Match container */
        padding: 1rem 1.25rem; /* Increased padding */
    }
    
    #togglePassword {
        border-radius: 0 0 16px 16px; /* Match container */
        border-top: 1px solid rgba(0, 104, 56, 0.1);
        padding: 1rem 1.25rem; /* Increased padding */
    }
    
    .help-links {
        flex-direction: column;
        gap: 1rem; /* Increased gap */
        text-align: center;
    }
    
    .help-link {
        padding: 0.75rem 1rem; /* Added padding */
        border-radius: 10px;
        background: rgba(0, 104, 56, 0.02);
        border: 1px solid rgba(0, 104, 56, 0.05);
    }
    
    .google-icon svg {
        width: 20px;
        height: 20px;
    }
    
    .quick-help-section {
        margin: 1.5rem 0;
        padding: 1.5rem;
        border-radius: 16px;
    }
    
    .help-items {
        gap: 0.875rem;
    }
    
    .help-item {
        padding: 0.75rem;
        border-radius: 10px;
    }
}

@media (max-width: 575.98px) {
    .login-form-container {
        padding: 1.5rem 1rem;
    }
    
    .login-title {
        font-size: 1.6rem;
    }
    
    .brand-title {
        font-size: 2.4rem; /* Elegant size for small screens */
        font-weight: 800;
        letter-spacing: 0.01em;
    }
    
    .mobile-title {
        font-size: 1.5rem;
        letter-spacing: 0.015em;
    }
    
    .mobile-subtitle {
        font-size: 1rem;
    }
    
    .dashboard-title,
    .dashboard-header h1 {
        font-size: 1.6rem;
        letter-spacing: 0.015em;
    }
    
    .university-logo-small {
        width: 50px;
        height: 50px;
    }
    
    .mobile-campus-img {
        height: 70px;
    }
    
    .mobile-campus-overlay .university-logo-small-container {
        padding: 0.75rem;
    }
    
    .btn-login, .btn-google {
        padding: 0.75rem 1.25rem;
        font-size: 0.9rem;
    }
    
    .form-control, .input-group-text, #togglePassword {
        padding: 0.75rem 0.875rem;
        font-size: 0.95rem;
    }
    
    .form-label {
        font-size: 0.875rem;
    }
    
    .divider span {
        font-size: 0.8rem;
    }
    
    .google-icon svg {
        width: 16px;
        height: 16px;
    }
}

/* Enhanced Building Animation and Interaction for Login Display */
.university-building-bg:hover .building-bg-img {
    opacity: 0.22;
    transform: scale(1.15) translateY(-8px);
    filter: contrast(1.15) brightness(1.08);
}

/* Enhanced Image Quality for High-DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .building-bg-img,
    .campus-showcase-img,
    .mobile-campus-img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
        image-rendering: optimizeQuality;
    }
}

/* Tablet and Mobile Optimizations for Building Display */
@media (max-width: 991.98px) {
    .building-bg-img {
        object-position: center 35%; /* Better mobile framing */
        opacity: 0.12; /* Reduced for mobile readability */
        transform: scale(1.05);
    }
    
    .campus-showcase-img {
        height: 180px; /* Adjusted for mobile */
        object-position: center 30%;
    }
}

/* Medium screens optimization - Elegant Typography Responsive */
@media (max-width: 767.98px) {
    .brand-title {
        font-size: 2.8rem; /* Adjusted for elegance on mobile */
        font-weight: 800;
        letter-spacing: 0.015em;
    }
    
    .mobile-title {
        font-size: 1.8rem;
        letter-spacing: 0.02em;
    }
    
    .mobile-subtitle {
        font-size: 1.1rem;
    }
    
    .dashboard-title,
    .dashboard-header h1 {
        font-size: 1.9rem;
        letter-spacing: 0.02em;
    }
    
    .building-bg-img {
        opacity: 0.08; /* Further reduced for text readability */
        transform: scale(1.02);
    }
    
    .campus-showcase-img {
        height: 160px;
    }
    
    .mobile-campus-container {
        max-width: 180px;
        border-radius: 12px;
    }
}

@media (max-width: 575.98px) {
    .campus-showcase-img {
        height: 140px;
    }
    
    .mobile-campus-container {
        max-width: 160px;
        margin-bottom: 0.75rem;
    }
}

.campus-image-container {
    background: linear-gradient(
        45deg,
        rgba(0, 104, 56, 0.08), /* Green gradient accent */
        rgba(30, 60, 114, 0.05),
        rgba(255, 215, 0, 0.05)
    );
}

/* Accessibility and Motion Preferences */
@media (prefers-reduced-motion: reduce) {
    .building-bg-img {
        animation: none;
        transform: scale(1.05);
    }
    
    .campus-showcase-img {
        transition: none;
    }
    
    .campus-image-container:hover {
        transform: none;
    }
    
    .campus-image-container:hover .campus-showcase-img {
        transform: none;
    }
}

/* Large screens optimization - Enhanced Elegant Typography */
@media (min-width: 1400px) {
    .brand-content {
        max-width: 500px;
        padding: 3.5rem 2.5rem;
    }
    
    .login-form-container {
        max-width: 500px;
        padding: 3.5rem 3rem;
    }
    
    .brand-title {
        font-size: 4rem; /* Even larger for big screens */
        letter-spacing: 0.025em;
    }
    
    .system-title {
        font-size: 1.6rem;
    }
    
    .login-title {
        font-size: 2.5rem;
    }
    
    .mobile-title {
        font-size: 2.2rem;
    }
    
    .mobile-subtitle {
        font-size: 1.3rem;
    }
    
    .university-logo-img {
        width: 140px;
        height: 140px;
    }
    
    .dashboard-title,
    .dashboard-header h1 {
        font-size: 2.5rem;
    }
}

/* Ultra-wide screens */
@media (min-width: 1920px) {
    .container-fluid {
        max-width: 1800px;
        margin: 0 auto;
    }
}

/* High DPI displays - Enhanced for All Campus Images */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .university-logo-img, 
    .university-logo-small,
    .building-bg-img,
    .campus-showcase-img,
    .mobile-campus-img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
        image-rendering: optimizeQuality;
    }
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .university-logo-img {
        animation: none;
    }
    
    .logo-glow {
        animation: none;
    }
    
    .shape {
        animation: none;
    }
}

/* Dark mode support (future enhancement) */
@media (prefers-color-scheme: dark) {
    :root {
        --glass-bg: rgba(30, 30, 30, 0.95);
        --white: #1a1a1a;
        --text-dark: #e2e8f0;
        --text-gray: #a0aec0;
        --text-light: #718096;
    }
    
    .login-form-side {
        background: var(--glass-bg);
        color: var(--text-dark);
    }
    
    .form-control {
        background: #2d3748;
        color: var(--text-dark);
        border-color: #4a5568;
    }
    
    .input-group-text {
        background: #2d3748;
        color: var(--text-gray);
        border-color: #4a5568;
    }
    
    .btn-google {
        background: #2d3748;
        color: var(--text-dark);
        border-color: #4a5568;
    }
}

/* Dashboard Header - Elegant My PPG Styling */
.dashboard-header {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    box-shadow: 0 4px 20px rgba(30, 60, 114, 0.15);
    border: none;
    position: relative;
    overflow: hidden;
    border-radius: 0 0 20px 20px;
}

.dashboard-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 100" fill="%23ffffff" opacity="0.1"><polygon points="0,100 1000,0 1000,100"/></svg>') no-repeat;
    background-size: cover;
}

.dashboard-header::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 200px;
    height: 200px;
    background: rgba(255, 215, 0, 0.1);
    border-radius: 50%;
    animation: float 10s ease-in-out infinite;
}

.dashboard-header .container {
    position: relative;
    z-index: 2;
}

/* Elegant Dashboard Title for My PPG */
.dashboard-title,
.dashboard-header h1 {
    font-family: 'Playfair Display', serif;
    font-weight: 800; /* Extra bold for prominence */
    font-size: 2.25rem; /* Increased size */
    margin: 0;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.95) 0%,
        var(--primary-green) 30%, /* Green accent */
        rgba(255, 215, 0, 0.9) 70%,
        rgba(255, 255, 255, 0.95) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 3px 10px rgba(0, 104, 56, 0.4),
                 0 1px 3px rgba(255, 255, 255, 0.3);
    letter-spacing: 0.03em;
    position: relative;
    animation: dashboardGlow 10s ease-in-out infinite;
}

.dashboard-title::after,
.dashboard-header h1::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        var(--primary-green) 25%, 
        rgba(255, 215, 0, 0.8) 50%,
        var(--primary-green) 75%,
        transparent 100%);
    border-radius: 1px;
    animation: dashboardUnderline 10s ease-in-out infinite;
}

/* ========================================
   USER AVATAR STYLING
   ======================================== */

.user-avatar-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.user-details {
    display: flex;
    flex-direction: column;
}

.user-name {
    font-weight: 600;
    color: #2c3e50;
    font-size: 1rem;
    margin: 0;
}

.user-role {
    font-size: 0.85rem;
    color: #6c757d;
    margin: 0;
}

/* ========================================
   ENHANCED 2-COLUMN LAYOUT SYSTEM
   ======================================== */

.container {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.col {
    flex: 1 1 calc(50% - 1rem);
}

.col-1 {
    flex: 1 1 calc(100% - 1rem);
}

.col-2 {
    flex: 1 1 calc(50% - 1rem);
}

.col-3 {
    flex: 1 1 calc(33.33% - 1rem);
}

.col-4 {
    flex: 1 1 calc(25% - 1rem);
}

.col-5 {
    flex: 1 1 calc(20% - 1rem);
}

.col-6 {
    flex: 1 1 calc(16.66% - 1rem);
}

.col-7 {
    flex: 1 1 calc(14.28% - 1rem);
}

.col-8 {
    flex: 1 1 calc(12.5% - 1rem);
}

.col-9 {
    flex: 1 1 calc(11.11% - 1rem);
}

.col-10 {
    flex: 1 1 calc(10% - 1rem);
}

.col-11 {
    flex: 1 1 calc(9.09% - 1rem);
}

.col-12 {
    flex: 1 1 calc(8.33% - 1rem);
}

/* Enhanced Statistics Cards */
.stats-card {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-soft);
    border: none;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    padding: 0;
}

.stats-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
}

.stats-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.stats-card-body {
    padding: 2rem;
    position: relative;
}

.stats-icon {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.5rem;
    opacity: 0.1;
}

.stats-content {
    padding: 1rem;
    position: relative;
    z-index: 2;
}

/* Lecturer Dashboard Specific Styles */
.stats-card.primary {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stats-card.success {
    background: linear-gradient(135deg, #10b981, #047857);
    color: white;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(16, 185, 129, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stats-card.warning {
    background: linear-gradient(135deg, #f59e0b, #b45309);
    color: white;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(245, 158, 11, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stats-card.info {
    background: linear-gradient(135deg, #0ea5e9, #0369a1);
    color: white;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(14, 165, 233, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stats-card.primary .stats-icon {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
}

.stats-card.success .stats-icon {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
}

.stats-card.warning .stats-icon {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
}

.stats-card.info .stats-icon {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
}

.stats-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.stats-card.primary:hover {
    box-shadow: 0 15px 35px rgba(59, 130, 246, 0.4);
}

.stats-card.success:hover {
    box-shadow: 0 15px 35px rgba(16, 185, 129, 0.4);
}

.stats-card.warning:hover {
    box-shadow: 0 15px 35px rgba(245, 158, 11, 0.4);
}

.stats-card.info:hover {
    box-shadow: 0 15px 35px rgba(14, 165, 233, 0.4);
}

.stats-number {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    color: white;
    font-family: 'Playfair Display', serif;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.stats-label {
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Welcome Stats Section */
.welcome-stats {
    margin-top: 2rem;
}

.stat-card {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    padding: 1.5rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    align-items: center;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.stat-card:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-right: 1rem;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.2);
}

.stat-content {
    flex-grow: 1;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 0.25rem 0;
    color: white;
    font-family: 'Playfair Display', serif;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.stat-label {
    font-size: 0.9rem;
    font-weight: 600;
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Enhanced Content Cards */




.stats-label {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-gray);
    margin: 0.5rem 0 0 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stats-change {
    font-size: 0.875rem;
    font-weight: 500;
    margin-top: 0.75rem;
}

.stats-change.positive {
    color: #10b981;
}

.stats-change.negative {
    color: #ef4444;
}

.stats-change.neutral {
    color: var(--text-gray);
}

/* Enhanced Content Cards */
.content-card {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-soft);
    border: none;
    transition: var(--transition-smooth);
    margin-bottom: 2rem;
}

.content-card:hover {
    box-shadow: var(--shadow-medium);
}

.content-card-header {
    background: linear-gradient(135deg, #f8fafc, #edf2f7);
    border-bottom: 1px solid #e2e8f0;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
    padding: 1.5rem;
    position: relative;
}

.content-card-title {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    font-size: 1.25rem;
    color: var(--primary-blue);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.content-card-title i {
    color: var(--gold-primary);
    font-size: 1.1rem;
}

.content-card-body {
    padding: 2rem;
}

/* Enhanced Sidebar */
.sidebar-card {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-soft);
    border: none;
    position: sticky;
    top: 2rem;
}

.sidebar-header {
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    color: var(--white);
    border-radius: var(--border-radius) var(--border-radius) 0 0;
    padding: 1.5rem;
    text-align: center;
}

.sidebar-title {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    font-size: 1.1rem;
    margin: 0;
}

.sidebar-menu {
    border: none;
}

.sidebar-menu .list-group-item {
    border: none;
    border-bottom: 1px solid #f1f5f9;
    padding: 1rem 1.5rem;
    transition: var(--transition-smooth);
    color: var(--text-dark);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 500;
}

.sidebar-menu .list-group-item:hover {
    background: linear-gradient(135deg, #f8fafc, #edf2f7);
    color: var(--primary-blue);
    transform: translateX(5px);
}

.sidebar-menu .list-group-item.active {
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    color: var(--white);
    border-color: var(--primary-blue);
    transform: translateX(5px);
}

.sidebar-menu .list-group-item.text-danger {
    color: #dc2626 !important;
    border-top: 2px solid #fee2e2;
    margin-top: 0.5rem;
}

.sidebar-menu .list-group-item.text-danger:hover {
    background: linear-gradient(135deg, #fef2f2, #fee2e2);
    color: #dc2626 !important;
}

/* Enhanced Tables */
.modern-table {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    border: none;
}

.modern-table th {
    background: linear-gradient(135deg, #f8fafc, #edf2f7);
    border: none;
    font-weight: 600;
    color: var(--text-dark);
    padding: 1rem;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.modern-table td {
    border: none;
    border-bottom: 1px solid #f1f5f9;
    padding: 1rem;
    vertical-align: middle;
}

.modern-table tbody tr:hover {
    background: linear-gradient(135deg, #f8fafc, #edf2f7);
}

/* Enhanced Badges */
.status-badge {
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
}

.status-badge.success {
    background: linear-gradient(135deg, #d1fae5, #a7f3d0);
    color: #065f46;
}

.status-badge.warning {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    color: #92400e;
}

.status-badge.danger {
    background: linear-gradient(135deg, #fee2e2, #fecaca);
    color: #991b1b;
}

.status-badge.info {
    background: linear-gradient(135deg, #dbeafe, #bfdbfe);
    color: #1e40af;
}

.status-badge.secondary {
    background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
    color: #475569;
}

/* Enhanced Progress Indicators */
.progress-container {
    background: #f1f5f9;
    border-radius: 50px;
    height: 8px;
    overflow: hidden;
    margin: 0.75rem 0;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
}

.progress-bar-modern {
    height: 100%;
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    border-radius: 50px;
    transition: width 0.6s ease;
    position: relative;
    box-shadow: 0 2px 4px rgba(30, 60, 114, 0.3);
}

.progress-bar-modern::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;
}

.progress {
    height: 8px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.progress .progress-bar {
    background: linear-gradient(90deg, var(--primary-blue), var(--accent-blue));
    transition: width 1s ease-in-out;
    box-shadow: 0 2px 4px rgba(30, 60, 114, 0.3);
}

.progress .progress-bar.bg-warning {
    background: linear-gradient(90deg, #fbbf24, #f59e0b);
    box-shadow: 0 2px 4px rgba(251, 191, 36, 0.3);
}

/* Action Buttons */
.action-buttons {
    display: flex;
    justify-content: center;
    gap: 0.25rem;
}

.btn-action {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-action::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.5s ease;
}

.btn-action:hover::before {
    left: 100%;
}

.btn-edit {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: var(--white);
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.btn-edit:hover {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
    color: var(--white);
}

.btn-reset {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: var(--white);
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}

.btn-reset:hover {
    background: linear-gradient(135deg, #d97706, #b45309);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
    color: var(--white);
}

.btn-delete {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: var(--white);
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}

.btn-delete:hover {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
    color: var(--white);
}

/* Quick Action Buttons */
.quick-action-btn {
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    border: none;
    border-radius: var(--border-radius);
    padding: 0.875rem 1.5rem;
    color: var(--white);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition-smooth);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.quick-action-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
    color: var(--white);
    text-decoration: none;
}

.quick-action-btn.secondary {
    background: linear-gradient(135deg, #6b7280, #4b5563);
}

.quick-action-btn.success {
    background: linear-gradient(135deg, #10b981, #059669);
}

.quick-action-btn.warning {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

/* Dashboard Grid System */
.dashboard-grid {
    display: grid;
    gap: 2rem;
    margin-bottom: 2rem;
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

/* Responsive Grid Improvements */
@media (max-width: 768px) {
    .dashboard-grid {
        gap: 1rem;
    }
    
    .grid-2 {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .grid-3 {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .grid-4 {
        grid-template-columns: 1fr;
    }
}

/* Information Highlights */
.info-highlight {
    background: linear-gradient(135deg, rgba(30, 60, 114, 0.05), rgba(42, 82, 152, 0.05));
    border-left: 4px solid var(--primary-blue);
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.info-highlight h6 {
    color: var(--primary-blue);
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.info-highlight p {
    color: var(--text-gray);
    margin: 0;
    line-height: 1.6;
}

/* Welcome Banner */
.welcome-banner {
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    color: var(--white);
    border-radius: 16px;
    padding: 2.5rem;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(30, 60, 114, 0.3);
}

.welcome-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.welcome-banner::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 150px;
    height: 150px;
    background: rgba(255, 215, 0, 0.1);
    border-radius: 50%;
    animation: float 8s ease-in-out infinite;
    animation-delay: 2s;
}

.welcome-content {
    position: relative;
    z-index: 2;
}

.welcome-title {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.welcome-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    margin: 0;
    line-height: 1.6;
}

/* Responsive Dashboard */
@media (max-width: 991.98px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stats-card-body {
        padding: 1.5rem;
    }
    
    .content-card-body {
        padding: 1.5rem;
    }
    
    .welcome-banner {
        padding: 2rem;
    }
    
    .welcome-title {
        font-size: 1.75rem;
    }
}

@media (max-width: 767.98px) {
    .dashboard-title {
        font-size: 1.5rem;
    }
    
    .user-info {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
    
    .stats-value {
        font-size: 2rem;
    }
    
    .welcome-banner {
        padding: 1.5rem;
        text-align: center;
    }
    
    .welcome-title {
        font-size: 1.5rem;
    }
    
    .content-card-body {
        padding: 1rem;
    }
    
    .grid-4 {
        grid-template-columns: 1fr;
    }
}

/* Sophisticated Animation System */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes shimmer {
    0% {
        background-position: -200px 0;
    }
    100% {
        background-position: calc(200px + 100%) 0;
    }
}

.login-form-container {
    animation: slideInUp 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.brand-content {
    animation: slideInLeft 1s cubic-bezier(0.23, 1, 0.32, 1);
}

.form-group:nth-child(1) {
    animation: fadeInScale 0.6s cubic-bezier(0.23, 1, 0.32, 1) 0.2s both;
}

.form-group:nth-child(2) {
    animation: fadeInScale 0.6s cubic-bezier(0.23, 1, 0.32, 1) 0.4s both;
}

.form-group:nth-child(3) {
    animation: fadeInScale 0.6s cubic-bezier(0.23, 1, 0.32, 1) 0.6s both;
}

.btn-login {
    animation: fadeInScale 0.6s cubic-bezier(0.23, 1, 0.32, 1) 0.8s both;
}

.btn-google {
    animation: fadeInScale 0.6s cubic-bezier(0.23, 1, 0.32, 1) 1s both;
}

.university-logo-img {
    animation: logoFloat 6s ease-in-out infinite, fadeInScale 1s cubic-bezier(0.23, 1, 0.32, 1) 0.5s both;
}

.feature-item {
    animation: slideInLeft 0.6s cubic-bezier(0.23, 1, 0.32, 1) both;
}

.feature-item:nth-child(1) { animation-delay: 1.2s; }
.feature-item:nth-child(2) { animation-delay: 1.4s; }
.feature-item:nth-child(3) { animation-delay: 1.6s; }

/* Micro-interactions */
.form-control:focus {
    animation: inputFocus 0.3s ease-out;
}

@keyframes inputFocus {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

.form-check-input:checked {
    animation: checkboxCheck 0.3s ease-out;
}

@keyframes checkboxCheck {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* Loading shimmer effect */
.shimmer {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200px 100%;
    animation: shimmer 2s infinite;
}

/* ========================================
   ELEGANT BUTTON STYLES
   ======================================== */

/* Enhanced CSS Variables for Buttons */
:root {
    --btn-shadow: 0 4px 14px 0 rgba(0, 104, 56, 0.2);
    --btn-shadow-hover: 0 6px 20px rgba(0, 104, 56, 0.3);
    --btn-shadow-active: 0 2px 8px rgba(0, 104, 56, 0.4);
    --btn-border-radius: 12px;
    --btn-border-radius-sm: 8px;
    --btn-border-radius-lg: 16px;
}

/* Base elegant button styling */
.btn-elegant {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    font-size: 0.875rem;
    line-height: 1.25;
    text-decoration: none;
    border: none;
    border-radius: var(--btn-border-radius);
    cursor: pointer;
    transition: var(--transition-smooth);
    overflow: hidden;
    user-select: none;
    white-space: nowrap;
    min-height: 44px;
    box-shadow: var(--btn-shadow);
}

.btn-elegant::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-elegant:hover::before {
    left: 100%;
}

.btn-elegant:hover {
    transform: translateY(-2px);
    box-shadow: var(--btn-shadow-hover);
}

.btn-elegant:active {
    transform: translateY(0);
    box-shadow: var(--btn-shadow-active);
}

.btn-elegant:focus {
    outline: none;
    box-shadow: var(--btn-shadow-hover), 0 0 0 3px rgba(0, 104, 56, 0.1);
}

/* Primary elegant button */
.btn-elegant-primary {
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--secondary-green) 100%);
    color: white;
    box-shadow: var(--btn-shadow);
}

.btn-elegant-primary:hover {
    background: linear-gradient(135deg, var(--secondary-green) 0%, var(--accent-green) 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--btn-shadow-hover);
}

.btn-elegant-primary:active {
    background: linear-gradient(135deg, #004d2a 0%, var(--primary-green) 100%);
}

/* Secondary elegant button */
.btn-elegant-secondary {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    color: var(--text-dark);
    border: 2px solid #dee2e6;
    box-shadow: 0 4px 14px 0 rgba(0, 0, 0, 0.1);
}

.btn-elegant-secondary:hover {
    background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
    color: var(--text-dark);
    border-color: #adb5bd;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* Success elegant button */
.btn-elegant-success {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    box-shadow: 0 4px 14px 0 rgba(40, 167, 69, 0.2);
}

.btn-elegant-success:hover {
    background: linear-gradient(135deg, #20c997 0%, #17a2b8 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.3);
}

/* Warning elegant button */
.btn-elegant-warning {
    background: linear-gradient(135deg, #ffc107 0%, #fd7e14 100%);
    color: #212529;
    box-shadow: 0 4px 14px 0 rgba(255, 193, 7, 0.2);
}

.btn-elegant-warning:hover {
    background: linear-gradient(135deg, #fd7e14 0%, #dc3545 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 193, 7, 0.3);
}

/* Danger elegant button */
.btn-elegant-danger {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
    box-shadow: 0 4px 14px 0 rgba(220, 53, 69, 0.2);
}

.btn-elegant-danger:hover {
    background: linear-gradient(135deg, #c82333 0%, #a71e2a 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 53, 69, 0.3);
}

/* Info elegant button */
.btn-elegant-info {
    background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
    color: white;
    box-shadow: 0 4px 14px 0 rgba(23, 162, 184, 0.2);
}

.btn-elegant-info:hover {
    background: linear-gradient(135deg, #138496 0%, #117a8b 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(23, 162, 184, 0.3);
}

/* Outline elegant buttons */
.btn-elegant-outline-primary {
    background: transparent;
    color: var(--primary-green);
    border: 2px solid var(--primary-green);
    box-shadow: 0 4px 14px 0 rgba(0, 104, 56, 0.1);
}

.btn-elegant-outline-primary:hover {
    background: var(--primary-green);
    color: white;
    border-color: var(--primary-green);
    transform: translateY(-2px);
    box-shadow: var(--btn-shadow-hover);
}

.btn-elegant-outline-secondary {
    background: transparent;
    color: var(--text-gray);
    border: 2px solid #dee2e6;
    box-shadow: 0 4px 14px 0 rgba(0, 0, 0, 0.05);
}

.btn-elegant-outline-secondary:hover {
    background: #f8f9fa;
    color: var(--text-dark);
    border-color: #adb5bd;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

/* Button sizes */
.btn-elegant-sm {
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
    min-height: 36px;
    border-radius: var(--btn-border-radius-sm);
}

.btn-elegant-lg {
    padding: 1rem 2rem;
    font-size: 1rem;
    min-height: 52px;
    border-radius: var(--btn-border-radius-lg);
}

/* Button with icons */
.btn-elegant .btn-icon {
    font-size: 1em;
    margin-right: 0.5rem;
}

.btn-elegant .btn-icon-right {
    font-size: 1em;
    margin-left: 0.5rem;
    margin-right: 0;
}

.btn-elegant-icon-only {
    padding: 0.75rem;
    min-width: 44px;
    border-radius: 50%;
}

.btn-elegant-icon-only.btn-elegant-sm {
    padding: 0.5rem;
    min-width: 36px;
}

.btn-elegant-icon-only.btn-elegant-lg {
    padding: 1rem;
    min-width: 52px;
}

/* Loading state */
.btn-elegant.loading {
    pointer-events: none;
    opacity: 0.7;
}

.btn-elegant.loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    margin: auto;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Disabled state */
.btn-elegant:disabled,
.btn-elegant.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

.btn-elegant:disabled:hover,
.btn-elegant.disabled:hover {
    transform: none;
    box-shadow: none;
}

/* Button groups */
.btn-elegant-group {
    display: inline-flex;
    border-radius: var(--btn-border-radius);
    overflow: hidden;
    box-shadow: var(--btn-shadow);
}

.btn-elegant-group .btn-elegant {
    border-radius: 0;
    box-shadow: none;
    border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-elegant-group .btn-elegant:first-child {
    border-top-left-radius: var(--btn-border-radius);
    border-bottom-left-radius: var(--btn-border-radius);
}

.btn-elegant-group .btn-elegant:last-child {
    border-top-right-radius: var(--btn-border-radius);
    border-bottom-right-radius: var(--btn-border-radius);
    border-right: none;
}

/* Floating action button */
.btn-elegant-fab {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    z-index: 1000;
    box-shadow: 0 8px 24px rgba(0, 104, 56, 0.3);
}

.btn-elegant-fab:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 12px 32px rgba(0, 104, 56, 0.4);
}

/* Ripple effect */
.btn-elegant {
    position: relative;
    overflow: hidden;
}

.btn-elegant::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s;
}

.btn-elegant:active::after {
    width: 300px;
    height: 300px;
}

/* Responsive design */
@media (max-width: 768px) {
    .btn-elegant {
        padding: 0.625rem 1.25rem;
        font-size: 0.8rem;
    }
    
    .btn-elegant-lg {
        padding: 0.875rem 1.75rem;
        font-size: 0.9rem;
    }
    
    .btn-elegant-fab {
        bottom: 1rem;
        right: 1rem;
        width: 48px;
        height: 48px;
        font-size: 1.25rem;
    }
}

/* ========================================
   ANALYTICS AND STATISTICS STYLES
   ======================================== */

/* Analytics Card Styling */
.analytics-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: var(--transition-smooth);
    height: 100%;
}

.analytics-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.analytics-title {
    color: var(--text-dark);
    font-weight: 600;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
}

.analytics-title i {
    color: var(--primary-green);
}

/* Grade Distribution Styles */
.grade-distribution .grade-item {
    margin-bottom: 12px;
}

.grade-label {
    font-size: 0.9rem;
    color: var(--text-dark);
}

.grade-count {
    font-size: 0.85rem;
    color: var(--text-gray);
}

/* Score Statistics Styles */
.score-stats .stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #f7fafc;
}

.score-stats .stat-row:last-child {
    border-bottom: none;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-gray);
}

.stat-value {
    font-size: 1rem;
    font-weight: 600;
}

/* Program Statistics Styles */
.program-stats .program-item {
    background: #f8fafc;
    border-radius: 8px;
    padding: 16px;
    border: 1px solid #e2e8f0;
}

.program-name {
    color: var(--text-dark);
    font-size: 1rem;
}

.program-metrics .badge {
    font-size: 0.75rem;
}

/* Progress Timeline Styles */
.progress-timeline {
    display: flex;
    align-items: center;
    justify-content: space-around;
    position: relative;
    padding: 20px 0;
}

.progress-timeline::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 25%;
    right: 25%;
    height: 2px;
    background: linear-gradient(to right, #28a745, #ffc107);
    transform: translateY(-50%);
    z-index: 1;
}

.timeline-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 2;
}

.timeline-marker {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: relative;
}

.timeline-marker::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    background: white;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.timeline-content h6 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.timeline-content p {
    font-size: 0.8rem;
    color: var(--text-gray);
    margin: 0;
}

/* Progress Bar Enhancements */
.progress {
    border-radius: 6px;
    overflow: hidden;
}

.progress-bar {
    transition: width 0.6s ease;
}

.bg-gradient {
    background: linear-gradient(135deg, var(--primary-green), var(--accent-green)) !important;
}

/* Responsive Analytics */
@media (max-width: 768px) {
    .analytics-card {
        padding: 16px;
        margin-bottom: 16px;
    }
    
    .progress-timeline {
        flex-direction: column;
        gap: 20px;
    }
    
    .progress-timeline::before {
        display: none;
    }
    
    .program-item {
        margin-bottom: 12px;
    }
    
    .program-metrics {
        margin-top: 8px;
    }
    
    .program-metrics .badge {
        display: block;
        margin-bottom: 4px;
        width: fit-content;
    }
}

/* Animation for Analytics */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.analytics-card {
    animation: fadeInUp 0.6s ease-out;
}

.analytics-card:nth-child(1) { animation-delay: 0.1s; }
.analytics-card:nth-child(2) { animation-delay: 0.2s; }
.analytics-card:nth-child(3) { animation-delay: 0.3s; }

/* NIM Import Specific Styles */
.nim-import-card {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
    border-radius: 20px;
    padding: 0;
    box-shadow: 0 20px 40px rgba(255, 107, 107, 0.3);
    border: none;
    overflow: hidden;
    transition: all 0.3s ease;
}

.nim-import-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 50px rgba(255, 107, 107, 0.4);
}

.nim-import-header {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
}

.nim-format-guide {
    background: linear-gradient(135deg, #ff9ff3 0%, #f368e0 100%);
}

.nim-example-data {
    background: linear-gradient(135deg, #74b9ff 0%, #0984e3 100%);
}

/* Enhanced File Upload for NIM Import */
.nim-file-upload-area {
    border: 3px dashed #ff6b6b;
    border-radius: 15px;
    padding: 3rem 2rem;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    background: linear-gradient(135deg, #fff5f5 0%, #ffe8e8 100%);
}

.nim-file-upload-area:hover {
    border-color: #ee5a24;
    background: linear-gradient(135deg, #ffe8e8 0%, #ffd6d6 100%);
    transform: translateY(-2px);
}

.nim-file-upload-area.drag-over {
    border-color: #28a745;
    background: linear-gradient(135deg, #f0fff4 0%, #e8f5e8 100%);
}

.nim-file-upload-area.file-selected {
    border-color: #28a745;
    background: linear-gradient(135deg, #f0fff4 0%, #e8f5e8 100%);
}

.nim-file-upload-icon {
    font-size: 3rem;
    color: #ff6b6b;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.nim-file-upload-area:hover .nim-file-upload-icon {
    color: #ee5a24;
    transform: scale(1.1);
}

/* NIM Import Actions */
.nim-import-actions .btn-primary {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
    border: none;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
}

.nim-import-actions .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.6);
}



/* Responsive adjustments */
@media (max-width: 1199.98px) {
    .dashboard-grid.grid-4 {
        gap: 1rem;
    }
    
    .dashboard-grid.grid-4 .stat-card,
    .dashboard-grid.grid-4 .summary-card {
        padding: 1.25rem;
    }
    
    .stat-number,
    .summary-number {
        font-size: 1.6rem;
    }
}

@media (max-width: 991.98px) {
    .dashboard-grid.grid-4 {
        flex-direction: column;
        gap: 1rem;
    }
    
    .dashboard-grid.grid-4 .stat-card,
    .dashboard-grid.grid-4 .summary-card {
        flex-direction: row;
        padding: 1.25rem;
    }
}

@media (max-width: 767.98px) {
    .dashboard-grid.grid-4 .stat-card,
    .dashboard-grid.grid-4 .summary-card {
        padding: 1rem;
        gap: 0.75rem;
    }
    
    .stat-icon,
    .summary-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .stat-number,
    .summary-number {
        font-size: 1.4rem;
    }
    
    .stat-label,
    .summary-label {
        font-size: 0.85rem;
    }
}

/* Main Content Wrapper Layout Fix */
.main-content-wrapper {
    display: flex;
    gap: 2rem;
    min-height: calc(100vh - 120px);
    align-items: flex-start;
}

.sidebar-wrapper {
    width: 280px;
    flex-shrink: 0;
    order: 1;
}

.content-wrapper {
    flex: 1;
    min-width: 0;
    order: 2;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .main-content-wrapper {
        flex-direction: column;
    }
    
    .sidebar-wrapper {
        width: 100%;
        order: 2;
    }
    
    .content-wrapper {
        order: 1;
    }
}

/* ===== USER MANAGEMENT PAGE STYLING ===== */

/* Summary Cards Styling */
.summary-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: none;
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    position: relative;
    overflow: hidden;
    height: 100%;
}

.summary-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.1) 0%, transparent 100%);
    pointer-events: none;
}

.summary-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.summary-icon {
    width: 60px;
    height: 60px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    flex-shrink: 0;
}

.summary-icon.bg-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.summary-icon.bg-warning {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.summary-icon.bg-info {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.summary-icon.bg-success {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.summary-content {
    flex: 1;
}

.summary-number {
    font-size: 2rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 0.25rem;
    line-height: 1;
}

.summary-label {
    font-size: 0.9rem;
    color: #6c757d;
    font-weight: 500;
    margin: 0;
}

/* Modern Table Styling */
.modern-table {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    border: none;
    margin-bottom: 0;
    width: 100%;
}

.modern-table thead {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.modern-table thead th {
    border: none;
    color: white !important;
    font-weight: 600;
    padding: 1rem;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    position: relative;
}

.modern-table thead th.sortable {
    cursor: pointer;
    user-select: none;
    transition: all 0.3s ease;
}

.modern-table thead th.sortable:hover {
    background: rgba(255, 255, 255, 0.1);
}

.modern-table tbody tr {
    transition: all 0.3s ease;
    border: none;
}

.modern-table tbody tr:hover {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    transform: scale(1.01);
}

.modern-table tbody td {
    border: none;
    padding: 1rem;
    vertical-align: middle;
    border-bottom: 1px solid #f1f3f4;
    color: #495057;
    font-weight: 500;
}

.modern-table tbody tr:last-child td {
    border-bottom: none;
}

/* Enhanced User Info Styling */
.user-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
    flex-shrink: 0;
    font-weight: 600;
}

.user-details {
    flex: 1;
}

.username {
    font-weight: 600;
    color: #2c3e50 !important;
    font-size: 0.95rem;
    margin: 0;
}

.user-name-cell {
    font-weight: 600;
    color: #2c3e50 !important;
    font-size: 0.95rem;
}

/* Enhanced Role Badge Styling */
.role-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
    color: white !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.role-badge.admin {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.role-badge.admin_prodi {
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
    color: #8b4513 !important;
}

.role-badge.lecturer {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.role-badge.student {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

/* Table Controls Styling */
.table-controls {
    background: white;
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 1.5rem;
}

.search-box {
    position: relative;
}

.search-box input {
    border: 2px solid #e9ecef;
    border-radius: 25px;
    padding: 0.75rem 1rem 0.75rem 3rem;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    background: #f8f9fa;
    color: #495057;
}

.search-box input:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
    background: white;
    color: #2c3e50;
}

.search-box .search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
    font-size: 1rem;
}

.role-filter select {
    border: 2px solid #e9ecef;
    border-radius: 25px;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    background: #f8f9fa;
    transition: all 0.3s ease;
    color: #495057;
}

.role-filter select:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
    background: white;
    color: #2c3e50;
}

.table-info {
    color: #6c757d;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Enhanced Action Buttons Styling */
.btn-action {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    border: none;
    transition: all 0.3s ease;
    margin: 0 0.25rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.btn-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    text-decoration: none;
}

.btn-action.btn-warning {
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
    color: #8b4513 !important;
}

.btn-action.btn-info {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white !important;
}

.btn-action.btn-danger {
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%);
    color: #dc3545 !important;
}

/* Enhanced Content Card Styling */
.content-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    margin-bottom: 2rem;
}

.content-card-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 1.5rem;
    border-bottom: 1px solid #dee2e6;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.content-card-title {
    color: #2c3e50 !important;
    font-weight: 700;
    font-size: 1.25rem;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.card-subtitle {
    color: #6c757d !important;
    font-size: 0.9rem;
    margin: 0.25rem 0 0 0;
}

.content-card-body {
    padding: 1.5rem;
}

.card-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* Enhanced Alert Styling */
.alert {
    border-radius: 15px;
    border: none;
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.alert-info {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    color: #1565c0;
    border-left: 4px solid #2196f3;
}

/* Responsive Design */
@media (max-width: 768px) {
    .summary-card {
        margin-bottom: 1rem;
        padding: 1rem;
    }
    
    .summary-icon {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
    
    .summary-number {
        font-size: 1.5rem;
    }
    
    .content-card-header {
        flex-direction: column;
        align-items: flex-start;
        padding: 1rem;
    }
    
    .card-actions {
        width: 100%;
        justify-content: flex-start;
    }
    
    .modern-table {
        font-size: 0.85rem;
    }
    
    .modern-table thead th,
    .modern-table tbody td {
        padding: 0.75rem 0.5rem;
    }
    
    .user-info {
        gap: 0.5rem;
    }
    
    .user-avatar {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
    
    .btn-action {
        padding: 0.4rem 0.8rem;
        font-size: 0.75rem;
        margin: 0.1rem;
    }
    
    .role-badge {
        padding: 0.4rem 0.8rem;
        font-size: 0.75rem;
    }
    
    .content-card-body {
        padding: 1rem;
    }
    
    .table-controls {
        padding: 1rem;
    }
}

/* Main Content Wrapper Layout Fix */
.main-content-wrapper {
    display: flex;
    flex-direction: row;
    gap: 1.5rem;
    align-items: flex-start;
}

.sidebar-wrapper {
    flex: 0 0 280px;
    width: 280px;
    min-width: 280px;
    position: sticky;
    top: 20px;
    align-self: flex-start;
    z-index: 100;
    order: 1;
}

.content-wrapper {
    flex: 1;
    min-width: 0;
    width: calc(100% - 300px);
    order: 2;
}

@media (max-width: 991.98px) {
    .main-content-wrapper {
        flex-direction: column;
        gap: 1rem;
    }
    
    .sidebar-wrapper {
        flex: 1 1 100%;
        width: 100%;
        min-width: auto;
        position: relative;
        top: auto;
        order: 1;
    }
    
    .content-wrapper {
        order: 2;
        width: 100%;
    }
}

/* Welcome Stats Section */
.welcome-stats {
    margin-top: 2rem;
}

.stat-card {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 1.5rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    align-items: center;
}

.stat-card:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.stat-icon {
    width: 60px;
/* Enhanced Statistics Cards */
.stats-card {
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    border: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    padding: 0;
}

.stats-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
}

.stats-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.stats-card-body {
    padding: 2rem;
    position: relative;
.card-actions {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
}

.stats-icon {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    border-radius: 12px;
    display: flex;
}

    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.5rem;
    opacity: 0.1;
}

.stats-content {
    padding: 1rem;
    position: relative;
    z-index: 2;
}

.stats-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin: 0;
    line-height: 1;
    font-family: 'Playfair Display', serif;
}

.stats-label {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-gray);
    margin: 0.5rem 0 0 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stats-change {
    font-size: 0.875rem;
    font-weight: 500;
    margin-top: 0.75rem;
}

.stats-change.positive {
    color: #10b981;
}

.stats-change.negative {
    color: #ef4444;
}

.stats-change.neutral {
    color: var(--text-gray);
}

/* Enhanced Content Cards */
.content-card {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-soft);
    border: none;
    transition: var(--transition-smooth);
    margin-bottom: 2rem;
}

.content-card:hover {
    box-shadow: var(--shadow-medium);
}

.content-card-header {
    background: linear-gradient(135deg, #f8fafc, #edf2f7);
    border-bottom: 1px solid #e2e8f0;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
    padding: 1.5rem;
    position: relative;
}

.content-card-title {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    font-size: 1.25rem;
    color: var(--primary-blue);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.content-card-title i {
    color: var(--gold-primary);
    font-size: 1.1rem;
}

.content-card-body {
    padding: 2rem;
}

/* Enhanced Sidebar */
.sidebar-card {
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    border: none;
    position: sticky;
    top: 2rem;
    overflow: hidden;
}

.sidebar-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
}

.sidebar-header {
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    color: var(--white);
    border-radius: 16px 16px 0 0;
    padding: 1.5rem;
    text-align: center;
}

.sidebar-title {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    font-size: 1.1rem;
    margin: 0;
}

.sidebar-menu {
    border: none;
}

.sidebar-menu .list-group-item {
    border: none;
    border-bottom: 1px solid #f1f5f9;
    padding: 1rem 1.5rem;
    transition: all 0.3s ease;
    color: var(--text-dark);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 500;
}

.sidebar-menu .list-group-item:hover {
    background: linear-gradient(135deg, #f8fafc, #edf2f7);
    color: var(--primary-blue);
    transform: translateX(8px);
}

.sidebar-menu .list-group-item.active {
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    color: var(--white);
    border-color: var(--primary-blue);
    transform: translateX(8px);
}

.sidebar-menu .list-group-item.text-danger {
    color: #dc2626 !important;
    border-top: 2px solid #fee2e2;
    margin-top: 0.5rem;
}

.sidebar-menu .list-group-item.text-danger:hover {
    background: linear-gradient(135deg, #fef2f2, #fee2e2);
    color: #dc2626 !important;
}

}

/* Enhanced Tables */
.modern-table {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    border: none;
}

.modern-table th {
    background: linear-gradient(135deg, #f8fafc, #edf2f7);
    border: none;
    font-weight: 600;
    color: var(--text-dark);
    padding: 1rem;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    position: relative;
}

.modern-table th.sortable {
    cursor: pointer;
    user-select: none;
    transition: all 0.3s ease;
}

.modern-table th.sortable:hover {
    background: linear-gradient(135deg, #e2e8f0, #cbd5e1);
    color: var(--primary-blue);
}

.modern-table th.sortable .sort-icon {
    margin-left: 0.5rem;
    opacity: 0.5;
    transition: all 0.3s ease;
    font-size: 0.75rem;
}

.modern-table th.sortable:hover .sort-icon {
    opacity: 1;
    color: var(--primary-blue);
}

.modern-table td {
    border: none;
    border-bottom: 1px solid #f1f5f9;
    padding: 1rem;
    vertical-align: middle;
}

.modern-table tbody tr {
    transition: all 0.3s ease;
}

.modern-table tbody tr:hover {
    background: linear-gradient(135deg, #f8fafc, #edf2f7);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.modern-table tbody tr:last-child td {
    border-bottom: none;
}

/* User Info Styling */
.user-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 0.9rem;
    flex-shrink: 0;
}

.user-details {
    flex: 1;
    min-width: 0;
}

.username {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.9rem;
}

.user-name-cell .user-name {
    font-weight: 500;
    color: var(--text-dark);
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
}

.email-cell .email-text {
    color: var(--text-gray);
    font-size: 0.9rem;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 250px;
}

.study-program {
    color: var(--text-gray);
    font-size: 0.9rem;
    font-style: italic;
}

/* Enhanced Badges */
.status-badge {
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
    transition: all 0.3s ease;
}

.status-badge:hover {
    transform: scale(1.05);
}

.status-badge.success {
    background: linear-gradient(135deg, #d1fae5, #a7f3d0);
    color: #065f46;
}

.status-badge.warning {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    color: #92400e;
}

.status-badge.danger {
    background: linear-gradient(135deg, #fee2e2, #fecaca);
    color: #991b1b;
}

.status-badge.info {
    background: linear-gradient(135deg, #dbeafe, #bfdbfe);
    color: #1e40af;
}

.status-badge.secondary {
    background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
    color: #475569;
}

/* Role Badges */
.role-badge {
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    transition: all 0.3s ease;
}

.role-badge:hover {
    transform: scale(1.05);
}

.badge-admin {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    color: #92400e;
}

.badge-admin-prodi {
    background: linear-gradient(135deg, #e0e7ff, #c7d2fe);
    color: #3730a3;
}

.badge-lecturer {
    background: linear-gradient(135deg, #dbeafe, #bfdbfe);
    color: #1e40af;
}

.badge-student {
    background: linear-gradient(135deg, #d1fae5, #a7f3d0);
    color: #065f46;
}

.badge-default {
    background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
    color: #475569;
}

/* Enhanced Progress Indicators */
.progress-container {
    background: #f1f5f9;
    border-radius: 50px;
    height: 8px;
    overflow: hidden;
    margin: 0.75rem 0;
}

.progress-bar-modern {
    height: 100%;
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    border-radius: 50px;
    transition: width 0.6s ease;
    position: relative;
}

.progress-bar-modern::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;
}

/* Quick Action Buttons */
.quick-action-btn {
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    border: none;
    border-radius: 12px;
    padding: 0.875rem 1.5rem;
    color: var(--white);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(30, 60, 114, 0.3);
}

.quick-action-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(30, 60, 114, 0.4);
    color: var(--white);
    text-decoration: none;
}

.quick-action-btn.secondary {
    background: linear-gradient(135deg, #6b7280, #4b5563);
    box-shadow: 0 4px 15px rgba(107, 114, 128, 0.3);
}

.quick-action-btn.secondary:hover {
    box-shadow: 0 8px 25px rgba(107, 114, 128, 0.4);
}

.quick-action-btn.success {
    background: linear-gradient(135deg, #10b981, #059669);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.quick-action-btn.success:hover {
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
}

.quick-action-btn.warning {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

.quick-action-btn.warning:hover {
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.4);
}

/* Dashboard Grid System */
.dashboard-grid {
    display: grid;
    gap: 2rem;
    margin-bottom: 2rem;
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.grid-5 {
    grid-template-columns: repeat(5, 1fr);
}

/* Button Group Responsive */
.btn-group-responsive {
    display: flex;
    flex-wrap: nowrap;
    gap: 1rem;
    align-items: stretch;
}

.btn-group-responsive .quick-action-btn {
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    text-align: center;
    justify-content: center;
}

/* Responsive adjustments for smaller screens */
@media (max-width: 1200px) {
    .grid-5 {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .btn-group-responsive {
        flex-wrap: wrap;
    }
    
    .btn-group-responsive .quick-action-btn {
        flex: 1 1 calc(50% - 0.5rem);
        min-width: 200px;
    }
}

@media (max-width: 768px) {
    .grid-5 {
        grid-template-columns: 1fr;
    }
    
    .btn-group-responsive {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .btn-group-responsive .quick-action-btn {
        flex: none;
        width: 100%;
        min-width: auto;
    }
}

/* Information Highlights */
.info-highlight {
    background: linear-gradient(135deg, rgba(30, 60, 114, 0.05), rgba(42, 82, 152, 0.05));
    border-left: 4px solid var(--primary-blue);
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.info-highlight h6 {
    color: var(--primary-blue);
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.info-highlight p {
    color: var(--text-gray);
    margin: 0;
    line-height: 1.6;
}

/* Welcome Banner */
.welcome-banner {
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    color: var(--white);
    border-radius: var(--border-radius);
    padding: 2.5rem;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.welcome-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.welcome-content {
    position: relative;
    z-index: 2;
}

.welcome-title {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.welcome-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    margin: 0;
    line-height: 1.6;
}

/* Responsive Dashboard */
@media (max-width: 991.98px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .stats-card-body {
        padding: 1.5rem;
    }
    
    .content-card-body {
        padding: 1.5rem;
    }
    
    .welcome-banner {
        padding: 2rem;
    }
    
    .welcome-title {
        font-size: 1.75rem;
    }
}

@media (max-width: 767.98px) {
    .dashboard-title {
        font-size: 1.5rem;
    }
    
    .user-info {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
    
    .stats-value {
        font-size: 2rem;
    }
    
    .welcome-banner {
        padding: 1.5rem;
        text-align: center;
    }
    
    .welcome-title {
        font-size: 1.5rem;
    }
    
    .content-card-body {
        padding: 1rem;
    }
}

/* Sophisticated Animation System */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes shimmer {
    0% {
        background-position: -200px 0;
    }
    100% {
        background-position: calc(200px + 100%) 0;
    }
}

.login-form-container {
    animation: slideInUp 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.brand-content {
    animation: slideInLeft 1s cubic-bezier(0.23, 1, 0.32, 1);
}

.form-group:nth-child(1) {
    animation: fadeInScale 0.6s cubic-bezier(0.23, 1, 0.32, 1) 0.2s both;
}

.form-group:nth-child(2) {
    animation: fadeInScale 0.6s cubic-bezier(0.23, 1, 0.32, 1) 0.4s both;
}

.form-group:nth-child(3) {
    animation: fadeInScale 0.6s cubic-bezier(0.23, 1, 0.32, 1) 0.6s both;
}

.btn-login {
    animation: fadeInScale 0.6s cubic-bezier(0.23, 1, 0.32, 1) 0.8s both;
}

.btn-google {
    animation: fadeInScale 0.6s cubic-bezier(0.23, 1, 0.32, 1) 1s both;
}

.university-logo-img {
    animation: logoFloat 6s ease-in-out infinite, fadeInScale 1s cubic-bezier(0.23, 1, 0.32, 1) 0.5s both;
}

.feature-item {
    animation: slideInLeft 0.6s cubic-bezier(0.23, 1, 0.32, 1) both;
}

.feature-item:nth-child(1) { animation-delay: 1.2s; }
.feature-item:nth-child(2) { animation-delay: 1.4s; }
.feature-item:nth-child(3) { animation-delay: 1.6s; }

/* Micro-interactions */
.form-control:focus {
    animation: inputFocus 0.3s ease-out;
}

@keyframes inputFocus {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

.form-check-input:checked {
    animation: checkboxCheck 0.3s ease-out;
}

@keyframes checkboxCheck {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* Loading shimmer effect */
.shimmer {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200px 100%;
    animation: shimmer 2s infinite;
}