/* ====================================
   KPSS Hazırlık - Custom Styles
   ==================================== */

:root {
    --brand-ink: #1f1a17;
    --brand-cream: #f6f1e8;
    --brand-cream-strong: #efe7da;
    --brand-primary: #0f766e;
    --brand-primary-strong: #0b5d56;
    --brand-primary-deep: #083f3b;
    --brand-accent: #f59e0b;
    --brand-accent-strong: #d97706;
    --brand-ocean: #0ea5a4;
    --brand-sky: #38bdf8;
    --brand-sun: #f97316;

    --surface-0: #fdfaf4;
    --surface-1: #f6f1e8;
    --surface-2: #ffffff;
    --surface-3: #efe7da;
    --border-soft: rgba(15, 23, 42, 0.08);
    --shadow-soft: 0 18px 45px rgba(15, 118, 110, 0.12);
    --shadow-strong: 0 28px 60px rgba(15, 118, 110, 0.2);

    --gradient-hero: linear-gradient(135deg, #0f766e 0%, #0b5d56 55%, #083f3b 100%);
    --gradient-hero-strong: linear-gradient(135deg, #0b5d56 0%, #083f3b 100%);
    --gradient-hero-soft: linear-gradient(135deg, rgba(15, 118, 110, 0.12) 0%, rgba(11, 93, 86, 0.12) 100%);
    --gradient-sunrise: linear-gradient(135deg, #f59e0b 0%, #f97316 100%);
    --gradient-forest: linear-gradient(135deg, #16a34a 0%, #0f766e 100%);
    --gradient-ocean: linear-gradient(135deg, #0ea5a4 0%, #38bdf8 100%);
    --gradient-ember: linear-gradient(135deg, #f97316 0%, #ea580c 100%);

    --primary-color: var(--brand-primary);
    --secondary-color: #6b7280;
    --success-color: #16a34a;
    --danger-color: #dc2626;
    --warning-color: var(--brand-accent);
    --info-color: var(--brand-ocean);
    --light-color: var(--brand-cream);
    --dark-color: #111827;

    --font-heading: 'Fraunces', serif;
    --font-body: 'Manrope', sans-serif;

    --bs-primary: var(--brand-primary);
    --bs-primary-rgb: 15, 118, 110;
    --bs-secondary: #6b7280;
    --bs-secondary-rgb: 107, 114, 128;
    --bs-success: #16a34a;
    --bs-success-rgb: 22, 163, 74;
    --bs-warning: var(--brand-accent);
    --bs-warning-rgb: 245, 158, 11;
    --bs-danger: #dc2626;
    --bs-danger-rgb: 220, 38, 38;
    --bs-info: var(--brand-ocean);
    --bs-info-rgb: 14, 165, 164;
    --bs-border-radius: 0.75rem;
    --bs-border-radius-lg: 1rem;
    --bs-border-radius-sm: 0.5rem;
    --bs-body-font-family: var(--font-body);
    --bs-body-color: #1f2937;
    --bs-body-bg: var(--surface-0);
    --bs-link-color: var(--brand-primary);
    --bs-border-color: var(--border-soft);
}

/* Global Styles */
body {
    font-family: var(--font-body);
    color: var(--bs-body-color);
    line-height: 1.6;
    background-color: var(--surface-0);
    background-image:
        radial-gradient(circle at 10% 10%, rgba(245, 158, 11, 0.14), transparent 45%),
        radial-gradient(circle at 90% 0%, rgba(15, 118, 110, 0.16), transparent 50%),
        radial-gradient(circle at 85% 85%, rgba(14, 165, 164, 0.12), transparent 45%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.65), rgba(255, 255, 255, 0));
}

body.bg-light {
    background-image: none;
    background-color: var(--surface-3);
}

h1,
h2,
h3,
h4,
h5,
h6,
.display-4,
.display-5,
.navbar-brand {
    font-family: var(--font-heading);
    letter-spacing: 0.01em;
}

a {
    transition: all 0.3s ease;
}

.bg-light {
    background-color: var(--surface-1) !important;
}

/* Hero Section */
.hero-section {
    background: var(--gradient-hero);
    min-height: 500px;
    position: relative;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120'%3E%3Cpath d='M321.39 56.44c58-10.79 114.16-30.13 172-41.86 82.39-16.72 168.19-17.73 250.45-.39C823.78 31 906.67 72 985.66 92.83c70.05 18.48 146.53 26.09 214.34 3V0H0v27.35a600.21 600.21 0 00321.39 29.09z' fill='rgba(255,255,255,0.05)'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: bottom;
    background-size: cover;
    pointer-events: none;
}

.hero-section h1 {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.hero-search .input-group {
    background: rgba(255, 255, 255, 0.92);
    border-radius: 999px;
    padding: 6px;
    box-shadow: 0 16px 35px rgba(15, 118, 110, 0.2);
    display: flex;
    align-items: center;
}

.hero-search .form-control {
    background: transparent;
    font-weight: 500;
    border: none;
}

.hero-search .form-control:focus {
    box-shadow: none;
}

.hero-search .input-group-text {
    padding: 0.5rem 1rem;
}

.hero-search .btn {
    border-radius: 999px;
    padding: 0.75rem 1.5rem;
    white-space: nowrap;
    font-weight: 600;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 420px;
    height: 420px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.35) 0%, rgba(245, 158, 11, 0) 70%);
    z-index: 1;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: -40%;
    left: -10%;
    width: 520px;
    height: 520px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0) 70%);
    z-index: 1;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-illustration {
    animation: float 6s ease-in-out infinite;
    filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.18));
}

/* Cards */
.card {
    border-radius: 16px;
    border: 1px solid var(--border-soft);
    background-color: var(--surface-2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover,
.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-strong) !important;
}

.card-img-top {
    transition: transform 0.3s ease;
    border-top-left-radius: inherit;
    border-top-right-radius: inherit;
}

.card:hover .card-img-top {
    transform: scale(1.05);
}

/* Buttons */
.btn {
    transition: all 0.3s ease;
    font-weight: 500;
    border-radius: 12px;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.btn-primary {
    background: var(--gradient-hero);
    border: none;
}

.btn-primary:hover {
    background: var(--gradient-hero-strong);
}

.btn-outline-primary {
    border-color: var(--brand-primary);
    color: var(--brand-primary);
}

.btn-outline-primary:hover {
    background: var(--brand-primary);
    border-color: var(--brand-primary);
}

/* Navbar */
.navbar {
    box-shadow: 0 12px 30px rgba(15, 118, 110, 0.18);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.navbar.bg-primary {
    background: var(--gradient-hero) !important;
}

.navbar-brand {
    font-size: 1.5rem;
}

.navbar .nav-link {
    position: relative;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
}

.navbar .nav-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0;
    height: 2px;
    background: rgba(255, 255, 255, 0.7);
    transition: width 0.2s ease;
}

.navbar .nav-link:hover::after,
.navbar .nav-link.active::after {
    width: 100%;
}

/* Footer */
footer a:hover {
    color: #fff !important;
}

/* Social Links */
.social-links .btn {
    width: 40px;
    height: 40px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Feature Icons */
.feature-icon {
    transition: transform 0.3s ease;
}

.feature-icon:hover {
    transform: translateY(-6px) rotate(-3deg);
}

/* Badge */
.badge {
    font-weight: 500;
    padding: 0.375rem 0.75rem;
    border-radius: 999px;
}

/* Alerts */
.alert {
    border-radius: 10px;
    border: none;
}

/* Forms */
.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.15);
}

/* Contact Page */
.contact-hero {
    position: relative;
    padding: 4.5rem 0 3.5rem;
    background: linear-gradient(120deg, rgba(15, 118, 110, 0.18), rgba(245, 158, 11, 0.12));
    border-bottom: 1px solid rgba(17, 24, 39, 0.08);
    overflow: hidden;
}

.contact-hero::before {
    content: '';
    position: absolute;
    top: -140px;
    right: -120px;
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.35), rgba(245, 158, 11, 0));
    z-index: 0;
}

.contact-hero::after {
    content: '';
    position: absolute;
    bottom: -200px;
    left: -140px;
    width: 380px;
    height: 380px;
    background: radial-gradient(circle, rgba(15, 118, 110, 0.25), rgba(15, 118, 110, 0));
    z-index: 0;
}

.contact-hero .container {
    position: relative;
    z-index: 1;
}

.contact-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    background: rgba(15, 118, 110, 0.15);
    color: var(--brand-primary);
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.contact-pills {
    align-items: center;
}

.contact-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.95rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(15, 118, 110, 0.15);
    font-weight: 600;
    color: #1f2937;
    box-shadow: 0 12px 24px rgba(15, 118, 110, 0.08);
}

.contact-pill i {
    color: var(--brand-primary);
}

.contact-hero-card {
    position: relative;
    padding: 2rem;
    border-radius: 22px;
    background: linear-gradient(135deg, #0f766e 0%, #0b5d56 70%, #083f3b 100%);
    color: #fff;
    box-shadow: 0 24px 50px rgba(11, 93, 86, 0.35);
    overflow: hidden;
    isolation: isolate;
}

.contact-hero-card::after {
    content: '';
    position: absolute;
    top: -30%;
    right: -20%;
    width: 240px;
    height: 240px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.45), rgba(245, 158, 11, 0));
    z-index: 0;
}

.contact-hero-card>* {
    position: relative;
    z-index: 1;
}

.contact-hero-icon {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.18);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.contact-hero-card .btn {
    border-radius: 999px;
}

.contact-hero-card .btn-outline-light {
    border-color: rgba(255, 255, 255, 0.6);
    color: #fff;
}

.contact-hero-card .btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

.contact-body {
    padding: 3.5rem 0 4.5rem;
}

.contact-card {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(17, 24, 39, 0.08);
    border-radius: 20px;
    padding: 1.75rem;
    box-shadow: 0 24px 60px rgba(15, 118, 110, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-card:not(.contact-form-card):hover {
    transform: translateY(-4px);
    box-shadow: 0 30px 70px rgba(15, 118, 110, 0.12);
}

.contact-form-card {
    padding: 2.5rem;
}

.contact-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.75rem;
}

.contact-icon-bubble {
    width: 54px;
    height: 54px;
    border-radius: 16px;
    background: rgba(15, 118, 110, 0.12);
    color: var(--brand-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}

.contact-form .form-label {
    font-weight: 600;
    color: #334155;
}

.contact-form .contact-input {
    border-radius: 14px;
    border: 1px solid rgba(17, 24, 39, 0.12);
    padding: 0.75rem 1rem;
    background: #fff;
}

.contact-form .contact-input:focus {
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 0.2rem rgba(15, 118, 110, 0.18);
}

.contact-note {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.85rem;
    border-radius: 999px;
    background: rgba(15, 118, 110, 0.08);
    color: #475569;
    font-size: 0.9rem;
    font-weight: 500;
}

.contact-stack {
    display: grid;
    gap: 1.25rem;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 0.85rem 0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.35);
}

.contact-info-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.contact-info-icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: rgba(15, 118, 110, 0.12);
    color: var(--brand-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.contact-hours {
    display: grid;
    gap: 0.75rem;
    font-weight: 600;
    color: #1f2937;
}

.contact-hours li {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.contact-hours span:last-child {
    font-weight: 500;
    color: #64748b;
}

.contact-social-btn {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    border: 1px solid rgba(15, 118, 110, 0.2);
    color: var(--brand-primary);
    background: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.contact-social-btn:hover {
    transform: translateY(-3px);
    background: var(--brand-primary);
    border-color: var(--brand-primary);
    color: #fff;
    box-shadow: 0 16px 30px rgba(15, 118, 110, 0.25);
}

/* Lessons Page */
.lessons-hero {
    position: relative;
    padding: 4.5rem 0 4rem;
    background: linear-gradient(135deg, #0f766e 0%, #0b5d56 50%, #083f3b 100%);
    color: #fff;
    overflow: hidden;
}

.lessons-hero::before {
    content: '';
    position: absolute;
    top: -160px;
    right: -120px;
    width: 360px;
    height: 360px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.35), rgba(245, 158, 11, 0));
    z-index: 0;
}

.lessons-hero::after {
    content: '';
    position: absolute;
    bottom: -220px;
    left: -160px;
    width: 420px;
    height: 420px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0));
    z-index: 0;
}

.lessons-hero .container {
    position: relative;
    z-index: 1;
}

.lessons-hero .text-muted {
    color: rgba(255, 255, 255, 0.78) !important;
}

.lessons-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.95rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.lessons-eyebrow-dark {
    background: rgba(15, 118, 110, 0.12);
    color: var(--brand-primary);
}

.lessons-search .input-group {
    background: #fff;
    border-radius: 999px;
    padding: 6px;
    box-shadow: 0 18px 40px rgba(15, 118, 110, 0.25);
}

.lessons-search .input-group-text {
    background: transparent;
    border: none;
    color: #94a3b8;
}

.lessons-search .form-control {
    border: none;
    font-weight: 500;
}

.lessons-search .form-control:focus {
    box-shadow: none;
}

.lessons-search .btn {
    border-radius: 999px;
    padding: 0.65rem 1.5rem;
}

.lessons-quick-filters .text-muted {
    color: rgba(255, 255, 255, 0.7) !important;
}

.lessons-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
    font-weight: 500;
    font-size: 0.85rem;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.lessons-chip:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.22);
    color: #fff;
}

.lessons-chip.active {
    background: #fff;
    color: #0f766e;
    border-color: transparent;
    box-shadow: 0 12px 25px rgba(15, 118, 110, 0.25);
}

.lessons-hero-panel {
    position: relative;
    padding: 2rem;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(6px);
    overflow: hidden;
    isolation: isolate;
}

.lessons-hero-panel::after {
    content: '';
    position: absolute;
    bottom: -45%;
    right: -35%;
    width: 240px;
    height: 240px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.4), rgba(245, 158, 11, 0));
    z-index: 0;
}

.lessons-hero-panel>* {
    position: relative;
    z-index: 1;
}

.lessons-hero-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
}

.lessons-hero-metric {
    background: rgba(255, 255, 255, 0.16);
    border-radius: 14px;
    padding: 0.85rem;
    text-align: center;
}

.lessons-hero-metric .metric-label {
    display: block;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    opacity: 0.7;
}

.lessons-hero-metric .metric-value {
    font-size: 1.4rem;
    font-weight: 700;
    font-family: var(--font-heading);
}

.lessons-hero-list {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
    display: grid;
    gap: 0.65rem;
}

.lessons-hero-list i {
    color: var(--brand-accent);
    margin-right: 0.4rem;
}

.lessons-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.lessons-hero-actions .btn {
    border-radius: 999px;
}

.lessons-section {
    padding: 3.5rem 0;
}

.lessons-filter-card {
    border-radius: 18px;
}

.lessons-filter-icon {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: rgba(15, 118, 110, 0.12);
    color: var(--brand-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.lessons-list-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.lessons-active-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.lessons-filter-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.75rem;
    border-radius: 999px;
    background: rgba(15, 118, 110, 0.1);
    color: #0f766e;
    font-size: 0.85rem;
    text-decoration: none;
    border: 1px solid rgba(15, 118, 110, 0.2);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.lessons-filter-pill:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(15, 118, 110, 0.12);
    color: #0f766e;
}

.lessons-filter-pill i {
    font-size: 0.75rem;
}

.lessons-empty {
    text-align: center;
    background: #fff;
    border-radius: 20px;
    padding: 3rem 2rem;
    border: 1px solid rgba(17, 24, 39, 0.08);
    box-shadow: 0 24px 50px rgba(15, 118, 110, 0.08);
}

.lessons-empty-icon {
    width: 72px;
    height: 72px;
    border-radius: 22px;
    background: rgba(15, 118, 110, 0.12);
    color: var(--brand-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 1.25rem;
}

.lessons-path {
    position: relative;
    padding: 4rem 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(246, 241, 232, 0.95));
    overflow: hidden;
}

.lessons-path::before {
    content: '';
    position: absolute;
    top: -120px;
    right: -80px;
    width: 260px;
    height: 260px;
    background: radial-gradient(circle, rgba(15, 118, 110, 0.18), rgba(15, 118, 110, 0));
}

.lessons-path::after {
    content: '';
    position: absolute;
    bottom: -160px;
    left: -120px;
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.2), rgba(245, 158, 11, 0));
}

.lessons-path .container {
    position: relative;
    z-index: 1;
}

.lessons-path-card {
    background: #fff;
    border-radius: 18px;
    padding: 1.5rem;
    border: 1px solid rgba(17, 24, 39, 0.08);
    box-shadow: 0 18px 45px rgba(15, 118, 110, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.lessons-path-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 55px rgba(15, 118, 110, 0.12);
}

.lessons-path-icon {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: rgba(15, 118, 110, 0.12);
    color: var(--brand-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.lessons-cta {
    padding: 3.5rem 0 5rem;
}

.lessons-cta-card {
    position: relative;
    background: linear-gradient(120deg, rgba(15, 118, 110, 0.12), rgba(245, 158, 11, 0.2));
    border-radius: 24px;
    padding: 2.5rem;
    border: 1px solid rgba(15, 118, 110, 0.12);
    overflow: hidden;
}

.lessons-cta-card::after {
    content: '';
    position: absolute;
    top: -40%;
    right: -20%;
    width: 260px;
    height: 260px;
    background: radial-gradient(circle, rgba(15, 118, 110, 0.25), rgba(15, 118, 110, 0));
}

.lessons-cta-card>* {
    position: relative;
    z-index: 1;
}

/* Admin Sidebar */
.admin-sidebar {
    min-height: 100vh;
    background: linear-gradient(180deg, #0f766e 0%, #0b5d56 60%, #083f3b 100%);
    color: #fff;
    box-shadow: 12px 0 30px rgba(15, 118, 110, 0.2);
}

.admin-sidebar .nav-link {
    color: rgba(255, 255, 255, 0.7);
    padding: 1rem 1.5rem;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.admin-sidebar .nav-link:hover,
.admin-sidebar .nav-link.active {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    border-left-color: var(--primary-color);
}

.admin-sidebar .nav-link i {
    width: 20px;
    margin-right: 10px;
}

/* Dashboard Cards */
.dashboard-card {
    border-left: 4px solid;
    transition: transform 0.3s ease;
}

.dashboard-card:hover {
    transform: translateX(5px);
}

.dashboard-card.primary {
    border-left-color: var(--primary-color);
}

.dashboard-card.success {
    border-left-color: var(--success-color);
}

.dashboard-card.warning {
    border-left-color: var(--warning-color);
}

.dashboard-card.danger {
    border-left-color: var(--danger-color);
}

/* Table */
.table-hover tbody tr {
    transition: background-color 0.2s ease;
}

/* Test Question Card */
.question-card {
    border: 2px solid #dee2e6;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.question-card.selected {
    border-color: var(--primary-color);
    background-color: rgba(13, 110, 253, 0.05);
}

.option-label {
    cursor: pointer;
    padding: 1rem;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    transition: all 0.2s ease;
    display: block;
}

.option-label:hover {
    border-color: var(--primary-color);
    background-color: rgba(13, 110, 253, 0.05);
}

.option-label input[type="radio"]:checked~.option-text {
    color: var(--primary-color);
    font-weight: 600;
}

/* Progress Bar */
.progress {
    height: 25px;
    border-radius: 10px;
}

.progress-bar {
    font-size: 14px;
    font-weight: 500;
}

/* Video Player */
.video-player-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
}

.video-player-wrapper iframe,
.video-player-wrapper video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Pagination */
.pagination {
    margin-top: 2rem;
}

.page-link {
    color: var(--primary-color);
}

.page-item.active .page-link {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Utilities */
.text-truncate-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.text-truncate-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Blog Card Hover Effects */
.hover-lift {
    transition: all 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15) !important;
}

.hover-lift:hover img {
    transform: scale(1.05);
}

.hover-primary:hover {
    color: var(--primary-color) !important;
}

/* Loading Spinner */
.spinner-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 200px;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section {
        text-align: center;
    }

    .hero-section h1 {
        font-size: 2rem;
    }

    .admin-sidebar {
        min-height: auto;
    }
}

@media (max-width: 991.98px) {
    .contact-hero {
        text-align: center;
    }

    .contact-pills {
        justify-content: center;
    }

    .lessons-hero {
        text-align: center;
    }

    .lessons-hero-actions {
        justify-content: center;
    }

    .lessons-hero-panel {
        margin-top: 1.5rem;
    }
}

@media (max-width: 576px) {
    .contact-form-card {
        padding: 1.75rem;
    }

    .contact-card {
        padding: 1.5rem;
    }

    .contact-hero-card {
        padding: 1.5rem;
    }

    .contact-hours li {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.2rem;
    }

    .lessons-search .input-group {
        flex-wrap: wrap;
        border-radius: 18px;
    }

    .lessons-search .btn {
        width: 100%;
    }

    .lessons-hero-metrics {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    .stagger>* {
        animation: none;
        opacity: 1;
        transform: none;
    }

    .hero-illustration {
        animation: none;
    }

    .card,
    .btn,
    .feature-icon,
    .contact-card,
    .contact-social-btn,
    .lessons-chip,
    .lessons-filter-pill,
    .lessons-path-card {
        transition: none;
    }
}

/* Blog Content Styling */
.blog-content {
    font-size: 1.1rem;
    line-height: 1.8;
}

.blog-content h2,
.blog-content h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: bold;
}

.blog-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1.5rem 0;
}

.blog-content blockquote {
    border-left: 4px solid var(--primary-color);
    padding-left: 1.5rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: #666;
}

.blog-content code {
    background: #f4f4f4;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
}

.blog-content pre {
    background: #f4f4f4;
    padding: 1rem;
    border-radius: 8px;
    overflow-x: auto;
}

/* Lesson Content Styling */
.lesson-content {
    line-height: 1.7;
}

.lesson-content ul,
.lesson-content ol {
    padding-left: 2rem;
}

/* Test Results */
.result-card {
    border: 2px solid;
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.result-card.correct {
    border-color: var(--success-color);
    background: rgba(25, 135, 84, 0.05);
}

.result-card.wrong {
    border-color: var(--danger-color);
    background: rgba(220, 53, 69, 0.05);
}

.result-card.empty {
    border-color: var(--warning-color);
    background: rgba(255, 193, 7, 0.05);
}

/* Statistics Cards */
.stat-card {
    text-align: center;
    padding: 2rem;
    border-radius: 16px;
    background: linear-gradient(135deg, #0f766e 0%, #0b5d56 70%, #083f3b 100%);
    color: white;
    transition: transform 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-card::after {
    content: '';
    position: absolute;
    top: -30%;
    right: -20%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.35) 0%, rgba(245, 158, 11, 0) 70%);
}

.stat-card .stat-value {
    font-size: 3rem;
    font-weight: bold;
    margin: 1rem 0;
}

.stat-card .stat-label {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Chart Container */
.chart-container {
    position: relative;
    height: 300px;
}

/* User Avatar */
.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.user-avatar-lg {
    width: 100px;
    height: 100px;
}

/* Timeline */
.timeline {
    position: relative;
    padding-left: 30px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 10px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #dee2e6;
}

.timeline-item {
    position: relative;
    padding-bottom: 2rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -25px;
    top: 5px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--primary-color);
    border: 3px solid white;
    box-shadow: 0 0 0 2px #dee2e6;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
}

.empty-state i {
    font-size: 4rem;
    color: #dee2e6;
    margin-bottom: 1rem;
}

/* Loading State */
.skeleton {
    animation: skeleton-loading 1s linear infinite alternate;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
}

@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
}

/* ====================================
   PREMIUM STYLES
   ==================================== */

.premium-badge {
    background: var(--gradient-sunrise);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.premium-card {
    position: relative;
    overflow: hidden;
}

.premium-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #f59e0b, #f97316, #f59e0b);
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* Streak Badge */
.streak-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    border-radius: 999px;
    font-weight: 600;
}

.streak-badge.inactive {
    background: #9ca3af;
}

/* Notification Badge */
.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 20px;
    height: 20px;
    background: #ef4444;
    color: white;
    border-radius: 50%;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

/* User Stats Card */
.user-stat-card {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.user-stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.user-stat-card .stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.5rem;
}

.user-stat-card .stat-value {
    font-size: 2rem;
    font-weight: 700;
    font-family: var(--font-heading);
}

/* Progress Ring */
.progress-ring {
    transform: rotate(-90deg);
}

.progress-ring__circle {
    transition: stroke-dashoffset 0.5s ease;
}

/* Leaderboard */
.leaderboard-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    background: white;
    border-radius: 12px;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}

.leaderboard-item:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.leaderboard-item .rank {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-right: 1rem;
}

.leaderboard-item .rank.gold {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: white;
}

.leaderboard-item .rank.silver {
    background: linear-gradient(135deg, #e5e7eb, #9ca3af);
    color: white;
}

.leaderboard-item .rank.bronze {
    background: linear-gradient(135deg, #f97316, #ea580c);
    color: white;
}

/* Badge Collection */
.badge-item {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.badge-item:hover {
    transform: scale(1.1);
}

.badge-item.locked {
    opacity: 0.3;
    filter: grayscale(100%);
}

/* Daily Limit Indicator */
.limit-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 999px;
    font-size: 0.875rem;
}

.limit-indicator .limit-bar {
    width: 100px;
    height: 6px;
    background: #e5e7eb;
    border-radius: 999px;
    overflow: hidden;
}

.limit-indicator .limit-bar-fill {
    height: 100%;
    border-radius: 999px;
    transition: width 0.3s ease;
}

.limit-indicator .limit-bar-fill.low {
    background: #ef4444;
}

.limit-indicator .limit-bar-fill.medium {
    background: #f59e0b;
}

.limit-indicator .limit-bar-fill.high {
    background: #22c55e;
}

/* SEO Friendly - Skip Link */
.skip-link {
    position: absolute;
    top: -100px;
    left: 0;
    background: var(--brand-primary);
    color: white;
    padding: 1rem;
    z-index: 10000;
    transition: top 0.3s;
}

.skip-link:focus {
    top: 0;
}

/* Print Styles */
@media print {

    .navbar,
    footer,
    .btn,
    .no-print {
        display: none !important;
    }

    body {
        background: white !important;
    }

    .card {
        border: 1px solid #ddd !important;
        box-shadow: none !important;
    }
}

/* ====================================
   Enhanced Animations & Utilities
   ==================================== */

/* Float Animation */
@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

.animate-float {
    animation: float 4s ease-in-out infinite;
}

/* Pulse Animation */
@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.05);
        opacity: 0.9;
    }
}

.animate-pulse {
    animation: pulse 2s ease-in-out infinite;
}

/* Bounce Animation */
@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    25% {
        transform: translateY(-8px);
    }

    50% {
        transform: translateY(0);
    }

    75% {
        transform: translateY(-4px);
    }
}

.animate-bounce {
    animation: bounce 1.5s ease-in-out infinite;
}

/* Fade In Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 0.6s ease-out forwards;
}

/* Slide Up Animation */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-slide-up {
    animation: slideUp 0.5s ease-out forwards;
}

/* Glow Effect */
@keyframes glow {

    0%,
    100% {
        box-shadow: 0 0 5px rgba(14, 165, 164, 0.35);
    }

    50% {
        box-shadow: 0 0 20px rgba(14, 165, 164, 0.7), 0 0 30px rgba(14, 165, 164, 0.35);
    }
}

.animate-glow {
    animation: glow 2s ease-in-out infinite;
}

/* Hover Lift Effect */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-strong) !important;
}

/* Stagger Animation for Lists */
.stagger>* {
    opacity: 0;
    animation: slideUp 0.5s ease-out forwards;
}

.stagger>*:nth-child(1) {
    animation-delay: 0.1s;
}

.stagger>*:nth-child(2) {
    animation-delay: 0.2s;
}

.stagger>*:nth-child(3) {
    animation-delay: 0.3s;
}

.stagger>*:nth-child(4) {
    animation-delay: 0.4s;
}

.stagger>*:nth-child(5) {
    animation-delay: 0.5s;
}

.stagger>*:nth-child(6) {
    animation-delay: 0.6s;
}

.stagger>*:nth-child(7) {
    animation-delay: 0.7s;
}

.stagger>*:nth-child(8) {
    animation-delay: 0.8s;
}

/* Gradient Text */
.gradient-text {
    background: var(--gradient-ocean);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Gradient Backgrounds */
.bg-gradient-hero {
    background: var(--gradient-hero) !important;
}

.bg-gradient-sunrise {
    background: var(--gradient-sunrise) !important;
}

.bg-gradient-ocean {
    background: var(--gradient-ocean) !important;
}

.bg-gradient-forest {
    background: var(--gradient-forest) !important;
}

.bg-gradient-ember {
    background: var(--gradient-ember) !important;
}

.bg-gradient-primary {
    background: var(--gradient-hero) !important;
}

.bg-gradient-success {
    background: var(--gradient-forest) !important;
}

.bg-gradient-warning {
    background: var(--gradient-sunrise) !important;
}

.bg-gradient-info {
    background: var(--gradient-ocean) !important;
}

/* Glassmorphism Effect */
.glass {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.glass-dark {
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Focus Styles for Accessibility */
*:focus-visible {
    outline: 2px solid var(--brand-primary);
    outline-offset: 2px;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--gradient-ocean);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--brand-primary-strong);
}

/* Loading Skeleton */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
}

@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* Premium Badge Style */
.premium-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.35rem 0.85rem;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #fff;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
}

/* Countdown Timer Style */
.countdown-box {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1rem;
    text-align: center;
    min-width: 70px;
}

.countdown-box .number {
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1;
}

.countdown-box .label {
    font-size: 0.7rem;
    text-transform: uppercase;
    opacity: 0.7;
}

/* ====================================
   DARK MODE SUPPORT
   ==================================== */

/* Dark Mode Variables */
[data-theme="dark"] {
    --brand-ink: #e5e7eb;
    --brand-cream: #111827;
    --brand-cream-strong: #1f2937;
    --surface-0: #0f172a;
    --surface-1: #111827;
    --surface-2: #1f2937;
    --surface-3: #1f2937;
    --border-soft: rgba(255, 255, 255, 0.12);
    --gradient-hero: linear-gradient(135deg, #0f766e 0%, #0b5d56 60%, #052f2b 100%);
    --gradient-hero-strong: linear-gradient(135deg, #0b5d56 0%, #052f2b 100%);
    --gradient-hero-soft: linear-gradient(135deg, rgba(15, 118, 110, 0.18) 0%, rgba(11, 93, 86, 0.18) 100%);
    --gradient-sunrise: linear-gradient(135deg, #d97706 0%, #b45309 100%);
    --gradient-forest: linear-gradient(135deg, #15803d 0%, #0f766e 100%);
    --gradient-ocean: linear-gradient(135deg, #0ea5a4 0%, #0f766e 100%);
    --gradient-ember: linear-gradient(135deg, #f97316 0%, #c2410c 100%);
    --bs-body-color: #e5e7eb;
    --bs-body-bg: #111827;

    color-scheme: dark;
}

[data-theme="dark"] body {
    background-color: var(--surface-0);
    background-image:
        radial-gradient(circle at 10% 10%, rgba(245, 158, 11, 0.08), transparent 45%),
        radial-gradient(circle at 90% 0%, rgba(15, 118, 110, 0.12), transparent 50%);
    color: var(--bs-body-color);
}

[data-theme="dark"] .bg-light {
    background-color: var(--surface-2) !important;
}

[data-theme="dark"] .bg-white {
    background-color: #1f2937 !important;
}

[data-theme="dark"] .card {
    background-color: #1f2937;
    border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .card-header,
[data-theme="dark"] .card-footer {
    background-color: #1f2937 !important;
    border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .text-dark {
    color: #e5e7eb !important;
}

[data-theme="dark"] .text-muted {
    color: #9ca3af !important;
}

[data-theme="dark"] .border {
    border-color: rgba(255, 255, 255, 0.1) !important;
}

[data-theme="dark"] .table {
    --bs-table-bg: transparent;
    --bs-table-striped-bg: rgba(255, 255, 255, 0.05);
    --bs-table-hover-bg: rgba(255, 255, 255, 0.075);
    color: #e5e7eb;
}

[data-theme="dark"] .table-light {
    --bs-table-bg: #374151;
    --bs-table-border-color: #4b5563;
    color: #e5e7eb;
}

[data-theme="dark"] .dropdown-menu {
    background-color: #1f2937;
    border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .dropdown-item {
    color: #e5e7eb;
}

[data-theme="dark"] .dropdown-item:hover {
    background-color: #374151;
    color: #fff;
}

[data-theme="dark"] .form-control,
[data-theme="dark"] .form-select {
    background-color: #374151;
    border-color: #4b5563;
    color: #e5e7eb;
}

[data-theme="dark"] .form-control:focus,
[data-theme="dark"] .form-select:focus {
    background-color: #374151;
    border-color: var(--brand-primary);
    color: #e5e7eb;
}

[data-theme="dark"] .form-control::placeholder {
    color: #9ca3af;
}

[data-theme="dark"] .modal-content {
    background-color: #1f2937;
    border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .modal-header,
[data-theme="dark"] .modal-footer {
    border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
}

[data-theme="dark"] .alert {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .skeleton {
    background: linear-gradient(90deg, #374151 25%, #4b5563 50%, #374151 75%);
    background-size: 200% 100%;
}

[data-theme="dark"] ::-webkit-scrollbar-track {
    background: #1f2937;
}

/* Theme Toggle Button */
.theme-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    background: var(--gradient-ocean);
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(14, 165, 164, 0.35);
    transition: all 0.3s ease;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(14, 165, 164, 0.45);
}

.theme-toggle .fa-sun {
    display: none;
}

[data-theme="dark"] .theme-toggle .fa-moon {
    display: none;
}

[data-theme="dark"] .theme-toggle .fa-sun {
    display: inline-block;
}

/* ====================================
   TOAST NOTIFICATIONS
   ==================================== */

.toast-container {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 1100;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 350px;
}

.toast-notification {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    animation: slideInRight 0.3s ease-out;
    position: relative;
    overflow: hidden;
}

[data-theme="dark"] .toast-notification {
    background: #1f2937;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.toast-notification::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
}

.toast-notification.toast-success::before {
    background: var(--success-color);
}

.toast-notification.toast-error::before {
    background: var(--danger-color);
}

.toast-notification.toast-warning::before {
    background: var(--warning-color);
}

.toast-notification.toast-info::before {
    background: var(--info-color);
}

.toast-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.toast-success .toast-icon {
    background: rgba(22, 163, 74, 0.15);
    color: var(--success-color);
}

.toast-error .toast-icon {
    background: rgba(220, 38, 38, 0.15);
    color: var(--danger-color);
}

.toast-warning .toast-icon {
    background: rgba(245, 158, 11, 0.15);
    color: var(--warning-color);
}

.toast-info .toast-icon {
    background: rgba(14, 165, 164, 0.15);
    color: var(--info-color);
}

.toast-content {
    flex: 1;
}

.toast-title {
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 2px;
}

.toast-message {
    font-size: 0.85rem;
    color: #6b7280;
}

[data-theme="dark"] .toast-message {
    color: #9ca3af;
}

.toast-close {
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
    color: #9ca3af;
    transition: color 0.2s;
}

.toast-close:hover {
    color: #6b7280;
}

.toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: var(--brand-primary);
    animation: toast-progress 5s linear forwards;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }

    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

@keyframes toast-progress {
    from {
        width: 100%;
    }

    to {
        width: 0%;
    }
}

/* ====================================
   ADDITIONAL UI ENHANCEMENTS
   ==================================== */

/* Floating Action Button */
.fab {
    position: fixed;
    bottom: 80px;
    right: 20px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-primary-strong) 100%);
    color: #fff;
    font-size: 1.4rem;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(15, 118, 110, 0.4);
    transition: all 0.3s ease;
    z-index: 999;
    display: none;
}

@media (max-width: 768px) {
    .fab {
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

.fab:hover {
    transform: scale(1.1);
}

/* Pulse Animation for Notifications */
.pulse {
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }
}

/* Shake Animation for Errors */
.shake {
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-5px);
    }

    50% {
        transform: translateX(5px);
    }

    75% {
        transform: translateX(-5px);
    }
}

/* Fade In Up Animation */
.fade-in-up {
    animation: fadeInUp 0.5s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Progress Ring */
.progress-ring {
    transform: rotate(-90deg);
}

.progress-ring__circle {
    transition: stroke-dashoffset 0.5s ease;
}

/* Badge Pulse */
.badge-pulse {
    position: relative;
}

.badge-pulse::after {
    content: '';
    position: absolute;
    top: -2px;
    right: -2px;
    width: 10px;
    height: 10px;
    background: var(--danger-color);
    border-radius: 50%;
    animation: badge-pulse 1.5s ease-in-out infinite;
}

@keyframes badge-pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.3);
        opacity: 0.7;
    }
}

/* Improved Link Underline Effect */
.link-underline {
    position: relative;
    text-decoration: none;
}

.link-underline::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--brand-primary);
    transition: width 0.3s ease;
}

.link-underline:hover::after {
    width: 100%;
}

/* Card Ribbon */
.card-ribbon {
    position: absolute;
    top: 12px;
    right: -8px;
    padding: 4px 12px 4px 8px;
    background: linear-gradient(135deg, var(--brand-accent) 0%, var(--brand-accent-strong) 100%);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 4px 0 0 4px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.card-ribbon::after {
    content: '';
    position: absolute;
    right: 0;
    bottom: -8px;
    border: 4px solid transparent;
    border-top-color: var(--brand-accent-strong);
    border-right-color: var(--brand-accent-strong);
}

/* Responsive Adjustments */
@media (max-width: 576px) {
    .theme-toggle {
        bottom: 15px;
        right: 15px;
        width: 44px;
        height: 44px;
        font-size: 1rem;
    }

    .toast-container {
        left: 10px;
        right: 10px;
        max-width: none;
    }
}
