/* Premium Admin Dashboard - Light Gold Glassmorphism Theme */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
    /* Light Theme & Gold Accents */
    --primary-bg: #f8fafc;
    --gradient-bg: #f1f5f9; 
    --glass-bg: rgba(255, 255, 255, 0.65); /* More opaque for light mode glass */
    --glass-border: rgba(255, 255, 255, 0.8);
    --accent: #d4af37; /* Premium Gold */
    --accent-hover: #b5952f;
    --text-main: #1e293b; /* Dark text for readability */
    --text-muted: #64748b;
    --focus-ring: rgba(212, 175, 55, 0.3);
    --error: #ef4444;
    --success: #10b981;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Outfit', -apple-system, sans-serif;
    background: var(--gradient-bg);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative; 
    overflow-x: hidden;
    font-size: 14px; /* Scaled down base font size */
}

/* Background Glowing Orbs for the Glass Effect */
body::before, body::after {
    content: '';
    position: fixed;
    border-radius: 50%;
    z-index: -1; 
}

/* Top Left Gold Glow */
body::before {
    width: 350px;
    height: 350px;
    background: rgba(212, 175, 55, 0.15); /* Soft gold */
    top: -50px;
    left: -50px;
    filter: blur(80px); 
}

/* Bottom Right Soft White Glow */
body::after {
    width: 450px;
    height: 450px;
    background: rgba(255, 255, 255, 0.8); 
    bottom: -100px;
    right: -50px;
    filter: blur(90px);
}

.extLMS-container {
    width: 100%;
    max-width: 1100px; /* Slightly narrower */
    margin: 0 auto;
    padding: 15px; /* Reduced padding */
}

/* Brand Header */
.admin-brand {
    text-align: center;
    margin: 30px 0; /* Reduced margin */
    animation: fadeInDown 0.8s ease;
}

.brand-logo {
    width: 80px; /* Scaled down from 100px */
    height: 80px;
    object-fit: contain;
    filter: drop-shadow(0 4px 12px rgba(212, 175, 55, 0.3));
    margin-bottom: 10px;
    transition: transform 0.3s ease;
}

.brand-logo:hover {
    transform: scale(1.05);
}

.brand-title {
    font-size: 26px; /* Scaled down from 32px */
    font-weight: 700;
    margin: 0;
    letter-spacing: 0.5px;
    color: var(--text-main);
}

.brand-title .highlight {
    color: var(--accent);
}

/* Glass Panels */
.admin-login-box, .admin-form-container, .dashboard-container {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 12px; /* Slightly softer corners */
    padding: 30px; /* Reduced padding from 40px */
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.05); /* Softer, lighter shadow */
    animation: fadeInUp 0.6s ease;
}

.admin-login-box {
    max-width: 380px; /* Scaled down from 420px */
    margin: 0 auto;
}

.admin-form-container {
    max-width: 750px;
    margin: 0 auto;
}

.dashboard-container {
    max-width: 850px;
    margin: 0 auto;
}

/* Typography */
.page-title {
    font-size: 22px; /* Scaled down from 24px */
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text-main);
}

.text-center { text-align: center; }

/* Forms */
.form-row {
    margin-bottom: 20px; /* Reduced from 24px */
    position: relative;
}

.form-row label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px; /* Scaled down from 14px */
    font-weight: 600;
    color: var(--text-muted);
    transition: color 0.3s;
}

.form-row input[type="text"],
.form-row input[type="date"],
.form-row input[type="password"] {
    width: 100%;
    background: rgba(255, 255, 255, 0.6); /* Light input backgrounds */
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 6px;
    padding: 12px 14px; /* Reduced padding */
    font-size: 14px; /* Scaled down from 15px */
    color: var(--text-main);
    box-sizing: border-box;
    transition: all 0.3s ease;
    font-family: 'Outfit', sans-serif;
}

.form-row input::placeholder {
    color: #94a3b8;
}

.form-row input:focus {
    border-color: var(--accent);
    outline: none;
    box-shadow: 0 0 0 4px var(--focus-ring);
    background: #ffffff;
}

.form-row input:focus + label {
    color: var(--accent);
}

/* Buttons */
.btn-submit {
    background: linear-gradient(135deg, var(--accent) 0%, #b5952f 100%);
    color: #ffffff; /* White text on gold looks very premium */
    padding: 12px 20px; /* Reduced padding */
    border: none;
    border-radius: 6px;
    font-size: 15px; /* Scaled down */
    font-weight: 600;
    width: 100%;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.2);
    font-family: 'Outfit', sans-serif;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.35);
}

.btn-submit:active {
    transform: translateY(0);
}

/* Headers & Links */
.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding-bottom: 15px;
    margin-bottom: 25px;
}

.admin-header .page-title {
    margin: 0;
}

.btn-logout {
    color: #ef4444;
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    padding: 6px 12px;
    border-radius: 6px;
    background: rgba(239, 68, 68, 0.1);
    transition: all 0.3s ease;
}

.btn-logout:hover {
    background: rgba(239, 68, 68, 0.15);
    transform: scale(1.05);
}

/* Dashboard Cards */
.profile-card {
    background: rgba(255, 255, 255, 0.4);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    padding: 20px 25px; /* Reduced padding */
    margin-bottom: 25px;
    border-left: 4px solid var(--accent);
}

.profile-card h3 {
    margin-top: 0;
    font-size: 18px; /* Scaled down */
    color: var(--text-main);
    margin-bottom: 15px;
}

.profile-card p {
    margin: 8px 0;
    font-size: 14px;
    color: var(--text-muted);
}

.profile-card strong {
    color: var(--text-main);
    display: inline-block;
    width: 100px; /* Scaled down */
}

.action-cards {
    display: flex;
    gap: 15px; /* Scaled down */
    flex-wrap: wrap;
}

.action-card {
    flex: 1;
    min-width: 220px;
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    padding: 20px 15px; /* Scaled down */
    text-decoration: none;
    color: var(--text-main);
    font-weight: 600;
    font-size: 16px; /* Scaled down */
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.action-card::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 50%; height: 100%;
    background: linear-gradient(to right, transparent, rgba(255,255,255,0.6), transparent);
    transform: skewX(-25deg);
    transition: left 0.5s ease;
}

.action-card:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    color: var(--accent);
}

.action-card:hover::before {
    left: 150%;
}

/* Alerts */
.alert {
    padding: 12px 16px; /* Scaled down */
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 14px;
    font-weight: 500;
    border: 1px solid transparent;
}

.alert-success {
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.2);
    color: #059669; /* Darker green for light mode */
}

.alert-danger {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.2);
    color: #dc2626; /* Darker red for light mode */
}

/* Animations */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-15px); }
    to { opacity: 1; transform: translateY(0); }
}


/* DROPDOWN */

/* Dropdown (Section) Styling */
.form-row select {
    width: 100%;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 6px;
    padding: 12px 14px;
    font-size: 14px;
    color: var(--text-main);
    box-sizing: border-box;
    transition: all 0.3s ease;
    font-family: 'Outfit', sans-serif;
    appearance: none; /* removes default OS styling */
    cursor: pointer;

    /* Custom dropdown arrow */
    background-image: url("data:image/svg+xml;utf8,<svg fill='%2364748b' height='20' viewBox='0 0 20 20' width='20' xmlns='http://www.w3.org/2000/svg'><path d='M5.5 7l4.5 5 4.5-5z'/></svg>");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
}

/* Focus effect same as inputs */
.form-row select:focus {
    border-color: var(--accent);
    outline: none;
    box-shadow: 0 0 0 4px var(--focus-ring);
    background-color: #ffffff;
}

/* Hover effect */
.form-row select:hover {
    border-color: var(--accent-hover);
}