﻿/* ==========================================
   Minimal and harmonic color palette (Design System)
   ========================================== */
:root {
    /* Organizational color spectrum (inspired by Microsoft/Del architecture) */
    --color-primary: #0067b8;
    --color-primary-hover: #005293;
    --color-primary-light: #e6f2fb;
    /* Neutral colors for backgrounds and elements */
    --color-bg-app: #f8f9fa;
    --color-surface: #ffffff;
    --color-border: #e0e0e0;
    /* Typography (text colors) */
    --color-text-main: #202124; /* Deep charcoal instead of pure black */
    --color-text-muted: #5f6368;
    /* Semantic colors for standard soft styles */
    --color-success-text: #0f5132;
    --color-success-bg: #d1e7dd;
    --color-success-border: #badbcc;
    --color-danger-text: #842029;
    --color-danger-bg: #f8d7da;
    --color-danger-border: #f5c2c7;
    /* Modern soft shadows */
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.06);
    --shadow-hover: 0 12px 24px rgba(0,0,0,0.09);
    --radius-md: 12px;
    --radius-lg: 20px;
}

/* ==========================================
   Base styles and typography
   ========================================== */
html, body {
    height: 100%;
}

body {
    margin: 0;
    background-color: var(--color-bg-app);
    font-family: 'Vazirmatn RD', 'IRANSansX', Tahoma, Arial, sans-serif !important;
    font-size: 0.9rem !important;
    color: var(--color-text-main);
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
}

main[role="main"] {
    flex: 1 0 auto;
}

/* ==========================================
   Navigation bar (Navbar) - clean and corporate
   ========================================== */
.lms-navbar {
    background-color: var(--color-surface);
    border-bottom: 1px solid var(--color-border); /* Replacing heavy shadow with a subtle line */
    padding: 12px 0;
    transition: all 0.3s ease;
}

    .lms-navbar .navbar-brand {
        font-weight: 800;
        color: var(--color-primary);
        font-size: 1.4rem;
        letter-spacing: -0.5px;
    }

    .lms-navbar .nav-link {
        color: var(--color-text-muted);
        font-weight: 500;
        transition: color 0.2s ease;
    }

        .lms-navbar .nav-link:hover,
        .lms-navbar .nav-link.active {
            color: var(--color-primary) !important;
        }

/* ==========================================
   Buttons - flat and modern
   ========================================== */
.btn {
    font-weight: 600;
    letter-spacing: 0.2px;
    border: none;
    transition: all 0.2s ease-in-out;
}

.btn-primary {
    background-color: var(--color-primary);
    color: white;
}

    .btn-primary:hover {
        background-color: var(--color-primary-hover);
        transform: translateY(-1px);
        box-shadow: var(--shadow-sm);
    }

.btn-outline-primary {
    color: var(--color-primary);
    background-color: transparent;
    border: 1px solid var(--color-primary);
}

    .btn-outline-primary:hover {
        background-color: var(--color-primary-light);
        color: var(--color-primary);
        border-color: transparent;
    }

/* ==========================================
   Cards - no excessive border styling
   ========================================== */
.card, .feature-card {
    background: var(--color-surface);
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    overflow: hidden;
}

    .card:hover, .feature-card:hover {
        transform: translateY(-4px);
        box-shadow: var(--shadow-hover);
        border-color: transparent;
    }

/* ==========================================
   System messages (Alerts) - soft harmonic colors
   ========================================== */
.alert {
    border-radius: var(--radius-md);
    border: 1px solid transparent;
    padding: 1rem 1.25rem;
    font-weight: 500;
    display: flex;
    align-items: center;
}

/* Success message */
.alert-success {
    background-color: var(--color-success-bg);
    color: var(--color-success-text);
    border-color: var(--color-success-border);
}

/* Warning/error message */
.alert-danger {
    background-color: var(--color-danger-bg);
    color: var(--color-danger-text);
    border-color: var(--color-danger-border);
}

.alert i {
    font-size: 1.2rem;
    margin-left: 8px; /* Spacing between the icon and text in right-to-left layout */
}

/* ==========================================
   Badges - soft and readable
   ========================================== */
.badge.bg-primary.bg-opacity-10 {
    background-color: var(--color-primary-light) !important;
    color: var(--color-primary) !important;
    border: none !important;
}

/* ==========================================
   Footer
   ========================================== */
.lms-footer {
    background-color: var(--color-surface);
    border-top: 1px solid var(--color-border);
    color: var(--color-text-muted);
    padding: 30px 0 20px;
    margin-top: 50px;
    flex-shrink: 0;
}

    .lms-footer a {
        color: var(--color-text-muted);
        text-decoration: none;
        transition: color 0.2s ease;
    }

        .lms-footer a:hover {
            color: var(--color-primary);
        }


/* ==========================================
   Landing page styles (Hero & Features)
   ========================================== */
.landing-wrapper {
    margin-top: -1.5rem;
}

.hero-section {
    background: linear-gradient(135deg, #13294b 0%, #1e3c72 100%); /* Deep navy blue */
    padding: 6rem 0 7rem;
    position: relative;
    overflow: hidden;
    border-bottom-left-radius: 2rem;
    border-bottom-right-radius: 2rem;
    margin-bottom: 4rem;
}

.text-gradient-light {
    background: linear-gradient(135deg, #d4af37 0%, #ffffff 100%); /* Gold and white blend */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .hover-lift:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 25px rgba(0,0,0,0.1) !important;
    }

/* Modern and minimal styles for feature cards */
.feature-card-premium {
    background: #ffffff;
    border-radius: 8px; /* Logical and engineering-friendly curve */
    padding: 2.5rem 2rem;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    height: 100%;
}

    .feature-card-premium:hover {
        border-color: #cbd5e1;
        box-shadow: 0 10px 30px rgba(0,0,0,0.04);
        transform: translateY(-4px);
    }

.icon-box {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease;
}

.feature-card-premium:hover .icon-box {
    transform: scale(1.05);
}

.bg-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    z-index: 0;
    opacity: 0.2;
}

.shape-1 {
    width: 400px;
    height: 400px;
    background: #d4af37;
    top: -100px;
    right: -100px;
}

.shape-2 {
    width: 300px;
    height: 300px;
    background: #ffffff;
    bottom: -50px;
    left: -50px;
}

@keyframes pulse-live {
    0% {
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.5);
    }

    70% {
        box-shadow: 0 0 0 8px rgba(220, 53, 69, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0);
    }
}

.pulse-animation {
    animation: pulse-live 2s infinite;
}

/* ==========================================
   Account lock page
   ========================================== */
.lockedout-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}

.lockedout-shell {
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 0;
}

.lockedout-card {
    width: min(100%, 560px);
    margin: 0 auto;
    text-align: center;
    direction: rtl;
}

.lockedout-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 103, 184, 0.04), transparent 45%, rgba(0, 103, 184, 0.03));
    pointer-events: none;
}

.lockedout-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    background: var(--color-primary-light);
    color: var(--color-primary);
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.lockedout-icon {
    width: 78px;
    height: 78px;
    margin: 0 auto 1.25rem;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(145deg, #fef4e8 0%, #fbe5c4 100%);
    color: #b06100;
    font-size: 2rem;
    box-shadow: inset 0 0 0 1px rgba(176, 97, 0, 0.12);
}

.lockedout-title {
    font-size: clamp(1.4rem, 2vw, 1.9rem);
    font-weight: 800;
    color: var(--color-primary);
    margin-bottom: 0.75rem;
}

.lockedout-message {
    font-size: 1rem;
    line-height: 2;
    color: var(--color-text-muted);
    margin-bottom: 1.5rem;
}

.persian-numbers {
    font-family: 'Vazirmatn RD', 'IRANSansX', Tahoma, Arial, sans-serif;
    font-feature-settings: "ss01";
    font-variant-numeric: tabular-nums;
}

.lockedout-actions .btn {
    min-width: 220px;
}

/* ==========================================
   Styles for login and password recovery pages
   ========================================== */
.auth-page {
    background: linear-gradient(135deg, #f4f7fb 0%, #eef4fb 100%);
    min-height: 100vh;
}

.auth-shell {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}

.auth-card {
    width: min(100%, 480px);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.auth-card-header {
    padding: 2rem 2rem 1rem;
    background: linear-gradient(135deg, var(--color-primary-light) 0%, #f8fbff 100%);
    border-bottom: 1px solid var(--color-border);
}

.auth-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 0.75rem;
}

.auth-brand-badge {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--color-surface);
    color: var(--color-primary);
    border: 1px solid rgba(0, 103, 184, 0.12);
    font-size: 1.2rem;
}

.auth-title {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--color-primary);
}

.auth-subtitle {
    margin: 0.25rem 0 0;
    color: var(--color-text-muted);
    font-size: 0.95rem;
    line-height: 1.75;
}

.auth-card-body {
    padding: 1.5rem 2rem 2rem;
}

.auth-form .form-label {
    font-weight: 600;
    color: var(--color-text-main);
}

.auth-form .form-control {
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 0.8rem 1rem;
    background-color: #fcfdff;
}

.auth-form .form-control:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 0.2rem rgba(0, 103, 184, 0.12);
}

.auth-form .btn {
    width: 100%;
    padding: 0.8rem 1rem;
    border-radius: 999px;
}

.auth-footer-links {
    margin-top: 1rem;
    text-align: center;
}

.auth-link {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 600;
}

.auth-link:hover {
    color: var(--color-primary-hover);
    text-decoration: underline;
}