@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary-bg: #ffffff;
    --secondary-bg: #f8fafc;
    --card-bg: #ffffff;
    --border-color: #e2e8f0;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --accent-color: #e29d43;
    --accent-hover: #c68532;
    --sidebar-bg: #ffffff;
    --sidebar-active: #e29d43;
    --font-family: 'Cairo', sans-serif;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] {
    --primary-bg: #071e12;
    --secondary-bg: #0d2d1b;
    --card-bg: rgba(13, 45, 27, 0.6);
    --border-color: rgba(255, 255, 255, 0.1);
    --text-primary: #ffffff;
    --text-secondary: #a3c2b2;
    --sidebar-bg: #071e12;
    --sidebar-active: #e29d43;
}

body {
    background-color: var(--primary-bg);
    color: var(--text-primary);
    font-family: var(--font-family);
    direction: rtl;
    text-align: right;
    transition: var(--transition);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Typography & Layout Utilities */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
}

a {
    text-decoration: none;
    transition: var(--transition);
}

.text-accent {
    color: var(--accent-color) !important;
}

/* Custom Gradients */
.bg-gradient-green {
    background: linear-gradient(135deg, #0d3b23 0%, #071e12 100%);
}

.bg-gradient-orange {
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-hover) 100%);
}

/* Navbar Fixed & Scroll Dynamics */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1050;
    background-color: transparent !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar-brand img {
    height: 48px;
    width: auto;
    object-fit: contain;
}

/* Brand Text beside Logo */
.brand-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1.2;
}

.brand-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: #ffffff;
    transition: var(--transition);
}

.brand-subtitle {
    font-size: 0.72rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
}

/* Scrolled Navbar State for Brand Text */
.navbar.navbar-scrolled .brand-title {
    color: #0f172a;
}

.navbar.navbar-scrolled .brand-subtitle {
    color: #64748b;
}

[data-theme="dark"] .navbar.navbar-scrolled .brand-title {
    color: #ffffff;
}

[data-theme="dark"] .navbar.navbar-scrolled .brand-subtitle {
    color: #a3c2b2;
}

.nav-link {
    color: rgba(255, 255, 255, 0.85) !important;
    font-weight: 600;
    margin: 0 0.5rem;
    transition: var(--transition);
}

.nav-link:hover, .nav-link.active {
    color: var(--accent-color) !important;
}

#theme-toggle i {
    color: #ffffff !important;
    transition: var(--transition);
}

/* User Profile Dropdown in Navbar */
.user-dropdown .dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 6px 14px;
    border-radius: 50px;
    color: #ffffff;
    transition: var(--transition);
}

.user-dropdown .dropdown-toggle .text-secondary {
    color: rgba(255, 255, 255, 0.7) !important;
}

.user-dropdown .dropdown-toggle::after {
    display: none;
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 1.5px solid var(--accent-color);
}

.user-avatar-initial {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #fef3c7;
    color: #d97706;
    font-weight: 700;
    font-size: 1.05rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #fde68a;
    flex-shrink: 0;
}

/* Scrolled Navbar State (White Header on Scroll) */
.navbar.navbar-scrolled {
    background-color: rgba(255, 255, 255, 0.96) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid #e2e8f0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 0.6rem 0;
}

.navbar.navbar-scrolled .nav-link {
    color: #1e293b !important;
}

.navbar.navbar-scrolled .nav-link:hover,
.navbar.navbar-scrolled .nav-link.active {
    color: var(--accent-color) !important;
}

.navbar.navbar-scrolled #theme-toggle i {
    color: #1e293b !important;
}

.navbar.navbar-scrolled .user-dropdown .dropdown-toggle {
    background: rgba(0, 0, 0, 0.04);
    border: 1px solid #e2e8f0;
    color: #1e293b;
}

.navbar.navbar-scrolled .user-dropdown .dropdown-toggle .text-secondary {
    color: #64748b !important;
}

/* Scrolled Navbar in Dark Mode */
[data-theme="dark"] .navbar.navbar-scrolled {
    background-color: rgba(7, 30, 18, 0.96) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .navbar.navbar-scrolled .nav-link {
    color: #a3c2b2 !important;
}

[data-theme="dark"] .navbar.navbar-scrolled #theme-toggle i {
    color: #ffc107 !important;
}

[data-theme="dark"] .navbar.navbar-scrolled .user-dropdown .dropdown-toggle {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.dropdown-menu {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.dropdown-item {
    color: var(--text-primary);
    padding: 8px 20px;
    font-weight: 500;
    transition: var(--transition);
}

.dropdown-item:hover {
    background-color: rgba(226, 157, 67, 0.1);
    color: var(--accent-color);
}

.dropdown-item.text-danger:hover {
    background-color: rgba(220, 53, 69, 0.1);
    color: #dc3545 !important;
}

/* Hero Section */
.hero-section {
    position: relative;
    padding-top: 140px;
    padding-bottom: 110px;
    background: linear-gradient(135deg, #0b2516 0%, #071e12 100%);
    color: #ffffff !important;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(rgba(226, 157, 67, 0.15) 1.5px, transparent 1.5px),
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 32px 32px, 64px 64px;
    pointer-events: none;
    opacity: 0.7;
    z-index: 1;
}

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

.hero-section h1 {
    color: var(--accent-color) !important;
}

.hero-section p {
    color: #a3c2b2 !important;
}

/* Hero Wave Bottom Shape */
.hero-wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    z-index: 2;
}

.hero-wave svg {
    position: relative;
    display: block;
    width: 100%;
    height: 70px;
}

.hero-wave .shape-fill {
    fill: var(--primary-bg);
    transition: var(--transition);
}

.hero-tag {
    background: rgba(226, 157, 67, 0.12);
    color: var(--accent-color);
    border: 1px solid rgba(226, 157, 67, 0.25);
    padding: 6px 18px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 1.5rem;
}

/* Buttons */
.btn-accent {
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-hover) 100%);
    color: #ffffff !important;
    border: none;
    font-weight: 700;
    padding: 0.8rem 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(226, 157, 67, 0.3);
    transition: var(--transition);
}

.btn-accent:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(226, 157, 67, 0.5);
}

.btn-outline-green {
    background: transparent;
    color: var(--text-primary) !important;
    border: 1.5px solid var(--accent-color);
    font-weight: 700;
    padding: 0.8rem 2rem;
    border-radius: 8px;
    transition: var(--transition);
}

.btn-outline-green:hover {
    background: rgba(226, 157, 67, 0.1);
    transform: translateY(-2px);
}

.hero-section .btn-outline-green {
    color: #ffffff !important;
    border-color: var(--accent-color);
}

.hero-section .btn-outline-green:hover {
    background: rgba(226, 157, 67, 0.2);
    color: #ffffff !important;
}

/* Statistics Floating Card */
.stats-floating-card {
    background: #0d2d1b !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 20px;
    padding: 2.5rem;
    margin-top: -3rem;
    position: relative;
    z-index: 10;
    box-shadow: 0 15px 35px rgba(0,0,0,0.25);
    color: #ffffff !important;
}

.stat-item {
    text-align: center;
    border-left: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.stat-item:last-child {
    border-left: none !important;
}

.stats-floating-card .text-secondary {
    color: #a3c2b2 !important;
}

.stat-icon {
    width: 50px;
    height: 50px;
    background: rgba(226, 157, 67, 0.1);
    color: var(--accent-color);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin: 0 auto 1rem auto;
    font-size: 1.4rem;
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.2rem;
}

/* Tabs & Subjects Grid */
.nav-pills-custom {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 3rem;
}

.nav-pills-custom .nav-link {
    background: var(--secondary-bg);
    border: 1px solid var(--border-color);
    color: var(--text-secondary) !important;
    border-radius: 50px;
    padding: 8px 24px;
    font-weight: 600;
}

.nav-pills-custom .nav-link.active {
    background: var(--accent-color) !important;
    color: #ffffff !important;
    border-color: var(--accent-color);
}

/* Filter buttons for Courses Page */
.filter-btn {
    background: transparent;
    border: 1px solid var(--border-color, #cbd5e1);
    color: var(--text-secondary, #64748b);
    border-radius: 10px;
    padding: 6px 20px;
    font-weight: 700;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    cursor: pointer;
}

.filter-btn.active {
    background-color: var(--accent-color, #f59e0b) !important;
    color: #ffffff !important;
    border-color: var(--accent-color, #f59e0b) !important;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.25);
}

.btn-arrow-circle {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(226, 157, 67, 0.12);
    color: var(--accent-color, #f59e0b);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    transition: all 0.2s ease;
}

.subject-card:hover .btn-arrow-circle {
    background: var(--accent-color, #f59e0b);
    color: #ffffff;
}

/* Cards & Content */
.subject-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}

.subject-card:hover {
    transform: translateY(-5px);
    border-color: rgba(226, 157, 67, 0.4);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.subject-cover {
    height: 160px;
    background: rgba(255, 255, 255, 0.02);
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid var(--border-color);
    padding: 1.5rem;
}

.subject-cover svg, .subject-cover img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
}

.subject-body {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.subject-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.subject-btn-start {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--accent-color);
    font-weight: 700;
    margin-top: auto;
    font-size: 0.95rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.subject-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(226, 157, 67, 0.15);
    color: var(--accent-color);
    border: 1px solid rgba(226, 157, 67, 0.25);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 50px;
}

/* About/Vision/Values styling */
.about-section {
    padding: 6rem 0;
}

.vision-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    height: 100%;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}

/* Custom About Section from Design */
.about-hero-quote {
    position: relative;
}

.about-hero-quote::before {
    content: "“";
    font-size: 5rem;
    font-family: Georgia, serif;
    color: var(--accent-color);
    opacity: 0.25;
    position: absolute;
    top: -40px;
    right: -20px;
    line-height: 1;
}

.vision-hero-card {
    background: #071e12;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 24px 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    color: #ffffff;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    min-height: 280px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.vision-hero-badge {
    background: rgba(226, 157, 67, 0.15);
    color: #e29d43;
    border: 1px solid rgba(226, 157, 67, 0.3);
    padding: 6px 14px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    align-self: flex-start;
}

.vision-hero-body {
    font-size: 1rem;
    line-height: 1.9;
    color: rgba(255, 255, 255, 0.88);
    margin: 1.5rem 0;
}

.vision-hero-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
}

.sparkle-icon {
    color: #e29d43;
    font-size: 1.2rem;
}

.value-item-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    height: 100%;
    text-align: center;
    transition: var(--transition);
}

.value-item-card .value-icon {
    width: 60px;
    height: 60px;
    background: rgba(226, 157, 67, 0.1);
    color: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem auto;
    font-size: 1.5rem;
}

/* Goals Grid */
.goal-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.goal-number {
    font-size: 3rem;
    font-weight: 900;
    color: rgba(0, 0, 0, 0.05);
    position: absolute;
    bottom: -10px;
    left: 10px;
    transition: var(--transition);
}

[data-theme="dark"] .goal-number {
    color: rgba(255, 255, 255, 0.05);
}

/* CTA Banner */
.cta-banner {
    background: linear-gradient(135deg, #0d3b23 0%, #155c37 100%);
    border-radius: 20px;
    padding: 4rem 2rem;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
    color: #ffffff;
}

/* Footer */
footer {
    background-color: var(--primary-bg);
    border-top: 1px solid var(--border-color);
    padding: 4rem 0 2rem 0;
    margin-top: auto;
}

.footer-logo {
    height: 50px;
    margin-bottom: 1.5rem;
}

.footer-links-title {
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.footer-link-item {
    display: block;
    color: var(--text-secondary);
    margin-bottom: 0.8rem;
}

.footer-link-item:hover {
    color: var(--accent-color);
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-icon-btn {
    width: 38px;
    height: 38px;
    background: rgba(0, 0, 0, 0.05);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

[data-theme="dark"] .social-icon-btn {
    background: rgba(255, 255, 255, 0.05);
}

.social-icon-btn:hover {
    background: var(--accent-color);
    color: #ffffff;
    border-color: var(--accent-color);
}

/* Catalog Search Section */
.catalog-search-wrapper {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 3rem;
}

.catalog-search-input {
    background: var(--primary-bg) !important;
    border: 1px solid var(--border-color) !important;
    color: var(--text-primary) !important;
    border-radius: 8px !important;
    padding: 0.8rem 1.2rem !important;
}

.catalog-search-input:focus {
    border-color: var(--accent-color) !important;
    box-shadow: none !important;
}

.filter-btn {
    background: var(--secondary-bg);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 0.6rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    transition: var(--transition);
}

.filter-btn.active, .filter-btn:hover {
    background: var(--accent-color);
    color: #ffffff;
    border-color: var(--accent-color);
}

/* Contact form card */
.contact-form-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2.5rem;
}

.form-control-custom {
    background: var(--primary-bg) !important;
    border: 1px solid var(--border-color) !important;
    color: var(--text-primary) !important;
    border-radius: 8px !important;
    padding: 0.8rem 1.2rem !important;
}

.form-control-custom:focus {
    border-color: var(--accent-color) !important;
    box-shadow: none !important;
}

.contact-info-widget {
    background: var(--secondary-bg);
    border: 1px solid var(--border-color);
    padding: 2rem;
    border-radius: 16px;
    height: 100%;
}

.contact-info-item {
    display: flex;
    gap: 15px;
    margin-bottom: 1.5rem;
}

.contact-info-icon {
    width: 45px;
    height: 45px;
    background: rgba(226, 157, 67, 0.1);
    color: var(--accent-color);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

/* Auth Layout */
.auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 1rem;
    background: radial-gradient(circle at center, rgba(13, 59, 35, 0.3) 0%, var(--primary-bg) 70%);
}

.auth-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 3rem;
    max-width: 500px;
    width: 100%;
    box-shadow: 0 20px 45px rgba(0,0,0,0.25);
    text-align: center;
}

.auth-card-wide {
    max-width: 900px;
}

.password-input-group {
    position: relative;
}

.password-toggle-btn {
    position: absolute;
    top: 50%;
    left: 15px;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    z-index: 10;
}

/* Sidebar & Dashboard Layout */
.dashboard-wrapper {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 280px !important;
    min-width: 280px !important;
    max-width: 280px !important;
    flex-shrink: 0 !important;
    background-color: var(--sidebar-bg);
    border-left: 1px solid var(--border-color);
    padding: 1.8rem 1.2rem;
    display: flex;
    flex-direction: column;
    height: 100vh;
    position: sticky;
    top: 0;
    overflow-y: auto;
    transition: none;
}

.sidebar-brand a {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 12px !important;
    direction: rtl !important;
}

.sidebar-logo {
    height: 48px;
    width: auto;
    object-fit: contain;
    order: 0 !important;
}

.sidebar-brand .brand-text {
    order: 1 !important;
    text-align: right !important;
}

.sidebar-profile {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 14px !important;
    padding-bottom: 1.2rem;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 1.5rem;
    direction: rtl !important;
}

.sidebar-avatar-circle {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background-color: #fff9ef;
    border: 1px solid rgba(226, 157, 67, 0.3);
    color: var(--accent-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
    order: 0 !important;
}

[data-theme="dark"] .sidebar-avatar-circle {
    background-color: rgba(226, 157, 67, 0.15);
}

.sidebar-profile-info {
    text-align: right !important;
    order: 1 !important;
}

.sidebar-profile-name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.sidebar-profile-phone {
    font-size: 0.82rem;
    color: var(--text-secondary);
}

.sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.sidebar-link {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 12px !important;
    padding: 12px 16px;
    border-radius: 12px;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.98rem;
    transition: var(--transition);
    text-decoration: none;
    direction: rtl !important;
}

.sidebar-link i {
    font-size: 1.25rem;
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    order: 0 !important;
}

.sidebar-link span {
    order: 1 !important;
}

.sidebar-link:hover {
    background-color: rgba(226, 157, 67, 0.1);
    color: var(--accent-color);
}

.sidebar-link.active {
    background: linear-gradient(135deg, #f5a623 0%, #e29d43 100%);
    color: #ffffff !important;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(226, 157, 67, 0.25);
}

.sidebar-link.text-danger {
    color: #ef4444 !important;
}

.sidebar-link.text-danger:hover {
    background-color: rgba(239, 68, 68, 0.08);
}

/* Profile Main Avatar */
.profile-main-avatar {
    width: 90px;
    height: 90px;
    border-radius: 20px;
    background: #fff9ef;
    border: 2px solid rgba(226, 157, 67, 0.4);
    color: var(--accent-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.8rem;
    box-shadow: 0 4px 15px rgba(226, 157, 67, 0.15);
    flex-shrink: 0;
}

[data-theme="dark"] .profile-main-avatar {
    background: rgba(226, 157, 67, 0.15);
}

/* Notifications Card Styling */
.notification-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.2rem 1.5rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    transition: var(--transition);
}

.notification-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.04);
}

.notification-card.unread {
    border-right: 4px solid var(--accent-color);
    background-color: rgba(226, 157, 67, 0.03);
}

.notification-icon-wrapper {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.dashboard-content {
    flex-grow: 1;
    background-color: var(--primary-bg);
    padding: 3rem;
    overflow-y: auto;
}

/* Dashboard statistics widgets */
.dashboard-stat-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.8rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: var(--transition);
}

.dashboard-stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}

/* Progress bar stylings */
.student-subject-card {
    background: #ffffff;
    border: 1px solid #f1f5f9 !important;
    border-radius: 20px !important;
    transition: all 0.3s ease;
    cursor: pointer;
}

.student-subject-card:hover {
    border-color: #fed7aa !important;
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(245, 158, 11, 0.12) !important;
}

.progress-custom {
    height: 8px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 50px;
    overflow: hidden;
}

.progress-bar-custom {
    background-color: var(--accent-color);
    border-radius: 50px;
}

/* Certificate Lock view styling */
.certificate-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.certificate-status-badge {
    background: rgba(226, 157, 67, 0.1);
    color: var(--accent-color);
    border: 1px solid rgba(226, 157, 67, 0.2);
    padding: 6px 14px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.85rem;
}

.certificate-lock-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

/* Profile sections */
.profile-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.profile-detail-item {
    margin-bottom: 1.5rem;
}

.profile-detail-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0.3rem;
}

.profile-detail-value {
    font-weight: 600;
    color: var(--text-primary);
}

/* Mobile Toggles */
.sidebar-toggler {
    display: none;
}

@media (max-width: 991px) {
    .dashboard-wrapper {
        flex-direction: column;
    }
    .sidebar {
        width: 100%;
        border-left: none;
        border-bottom: 1px solid var(--border-color);
        padding: 1.5rem;
    }
    .dashboard-content {
        padding: 1.5rem;
    }
    .stat-item {
        border-left: none;
        border-bottom: 1px solid var(--border-color);
        padding-bottom: 1.5rem;
        margin-bottom: 1.5rem;
    }
    .stat-item:last-child {
        border-bottom: none;
        padding-bottom: 0;
        margin-bottom: 0;
    }
}
