/* ============================================
   Grukul LMS Admin Theme - Custom Styles
   All Pages CSS - No White Colors
   ============================================ */

/* ========== Global Styles ========== */
body {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    min-height: 100vh;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    position: relative;
    overflow-x: hidden;
}

/* Animated Background Elements */
body::before {
    content: '';
    position: fixed;
    width: 600px;
    height: 600px;
    background: rgba(248, 249, 250, 0.08);
    border-radius: 50%;
    top: -300px;
    right: -300px;
    animation: float 30s infinite ease-in-out;
    z-index: 0;
}

body::after {
    content: '';
    position: fixed;
    width: 500px;
    height: 500px;
    background: rgba(248, 249, 250, 0.06);
    border-radius: 50%;
    bottom: -250px;
    left: -250px;
    animation: float 25s infinite ease-in-out reverse;
    z-index: 0;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(40px, -40px) rotate(180deg); }
}

/* Floating Educational Icons */
.floating-icon,
.floating-dashboard-icon {
    position: absolute;
    opacity: 0.15;
    animation: floatIcon 15s infinite ease-in-out;
    z-index: 1;
}

.floating-icon:nth-child(1),
.floating-dashboard-icon:nth-child(1) {
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.floating-icon:nth-child(2),
.floating-dashboard-icon:nth-child(2) {
    top: 20%;
    right: 15%;
    animation-delay: 2s;
}

.floating-icon:nth-child(3),
.floating-dashboard-icon:nth-child(3) {
    bottom: 15%;
    left: 20%;
    animation-delay: 4s;
}

.floating-icon:nth-child(4),
.floating-dashboard-icon:nth-child(4) {
    bottom: 25%;
    right: 10%;
    animation-delay: 6s;
}

.floating-dashboard-icon {
    position: fixed;
    opacity: 0.1;
    animation: floatIcon 20s infinite ease-in-out;
}

.floating-dashboard-icon:nth-child(1) {
    top: 15%;
    left: 5%;
    animation-delay: 0s;
}

.floating-dashboard-icon:nth-child(2) {
    top: 25%;
    right: 8%;
    animation-delay: 3s;
}

.floating-dashboard-icon:nth-child(3) {
    bottom: 20%;
    left: 10%;
    animation-delay: 6s;
}

.floating-dashboard-icon:nth-child(4) {
    bottom: 30%;
    right: 5%;
    animation-delay: 9s;
}

@keyframes floatIcon {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(10deg); }
}

/* ========== Login Page Styles ========== */
.lms-login-container {
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.lms-login-container::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    top: -300px;
    right: -300px;
    animation: float 25s infinite ease-in-out;
}

.lms-login-container::after {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    bottom: -250px;
    left: -250px;
    animation: float 20s infinite ease-in-out reverse;
}

/* Main Login Card */
.lms-login-card {
    background: rgba(248, 249, 250, 0.15);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(248, 249, 250, 0.3);
    border-radius: 25px;
    padding: 50px 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    width: 100%;
    max-width: 650px;
    position: relative;
    z-index: 10;
    animation: slideUp 0.6s ease-out;
    overflow: hidden;
}

.lms-login-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(248,249,250,0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

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

/* Logo Section */
.lms-logo-container {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    z-index: 2;
}

.lms-logo-wrapper {
    width: 120px;
    height: 120px;
    margin: 0 auto 25px;
    background: linear-gradient(135deg, rgba(248,249,250,0.3), rgba(233,236,239,0.1));
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    position: relative;
    animation: logoPulse 3s ease-in-out infinite;
}

@keyframes logoPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.lms-logo-wrapper i {
    font-size: 60px;
    color: #e9ecef;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.lms-title {
    font-size: 42px;
    font-weight: 800;
    color: #e9ecef;
    margin-bottom: 10px;
    text-shadow: 2px 4px 8px rgba(0, 0, 0, 0.3);
    letter-spacing: -1px;
}

.lms-subtitle {
    color: rgba(233, 236, 239, 0.95);
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 8px;
}

.lms-tagline {
    color: rgba(233, 236, 239, 0.8);
    font-size: 13px;
    font-style: italic;
}

/* Form Styles */
.lms-form-group {
    margin-bottom: 25px;
    position: relative;
    z-index: 2;
}

.lms-input-wrapper {
    position: relative;
}

.lms-input-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(233, 236, 239, 0.7);
    font-size: 18px;
    z-index: 3;
}

.lms-form-control {
    background: rgba(248, 249, 250, 0.2);
    border: 2px solid rgba(248, 249, 250, 0.3);
    border-radius: 15px;
    padding: 15px 20px 15px 55px;
    color: #e9ecef;
    font-size: 15px;
    width: 100%;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.lms-form-control::placeholder {
    color: rgba(233, 236, 239, 0.6);
}

.lms-form-control:focus {
    background: rgba(248, 249, 250, 0.25);
    border-color: rgba(248, 249, 250, 0.6);
    color: #e9ecef;
    box-shadow: 0 0 0 4px rgba(248, 249, 250, 0.2);
    outline: none;
}

/* Remember Me & Forgot Password */
.lms-form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    position: relative;
    z-index: 2;
}

.lms-checkbox-wrapper {
    display: flex;
    align-items: center;
}

.lms-checkbox {
    width: 18px;
    height: 18px;
    margin-right: 10px;
    accent-color: #f8f9fa;
    cursor: pointer;
}

.lms-checkbox-label {
    color: rgba(233, 236, 239, 0.9);
    font-size: 14px;
    cursor: pointer;
    margin: 0;
}

.lms-forgot-link {
    color: rgba(233, 236, 239, 0.9);
    font-size: 14px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.lms-forgot-link:hover {
    color: #e9ecef;
    text-decoration: underline;
}

/* Login Button */
.lms-login-btn {
    background: linear-gradient(135deg, rgba(248, 249, 250, 0.3), rgba(233, 236, 239, 0.2));
    border: 2px solid rgba(248, 249, 250, 0.4);
    border-radius: 15px;
    padding: 16px;
    font-size: 17px;
    font-weight: 700;
    color: #e9ecef;
    width: 100%;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
    backdrop-filter: blur(10px);
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.lms-login-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(248,249,250,0.3), transparent);
    transition: left 0.5s;
}

.lms-login-btn:hover::before {
    left: 100%;
}

.lms-login-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
    border-color: rgba(248, 249, 250, 0.6);
}

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

.lms-login-btn i {
    margin-right: 10px;
}

/* Security Footer */
.lms-security-footer {
    text-align: center;
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px solid rgba(248, 249, 250, 0.2);
    position: relative;
    z-index: 2;
}

.lms-security-text {
    color: rgba(233, 236, 239, 0.75);
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.lms-security-text i {
    font-size: 14px;
}

/* Stats Bar */
.lms-stats-bar {
    display: flex;
    justify-content: space-around;
    margin-top: 35px;
    padding-top: 25px;
    border-top: 1px solid rgba(248, 249, 250, 0.2);
    position: relative;
    z-index: 2;
}

.lms-stat-item {
    text-align: center;
}

.lms-stat-number {
    font-size: 24px;
    font-weight: 700;
    color: #e9ecef;
    display: block;
    margin-bottom: 5px;
}

.lms-stat-label {
    font-size: 11px;
    color: rgba(233, 236, 239, 0.8);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ========== Dashboard Styles ========== */
/* Sidebar Styles */
.lms-sidebar {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(20px);
    min-height: 100vh;
    height: 100vh;
    width: 280px;
    position: fixed;
    left: 0;
    top: 0;
    box-shadow: 4px 0 30px rgba(0, 0, 0, 0.4);
    z-index: 1000;
    border-right: 1px solid rgba(248, 249, 250, 0.1);
    display: flex;
    flex-direction: column;
}

.lms-sidebar-header {
    padding: 30px 20px;
    border-bottom: 1px solid rgba(248, 249, 250, 0.1);
    display: flex;
    align-items: center;
    gap: 15px;
    flex-shrink: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.3), rgba(118, 75, 162, 0.3));
    position: relative;
    overflow: hidden;
}

.lms-sidebar-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(248,249,250,0.1) 0%, transparent 70%);
    animation: rotate 25s linear infinite;
}

.lms-sidebar-logo {
    width: 55px;
    height: 55px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #e9ecef;
    font-weight: bold;
    font-size: 24px;
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.5);
    animation: logoPulseSidebar 3s ease-in-out infinite;
    position: relative;
    z-index: 2;
}

@keyframes logoPulseSidebar {
    0%, 100% { transform: scale(1); box-shadow: 0 8px 20px rgba(102, 126, 234, 0.5); }
    50% { transform: scale(1.08); box-shadow: 0 12px 30px rgba(102, 126, 234, 0.7); }
}

.lms-sidebar-title {
    font-size: 20px;
    font-weight: 800;
    color: #e9ecef;
    margin: 0;
    position: relative;
    z-index: 2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.lms-sidebar-subtitle {
    font-size: 11px;
    color: rgba(233, 236, 239, 0.8);
    margin: 0;
    position: relative;
    z-index: 2;
}

.lms-nav {
    padding: 20px 0;
    position: relative;
    z-index: 2;
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    /* Hide scrollbar but keep mouse wheel scrolling */
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.lms-nav::-webkit-scrollbar {
    display: none;
}

.lms-nav-item {
    margin: 8px 15px;
}

.lms-nav-link {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 14px 18px;
    color: rgba(233, 236, 239, 0.7);
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.3s ease;
    font-size: 15px;
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

.lms-nav-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.lms-nav-link:hover {
    background: rgba(99, 102, 241, 0.2);
    color: #e9ecef;
    transform: translateX(8px);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.lms-nav-link:hover::before {
    transform: scaleY(1);
}

.lms-nav-link.active {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.4), rgba(139, 92, 246, 0.4));
    color: #e9ecef;
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}

.lms-nav-link.active::before {
    transform: scaleY(1);
}

.lms-nav-link i {
    font-size: 20px;
    width: 25px;
    transition: transform 0.3s ease;
}

.lms-nav-link:hover i:not(.lms-nav-chevron) {
    transform: scale(1.2);
}

/* Nav Dropdown (collapsible sub-menus) */
.lms-nav-dropdown {
    margin: 8px 15px;
}
.lms-nav-toggle {
    justify-content: space-between;
    cursor: pointer;
}
.lms-nav-chevron {
    font-size: 12px;
    transition: transform 0.25s ease;
}
.lms-nav-dropdown.open .lms-nav-chevron {
    transform: rotate(180deg);
}
.lms-nav-sub {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 0 0 8px 8px;
    margin: 0 8px 4px;
}
.lms-nav-dropdown.open .lms-nav-sub {
    max-height: 400px;
}
.lms-nav-sublink {
    padding: 10px 18px 10px 48px !important;
    font-size: 14px;
    margin: 2px 4px;
    border-radius: 8px;
}
.lms-nav-dropdown.open > .lms-nav-toggle {
    background: rgba(99, 102, 241, 0.15);
    color: #e9ecef;
}

/* Main Content Area */
.lms-main-content {
    margin-left: 280px;
    min-height: 100vh;
    background: transparent;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
    overflow: visible;
}

/* Topbar */
.lms-topbar {
    background: rgba(248, 249, 250, 0.95);
    backdrop-filter: blur(20px);
    padding: 22px 40px;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 999;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.lms-page-title {
    font-size: 32px;
    font-weight: 800;
    margin: 0;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.lms-topbar-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.lms-notification-btn {
    position: relative;
    background: rgba(99, 102, 241, 0.1);
    border: none;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    font-size: 20px;
    color: #667eea;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.lms-notification-btn:hover {
    background: rgba(99, 102, 241, 0.2);
    transform: scale(1.1) rotate(5deg);
    color: #667eea;
    text-decoration: none;
}

.lms-notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    min-width: 20px;
    height: 20px;
    background: #ef4444;
    color: #e9ecef;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    padding: 0 6px;
    border: 2px solid rgba(248, 249, 250, 0.95);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.3); }
}

.lms-user-avatar {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #e9ecef;
    font-weight: 700;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.lms-user-avatar:hover {
    transform: scale(1.15);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.6);
}

/* Content Area - ensure all body text is dark for readability */
.lms-content-area {
    padding: 40px;
    overflow: visible !important;
    color: #1e293b;
}
.lms-activity-card {
    color: #1e293b;
}
/* Prevent clipping of native select dropdowns - forms and flex containers must not clip */
.lms-content-area form,
.lms-activity-card form {
    overflow: visible !important;
}
.lms-activity-card .d-flex {
    overflow: visible !important;
}
/* Filter card: no backdrop-filter to avoid native select dropdown clipping */
.lms-filter-card {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

/* Ensure select dropdowns display properly */
select.form-control {
    position: relative;
    z-index: 9999;
    overflow: visible !important;
    text-overflow: clip !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    display: block !important;
    width: 100% !important;
}

/* Content area selects: use native appearance for reliable dropdown visibility */
.lms-content-area select.form-control,
.lms-content-area select.form-control-sm,
.lms-activity-card select.form-control,
.lms-activity-card select.form-control-sm {
    appearance: auto !important;
    -webkit-appearance: menulist !important;
    -moz-appearance: menulist !important;
    background-color: #fff !important;
    color: #1e293b !important;
    -webkit-text-fill-color: #1e293b !important;
}

select.form-control:focus {
    z-index: 10000;
    outline: none;
    border-color: rgba(16, 185, 129, 0.5) !important;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1) !important;
}

select.form-control option {
    background: #fff !important;
    color: #1e293b !important;
    padding: 10px 12px !important;
    font-size: 14px !important;
    white-space: normal !important;
    word-wrap: break-word !important;
}

/* Selected/highlighted option in open dropdown - dark text for visibility */
select.form-control option:checked,
select.form-control option[selected],
select.form-control option:hover {
    background: #e0e7ff !important;
    color: #1e293b !important;
}

/* Ensure selected value text is visible - override any inherited white/transparent text */
.lms-content-area select.form-control,
.lms-content-area select.form-control-sm,
.lms-activity-card select.form-control,
.lms-activity-card select.form-control-sm {
    color: #1e293b !important;
    -webkit-text-fill-color: #1e293b !important;
    background-color: #fff !important;
}
/* All form controls in dashboard - dark text on light background */
.lms-content-area .form-control,
.lms-content-area .form-control-sm,
.lms-activity-card .form-control,
.lms-activity-card .form-control-sm {
    color: #1e293b !important;
    -webkit-text-fill-color: #1e293b !important;
}

/* Ensure form groups don't clip dropdowns */
.form-group,
.col-md-6,
.col-md-12 {
    overflow: visible;
}

/* ========== Form Design System (Admin Forms) ========== */
.lms-content-area .form-control,
.lms-activity-card .form-control {
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    background: #fff !important;
    color: #1e293b !important;
    -webkit-text-fill-color: #1e293b !important;
    padding: 6px 16px;
    font-size: 15px;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.lms-content-area .form-control:focus,
.lms-activity-card .form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.15);
    outline: none;
}
.lms-content-area .form-control::placeholder,
.lms-activity-card .form-control::placeholder {
    color: #94a3b8;
}

/* Form labels - clear, visible */
.lms-content-area .form-group label,
.lms-content-area .form-label,
.lms-activity-card .form-group label,
.lms-activity-card .form-label,
.lms-form-label {
    color: #1e293b;
    font-weight: 600;
    margin-bottom: 8px;
    display: block;
    font-size: 14px;
}

/* Select dropdowns - force visible text (overrides admin-theme's white color) */
.lms-content-area select.form-control,
.lms-activity-card select.form-control,
select.form-control[name="correct_answer"] {
    background-color: #fff !important;
    color: #1e293b !important;
    -webkit-text-fill-color: #1e293b !important;
    cursor: pointer;
    min-height: 46px;
}

/* Input groups (date/time with icons) */
.lms-content-area .input-group,
.lms-activity-card .input-group {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
}
.lms-content-area .input-group .form-control,
.lms-activity-card .input-group .form-control {
    border: none;
    border-radius: 0;
}
.lms-content-area .input-group-text,
.lms-activity-card .input-group-text {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #64748b;
    padding: 12px 14px;
}

/* Checkbox group (e.g. faculties, days) */
.lms-checkbox-group {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px;
    background: #fff;
    max-height: 200px;
    overflow-y: auto;
}
.lms-checkbox-group .form-check-label {
    color: #1e293b;
    font-weight: 600;
    cursor: pointer;
    font-size: 14px;
}
.lms-checkbox-group .form-check-input {
    cursor: pointer;
}

/* File input */
.lms-content-area input[type="file"].form-control,
.lms-activity-card input[type="file"].form-control {
    padding: 10px;
}
.lms-content-area .custom-file,
.lms-activity-card .custom-file {
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
}
.lms-content-area .custom-file-label,
.lms-activity-card .custom-file-label {
    color: #64748b;
    padding: 12px 16px;
    border-radius: 12px;
}
.lms-content-area .custom-file-input:focus ~ .custom-file-label,
.lms-activity-card .custom-file-input:focus ~ .custom-file-label {
    border-color: #667eea;
}

/* Error alert box */
.lms-alert-danger-box {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 12px;
    padding: 16px;
    color: #dc2626;
    margin-bottom: 24px;
}
.lms-alert-danger-box .fa-exclamation-circle { margin-right: 8px; }

/* Primary / secondary buttons */
.lms-btn-primary-gradient {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border: none;
    color: #fff;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 600;
    transition: transform 0.2s, box-shadow 0.2s;
}
.lms-btn-primary-gradient:hover {
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}
.lms-btn-secondary-outline {
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.3);
    color: #667eea;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.2s;
}
.lms-btn-secondary-outline:hover {
    background: rgba(99, 102, 241, 0.2);
    color: #667eea;
    text-decoration: none;
}

/* Info card (e.g. edit class left panel) */
.lms-detail-card {
    background: linear-gradient(180deg, #ffffff 0%, #fafbff 100%);
    border: 1px solid rgba(99, 102, 241, 0.12);
    border-radius: 12px;
    overflow: hidden;
}
.lms-detail-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 16px;
}
.lms-detail-item:last-child { margin-bottom: 0; }
.lms-detail-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    flex-shrink: 0;
}
.lms-detail-label {
    color: #94a3b8;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 2px;
}
.lms-detail-value {
    color: #334155;
    font-weight: 600;
    font-size: 0.95rem;
}
.lms-detail-badge {
    font-size: 11px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
    background: rgba(16, 185, 129, 0.12);
    color: #059669;
}
.lms-days-checkboxes { gap: 16px; }
.lms-days-checkboxes .form-check { min-width: 120px; }
.lms-days-checkboxes .form-check-label { font-weight: 600; color: #1e293b; }

/* Topic Test Question Cards */
.lms-test-question-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px 24px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.lms-test-option {
    color: #334155;
    padding: 10px 14px;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    font-size: 14px;
}
.lms-test-option-correct {
    background: rgba(16, 185, 129, 0.08);
    border-color: rgba(16, 185, 129, 0.25);
    color: #047857;
    font-weight: 600;
}
.lms-test-option-letter {
    font-weight: 700;
    color: #6366f1;
    margin-right: 6px;
}

/* Required asterisk */
.lms-required { color: #ef4444; }
.d-flex.gap-3 { gap: 1rem; }

/* Welcome Banner */
.lms-welcome-banner {
    background: rgba(248, 249, 250, 0.15);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(248, 249, 250, 0.3);
    border-radius: 25px;
    padding: 45px;
    margin-bottom: 35px;
    color: #e9ecef;
    position: relative;
    overflow: hidden;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.2);
    animation: slideUp 0.6s ease-out;
}

.lms-welcome-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(248,249,250,0.15) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

.lms-welcome-content {
    position: relative;
    z-index: 2;
}

.lms-welcome-title {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 12px;
    text-shadow: 2px 4px 8px rgba(0, 0, 0, 0.3);
    letter-spacing: -1px;
    color: #e9ecef;
}

.lms-welcome-subtitle {
    font-size: 18px;
    opacity: 0.95;
    margin-bottom: 25px;
    font-weight: 500;
    color: #e9ecef;
}

.lms-welcome-stats {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.lms-welcome-stat {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(248, 249, 250, 0.2);
    backdrop-filter: blur(10px);
    padding: 15px 25px;
    border-radius: 15px;
    border: 1px solid rgba(248, 249, 250, 0.3);
    transition: all 0.3s ease;
}

.lms-welcome-stat:hover {
    background: rgba(248, 249, 250, 0.3);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.lms-welcome-stat i {
    font-size: 28px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
    color: #e9ecef;
}

.lms-welcome-stat-text {
    font-size: 15px;
    opacity: 0.95;
    font-weight: 600;
    color: #e9ecef;
}

/* Stats Cards Grid */
.lms-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 25px;
    margin-bottom: 35px;
}

.lms-stat-card {
    background: rgba(248, 249, 250, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(233, 236, 239, 0.3);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    border-left: 5px solid;
    animation: slideUp 0.6s ease-out;
    animation-fill-mode: both;
}

.lms-stat-card:nth-child(1) { animation-delay: 0.1s; }
.lms-stat-card:nth-child(2) { animation-delay: 0.2s; }
.lms-stat-card:nth-child(3) { animation-delay: 0.3s; }
.lms-stat-card:nth-child(4) { animation-delay: 0.4s; }

.lms-stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(40px, -40px);
}

.lms-stat-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    border-color: rgba(248, 249, 250, 0.5);
}

.lms-stat-card.primary { border-left-color: #667eea; }
.lms-stat-card.success { border-left-color: #10b981; }
.lms-stat-card.warning { border-left-color: #f59e0b; }
.lms-stat-card.danger { border-left-color: #ef4444; }

.lms-stat-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
}

.lms-stat-icon {
    width: 70px;
    height: 70px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    position: relative;
    z-index: 2;
    transition: transform 0.3s ease;
}

.lms-stat-card:hover .lms-stat-icon {
    transform: scale(1.1) rotate(5deg);
}

.lms-stat-card.primary .lms-stat-icon {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.2), rgba(118, 75, 162, 0.2));
    color: #667eea;
}

.lms-stat-card.success .lms-stat-icon {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(5, 150, 105, 0.2));
    color: #10b981;
}

.lms-stat-card.warning .lms-stat-icon {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(217, 119, 6, 0.2));
    color: #f59e0b;
}

.lms-stat-card.danger .lms-stat-icon {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.2), rgba(220, 38, 38, 0.2));
    color: #ef4444;
}

.lms-stat-value {
    font-size: 42px;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 8px;
    position: relative;
    z-index: 2;
    background: linear-gradient(135deg, #1e293b, #475569);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.lms-stat-label {
    color: #64748b;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 15px;
    position: relative;
    z-index: 2;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.lms-stat-change {
    font-size: 14px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
    position: relative;
    z-index: 2;
}

.lms-stat-change.positive { color: #10b981; }
.lms-stat-change.negative { color: #ef4444; }

/* Activity Feed */
.lms-activity-card {
    background: rgba(248, 249, 250, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(233, 236, 239, 0.3);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    margin-bottom: 25px;
    animation: slideUp 0.6s ease-out;
    animation-delay: 0.5s;
    animation-fill-mode: both;
    position: relative;
    overflow: visible !important;
}

.lms-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.lms-card-title {
    font-size: 24px;
    font-weight: 800;
    color: #1e293b;
    margin: 0;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.lms-card-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.lms-card-link:hover {
    color: #764ba2;
    text-decoration: none;
    transform: translateX(3px);
}

.lms-activity-item {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
    background: rgba(248, 250, 252, 0.8);
    border: 1px solid rgba(226, 232, 240, 0.5);
}

.lms-activity-item:hover {
    background: rgba(241, 245, 249, 0.9);
    transform: translateX(8px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.lms-activity-avatar {
    width: 55px;
    height: 55px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #f8f9fa;
    font-weight: 700;
    font-size: 20px;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.lms-activity-item:hover .lms-activity-avatar {
    transform: scale(1.1) rotate(5deg);
}

/* Avatar Gradients */
.avatar-gradient-1 {
    background: linear-gradient(135deg, #667eea, #764ba2) !important;
}

.avatar-gradient-2 {
    background: linear-gradient(135deg, #f093fb, #f5576c) !important;
}

.avatar-gradient-3 {
    background: linear-gradient(135deg, #4facfe, #00f2fe) !important;
}

.avatar-gradient-4 {
    background: linear-gradient(135deg, #43e97b, #38f9d7) !important;
}

.lms-activity-content {
    flex: 1;
}

.lms-activity-title {
    font-size: 16px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 6px;
}

.lms-activity-desc {
    font-size: 14px;
    color: #64748b;
    margin-bottom: 6px;
}

.lms-activity-time {
    font-size: 12px;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 5px;
}

.lms-activity-badge {
    padding: 8px 14px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    align-self: flex-start;
}

/* Quick Actions */
.lms-quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.lms-action-btn {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 18px;
    padding: 28px;
    text-align: center;
    cursor: pointer;
    transition: all 0.4s ease;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.lms-action-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lms-action-btn:hover::before {
    opacity: 1;
}

.lms-action-btn:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}

.lms-action-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 18px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: #f8f9fa;
    position: relative;
    z-index: 2;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.lms-action-btn:hover .lms-action-icon {
    transform: scale(1.15) rotate(5deg);
}

.lms-action-btn:nth-child(1) .lms-action-icon {
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.lms-action-btn:nth-child(2) .lms-action-icon {
    background: linear-gradient(135deg, #f093fb, #f5576c);
}

.lms-action-btn:nth-child(3) .lms-action-icon {
    background: linear-gradient(135deg, #4facfe, #00f2fe);
}

.lms-action-btn:nth-child(4) .lms-action-icon {
    background: linear-gradient(135deg, #43e97b, #38f9d7);
}

.lms-action-title {
    font-size: 16px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 6px;
    position: relative;
    z-index: 2;
}

.lms-action-desc {
    font-size: 13px;
    color: #64748b;
    position: relative;
    z-index: 2;
}

/* Invalid Feedback */
.invalid-feedback {
    display: block;
    width: 100%;
    margin-top: 0.25rem;
    font-size: 0.875em;
    color: #ef4444;
}

.text-white {
    color: #f8f9fa !important;
}

/* ========== Users Table Styles ========== */
.lms-users-table tbody tr {
    transition: all 0.3s ease;
}

.lms-users-table tbody tr:hover {
    background: rgba(241, 245, 249, 0.6) !important;
    transform: translateX(4px);
}

.lms-users-table tbody td {
    padding: 20px 15px;
    vertical-align: middle;
    border-bottom: 1px solid rgba(241, 245, 249, 0.8);
}

/* Badge Styles */
.badge-success {
    background: rgba(16, 185, 129, 0.1) !important;
    color: #10b981 !important;
}

.badge-warning {
    background: rgba(245, 158, 11, 0.1) !important;
    color: #f59e0b !important;
}

.badge-danger {
    background: rgba(239, 68, 68, 0.1) !important;
    color: #ef4444 !important;
}

.badge-info {
    background: rgba(59, 130, 246, 0.1) !important;
    color: #3b82f6 !important;
}

.badge-primary {
    background: rgba(99, 102, 241, 0.1) !important;
    color: #667eea !important;
}

/* Responsive */
@media (max-width: 768px) {
    .lms-sidebar {
        transform: translateX(-100%);
    }

    .lms-main-content {
        margin-left: 0;
    }

    .lms-stats-grid {
        grid-template-columns: 1fr;
    }

    .lms-welcome-stats {
        flex-direction: column;
        gap: 15px;
    }

    .lms-welcome-title {
        font-size: 32px;
    }

    .lms-content-area {
        padding: 20px;
    }

    .lms-login-card {
        padding: 35px 25px;
    }

    .lms-title {
        font-size: 32px;
    }

    .lms-logo-wrapper {
        width: 100px;
        height: 100px;
    }

    .lms-logo-wrapper i {
        font-size: 50px;
    }

    .lms-stats-bar {
        flex-direction: column;
        gap: 15px;
    }
}

/* ========== Blade Inline Styles - Extracted ========== */
.lms-btn-gap { gap: 10px; }
.lms-profile-photo {
    width: 130px; height: 130px; border-radius: 50%; object-fit: cover;
    border: 4px solid rgba(99, 102, 241, 0.2); box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}
.lms-profile-avatar-placeholder {
    width: 130px; height: 130px; border-radius: 50%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    display: flex; align-items: center; justify-content: center;
    color: white; font-weight: 700; font-size: 44px; margin: 0 auto;
    border: 4px solid rgba(99, 102, 241, 0.2); box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}
.lms-profile-name { color: #1e293b; font-weight: 700; font-size: 1.5rem; }
.lms-badge-code { background: rgba(99, 102, 241, 0.12); color: #6366f1; font-weight: 600; }
.lms-info-card {
    background: #fff; border: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: 0 1px 3px rgba(0,0,0,0.04); border-radius: 8px;
}
.lms-info-card-header {
    color: #64748b; font-weight: 600; font-size: 11px; text-transform: uppercase;
    letter-spacing: 0.05em; border-bottom: 2px solid rgba(99, 102, 241, 0.15);
}
.lms-info-card-header i { color: #6366f1; }
.lms-field-label { color: #94a3b8; font-size: 11px; text-transform: uppercase; }
.lms-field-value { color: #1e293b; font-weight: 600; font-size: 15px; }
.lms-field-value-lg { color: #1e293b; font-weight: 700; font-size: 18px; }
.lms-text-muted-dash { color: #94a3b8; font-size: 14px; }
.lms-badge-success { background: rgba(16, 185, 129, 0.12); color: #059669; font-weight: 600; }
.lms-badge-danger { background: rgba(239, 68, 68, 0.12); color: #dc2626; font-weight: 600; }
.lms-badge-neutral { background: rgba(148, 163, 184, 0.2); color: #475569; font-weight: 600; }
.lms-link-primary { color: #6366f1; font-weight: 600; text-decoration: none; }
.lms-link-primary:hover { color: #4f46e5; text-decoration: none; }
.lms-table-header th { color: #94a3b8; font-weight: 600; border-bottom: 1px solid #e2e8f0; }
.lms-table-row { border-bottom: 1px solid #f1f5f9; }
.lms-table-row td { color: #1e293b; }
.lms-table-row td.text-secondary { color: #64748b !important; }
.lms-activity-card-rounded { border-radius: 16px; box-shadow: 0 4px 20px rgba(0,0,0,0.06); }
.lms-classes-title { font-weight: 700; color: #1e293b; font-size: 1.4rem; }
.lms-timeline-center-line {
    position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; background: #e2e8f0;
    transform: translateX(-50%); z-index: 0;
}
.lms-timeline-bullet {
    width: 40px; height: 40px; background: #6366f1; border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.2); z-index: 2;
    display: flex; align-items: center; justify-content: center; color: #fff; font-size: 14px;
}
.lms-timeline-card {
    background: #fff; border: 1px solid #e2e8f0; box-shadow: 0 1px 8px rgba(0,0,0,0.04);
    border-radius: 12px; min-height: 100px;
}
.lms-timeline-date { font-weight: 600; color: #64748b; font-size: 12px; margin-bottom: 2px; }
.lms-timeline-bullet-center { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 2; }
.lms-timeline-side { flex: 1; padding: 0 20px; }
.lms-timeline-side-right { order: 3; text-align: right; }
.lms-timeline-side-left { order: 1; text-align: left; }
.lms-timeline-card-wrapper-right { margin-left: auto; }
.lms-timeline-card-wrapper-left { margin-right: auto; }
.lms-timeline-card-wrapper { max-width: 380px; }
.lms-timeline-card-pad-right { padding-right: 130px; }
.lms-timeline-card-pad-left { padding-left: 130px; }
.lms-timeline-spacer { width: 48px; order: 2; }
.lms-timeline-empty-1 { flex: 1; order: 1; }
.lms-timeline-empty-3 { flex: 1; order: 3; }
.lms-timeline-item { z-index: 1; min-height: 120px; }
.lms-timeline-faculty { color: #64748b; font-weight: 600; }
.lms-timeline-faculty i { color: #3b82f6; }
.lms-timeline-title { font-weight: 700; color: #1e293b; font-size: 1.05rem; }
.lms-attendance-badge { width: 26px; height: 26px; font-weight: 700; font-size: 11px; }
.lms-attendance-badge.present { background: #10b981; color: #fff; }
.lms-attendance-badge.absent { background: #ef4444; color: #fff; }
.lms-link-recording { color: #3b82f6; font-weight: 600; text-decoration: none; font-size: 13px; }
.lms-link-recording:hover { color: #2563eb; text-decoration: none; }
.lms-badge-completed { background: #64748b; color: #fff; font-weight: 600; font-size: 11px; }
.lms-lecture-badge-upcoming { background: rgba(16, 185, 129, 0.15); color: #059669; font-weight: 600; }
.lms-lecture-badge-scheduled { background: rgba(59, 130, 246, 0.15); color: #2563eb; font-weight: 600; }
.lms-lecture-badge-completed { background: rgba(148, 163, 184, 0.2); color: #64748b; font-weight: 600; }
.lms-edit-btn-float {
    position: absolute; top: 12px; right: 12px;
    background: rgba(239, 68, 68, 0.12); color: #dc2626; border-radius: 4px; padding: 4px 8px;
}
.lms-notes-pre-wrap { white-space: pre-wrap; }
.lms-lecture-card-box { background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,0.06); }
.lms-lecture-batch-badge { background: #f1f5f9; color: #64748b; font-weight: 500; }
.lms-btn-join-success { background: #10b981 !important; border-color: #10b981 !important; }
.lms-alert-warning {
    background: rgba(245, 158, 11, 0.12); color: #b45309; padding: 8px 10px; border-radius: 8px;
    border: 1px solid rgba(245, 158, 11, 0.3);
}
.flex-grow-1 { flex: 1; }
@media (max-width: 768px) {
    .past-lectures-timeline .timeline-center-line { left: 24px !important; transform: translateX(-50%); }
    .past-lectures-timeline .timeline-item { flex-direction: column !important; align-items: flex-start !important; }
    .past-lectures-timeline .timeline-side { order: 1 !important; width: 100% !important; text-align: left !important; padding-left: 50px !important; padding-right: 0 !important; }
    .past-lectures-timeline .timeline-dot-wrapper { order: 0 !important; position: absolute !important; left: 0 !important; }
    .past-lectures-timeline .timeline-empty { display: none !important; }
    .past-lectures-timeline .timeline-card-wrapper { margin-left: 0 !important; margin-right: 0 !important; max-width: 100% !important; }
}

