/* Global Reset & Spacing Optimization */
html, body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #f6f8fa;
    overflow-y: auto;
}

/* Header Config */
.global-header {
    height: 60px;
    background-color: #1a1f2c !important;
    z-index: 1030;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
}

.logo-image {
    max-height: 38px;
    width: auto;
}

/* WORKSPACE WRAPPERS (Zero spacing margins) */
.main-portal-content {
    width: 100%;
    min-height: calc(100vh - 60px);
    overflow-y: auto;
}

.portal-container {
    display: flex;
    width: 100vw;
    height: calc(100vh - 60px);
    overflow: hidden;
}

.left-frame {
    width: 75%;
    height: 100%;
    overflow-y: auto;
    padding: 12px 15px !important; /* FIXED: Reduced gaps completely */
    box-sizing: border-box;
    background-color: #ffffff;
    border-right: 2px solid #dee2e6;
}

.right-frame {
    width: 25%;
    height: 100%;
    overflow-y: auto;
    background-color: #fdfdfd;
    padding: 12px 15px !important; /* FIXED: Reduced gaps completely */
    box-sizing: border-box;
    border-left: 1px solid #dee2e6;
}

/* PREMIUM 3D-TYPE SHADOW BLOCKS */
.premium-3d-card {
    background: #ffffff;
    border-radius: 12px !important;
    border: 1px solid #e2e8f0;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.05), inset 0 1px 0 #ffffff;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

    .premium-3d-card:hover {
        box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 10px 10px -5px rgba(0, 0, 0, 0.03);
    }

.credentials-table-compact {
    font-size: 12px !important;
    line-height: 1.3;
}

    .credentials-table-compact td {
        padding: 5px 8px !important;
        vertical-align: middle !important;
    }

    .credentials-table-compact code {
        font-size: 12.5px !important;
        font-weight: bold;
    }

/* ========================================================================= */
/* GLOWING DARK BLUE COMPACT MODULE BUTTONS                                  */
/* ========================================================================= */
.module-item-compact-student, .module-item-compact-trainer {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    background-color: #0f172a !important; /* FIXED: Dark Blue background */
    border-left: 5px solid #198754 !important; /* Green indicator */
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 13.5px; /* FIXED: Slightly increased font size */
    height: 40px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

    .module-item-compact-student:hover, .module-item-compact-trainer:hover {
        transform: translateY(-2px);
        background-color: #1e293b !important; /* Slightly lighter dark blue on hover */
        /* FIXED: Vibrant neon-blue glowing outline shadow on hover */
        box-shadow: 0 0 15px 4px rgba(0, 242, 254, 0.35) !important;
    }

.module-item-compact-trainer {
    border-left: 5px solid #0078d4 !important; /* Blue indicator */
}

.module-number-student {
    color: #2ecc71 !important; /* Bright light-green for high contrast */
    font-weight: 800;
    margin-right: 8px;
    flex-shrink: 0;
}

.module-number-trainer {
    color: #00a8ff !important; /* Bright light-blue for high contrast */
    font-weight: 800;
    margin-right: 8px;
    flex-shrink: 0;
}

.module-title-compact {
    color: #ffffff !important; /* White text for module titles */
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ANIMATED BANNER (Replaces static images) */
.animated-header-banner {
    position: relative;
    width: 1900px;
    max-width: 95vw;
    height: 120px;
    border-radius: 8px;
    overflow: hidden;
    margin: 0 auto;
    border: 3px solid #1a1f2c;
    background: linear-gradient(-45deg, #0f172a, #1a1f2c, #0d1b2a, #1e293b, #0f172a);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    display: flex;
    align-items: center;
    justify-content: center;
}

.banner-shimmer-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0) 50%, rgba(255,255,255,0.03) 100%);
    pointer-events: none;
}

.banner-content-wrapper {
    position: relative;
    z-index: 2;
    text-align: center;
}

.animated-glow-text {
    font-size: 1.85rem !important; /* FIXED: Reduced font-size to fit 120px height banner */
    font-weight: 900;
    letter-spacing: 4px;
    margin: 0;
    padding: 0;
    background: linear-gradient(to right, #00f2fe, #4facfe, #f093fb, #f5576c, #198754, #00f2fe);
    background-size: 200% auto;
    --bg-clip: text;
    background-clip: var(--bg-clip);
    -webkit-background-clip: var(--bg-clip);
    -webkit-text-fill-color: transparent;
    animation: spectrumShine 6s linear infinite;
    filter: drop-shadow(0 0 10px rgba(79, 172, 254, 0.35));
}

.banner-tagline-subtitle {
    font-size: 0.8rem !important; /* FIXED: Reduced font-size to fit 120px height banner */
    font-weight: 700;
    letter-spacing: 6px;
    color: rgba(255, 255, 255, 0.65);
    margin-top: 6px !important; /* FIXED: Reduced margin top */
    margin-bottom: 0;
    text-transform: uppercase;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@keyframes spectrumShine {
    to {
        background-position: 200% center;
    }
}

.static-login-box {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.enhanced-card {
    max-width: 320px !important;
    margin: 0 auto !important;
    border-radius: 12px !important;
    padding: 20px !important;
    background-color: #ffffff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.card-icon-wrapper {
    width: 65px !important;
    height: 65px !important;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px auto !important;
}

.card-top-icon {
    width: 45px !important;
    height: 45px !important;
    object-fit: contain !important;
}
/* Enhanced horizontal login panel with premium 3D outer glow layers */
.horizontal-login-bar {
    background-color: #1a1f2c !important;
    border-radius: 10px !important;
    border: 2px solid #2b303c !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.25), inset 0 1px 0 rgba(255,255,255,0.1) !important;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}
/* ========================================================================= */
/* ENHANCED METADATA OVERVIEW PANEL STYLES                                  */
/* ========================================================================= */

.metadata-enhanced-panel {
    /* Subtle modern high-tech gradient backdrop */
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%) !important;
    border: 1px solid #e2e8f0 !important;
    border-left: 5px solid #0078d4 !important; /* Default Blue left border for Trainer */
    border-radius: 8px !important;
    padding: 15px 20px !important;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.02), 0 2px 8px rgba(0, 0, 0, 0.04) !important;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Green left-border override for Student view */
.metadata-panel-student {
    border-left: 5px solid #198754 !important;
}

/* Row-by-row item spacing inside panel */
.metadata-item-row {
    margin-bottom: 12px;
    font-size: 14.5px;
    color: #475569;
}

    .metadata-item-row:last-child {
        margin-bottom: 0;
    }

/* ========================================================================= */
/* 3D GLOWING COLORFUL CARDS (Trainer & Student Login)                       */
/* ========================================================================= */

.card-glow-trainer {
    border: 2px solid #0078d4 !important; /* Premium Blue Border */
    background: #ffffff !important;
    /* Layered 3D drop shadows with a subtle neon-blue outer glow */
    box-shadow: 0 10px 25px rgba(0, 120, 212, 0.12), 0 4px 10px rgba(0, 120, 212, 0.08), inset 0 0 12px rgba(0, 120, 212, 0.03) !important;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
}

    .card-glow-trainer:hover {
        transform: translateY(-8px) scale(1.01) !important;
        border-color: #0084ff !important;
        /* Intense neon-blue outer glow on hover */
        box-shadow: 0 18px 30px rgba(0, 120, 212, 0.28), 0 0 15px rgba(0, 120, 212, 0.2), inset 0 0 15px rgba(0, 120, 212, 0.08) !important;
    }

.card-glow-student {
    border: 2px solid #198754 !important; /* Premium Green Border */
    background: #ffffff !important;
    /* Layered 3D drop shadows with a subtle neon-green outer glow */
    box-shadow: 0 10px 25px rgba(25, 135, 84, 0.12), 0 4px 10px rgba(25, 135, 84, 0.08), inset 0 0 12px rgba(25, 135, 84, 0.03) !important;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
}

    .card-glow-student:hover {
        transform: translateY(-8px) scale(1.01) !important;
        border-color: #21a265 !important;
        /* Intense neon-green outer glow on hover */
        box-shadow: 0 18px 30px rgba(25, 135, 84, 0.28), 0 0 15px rgba(25, 135, 84, 0.2), inset 0 0 15px rgba(25, 135, 84, 0.08) !important;
    }
