﻿:root {
    --accounting-blue: #1a365d;
    --quantum-cyan: #00aa9e;
    --success-green: #2d6a4f;
    --bg-light: #f8fafc;
    --sidebar-width: 280px;
}

:root {
    /* اللون الرئيسي المستوحى من الشعار */
    --quantum-primary: #00aa9e;
    --quantum-dark: #0f172a;
    --quantum-secondary: #1e293b;
    --sidebar-bg: #ffffff;
    --content-bg: #f8fafc;
    --text-main: #334155;
    --glass: rgba(255, 255, 255, 0.1);
}

body {
    font-family: 'Tajawal', sans-serif;
    background-color: var(--bg-light);
    color: #334155;
    scroll-behavior: smooth;
}

/* Navbar */
.navbar {
    background-color: rgba(26, 54, 93, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid var(--quantum-cyan);
    z-index: 1050;
}
.existedimage{
    width:100vh;
}
.smallexistedimage {
    width: 40vh;
}
.navbar-brand {
    font-weight: 700;
    font-size: 1.4rem;
}

/* View Management */
.view-section {
    display: none;
}

    .view-section.active {
        display: block;
    }

/* Hero Section */
.hero-accounting {
    background: linear-gradient(135deg, rgba(26, 54, 93, 0.9) 0%, rgba(42, 105, 172, 0.9) 100%), url('https://images.unsplash.com/photo-1460925895917-afdab827c52f?auto=format&fit=crop&w=1600');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    padding: 10px 0;
    position: relative;
}

.hero-content {
    background: rgba(0, 0, 0, 0.2);
    padding: 10px;
    border-radius: 30px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Category Icons Grid */
.cat-icon {
    width: 95px;
    height: 95px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 12px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.cat-item {
    margin-bottom: 25px;
    transition: 0.3s;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
}

    .cat-item:hover .cat-icon {
        background: var(--quantum-cyan);
        color: white;
        transform: scale(1.1) rotate(5deg);
    }

/* Module Sub-page Layout */
.module-header {
    background: var(--accounting-blue);
    color: white;
    padding: 40px 0;
    margin-bottom: 30px;
}

.sidebar-menu {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    position: sticky;
    top: 100px;
}

    .sidebar-menu .list-group-item {
        border: none;
        padding: 15px 20px;
        transition: 0.3s;
        font-weight: 600;
    }

        .sidebar-menu .list-group-item:hover {
            background-color: var(--bg-light);
            color: var(--quantum-cyan);
            padding-right: 25px;
        }

        .sidebar-menu .list-group-item.active {
            background-color: var(--quantum-cyan);
            color: white;
        }

.sidebar-header {
    background: #f1f5f9;
    padding: 15px 20px;
    font-weight: bold;
    color: var(--accounting-blue);
    border-bottom: 1px solid #e2e8f0;
}

/* Cards */
.card-lesson {
    border: none;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: 0.3s;
}

    .card-lesson:hover {
        transform: translateY(-5px);
    }

.scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 2rem;
    animation: bounce 2s infinite;
}

.navbar-logo {
    height: 75px;
    width: auto;
    transition: transform 0.3s ease;
}

    .navbar-logo:hover {
        transform: scale(1.05);
    }

.btn-quantum {
    background-color: var(--quantum-primary);
    color: white;
    border-radius: 10px;
    padding: 8px 20px;
    font-weight: 600;
    border: none;
}

    .btn-quantum:hover {
        background-color: #0284c7;
        color: white;
    }
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0) translateX(-50%);
    }

    40% {
        transform: translateY(-10px) translateX(-50%);
    }
}
