* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
    transition: background 0.5s ease, color 0.5s ease;
    position: relative;
    overflow-x: hidden;
    padding-top: 80px;
}

    /* Animated Gradient Background */
    body::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        /* background: linear-gradient(45deg, #667eea 0%, #764ba2 25%, #f093fb 50%, #4facfe 75%, #00f2fe 100%); */
        /* background: linear-gradient(45deg, #6ea3fb 0%, #22edff 25%, #eaf2f3 50%, #6ea3fb 75%, #eaf2f3 100%); */
        background: linear-gradient(#619dff 50%, #eaf2f3 100%);
        background-size: 400% 400%;
        animation: gradientShift 15s ease infinite;
        z-index: -1;
        transition: opacity 0.5s ease;
    }

    body.dark-mode::before {
        background: linear-gradient(45deg, #1a1a2e 0%, #16213e 25%, #0f3460 50%, #1a1a2e 75%, #16213e 100%);
    }

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Navbar Styles */
.glass-navbar {
    background: linear-gradient(0deg, #2563ff00 30%, #2563ff8a, rgba(37, 99, 255, 0.7) 70%);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(255, 255, 255, 0.2) inset;
    padding: 1rem 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    transition: all 0.3s ease;
    height: 100px;
}

body.dark-mode .glass-navbar {
    background: linear-gradient(0deg, #2563ff00 30%, #16213c78, #16213c 70%);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.navbar-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

/* Logo/Brand Center */
.navbar-brand {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 0.2rem;
    text-decoration: none;
    color: #fff;
    font-size: 1.5rem;
    font-weight: 700;
    transition: all 0.3s ease;
}

    .navbar-brand:hover {
        color: #fff;
        transform: translateX(-50%) scale(1.05);
    }

.brand-logo {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}

/* Desktop Buttons */
.navbar-buttons {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-left: auto;
}

.glass-btn {
    padding: 0.6rem 1.5rem;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    color: #fff;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-block;
}

    .glass-btn:hover {
        background: rgba(255, 255, 255, 0.3);
        border-color: rgba(255, 255, 255, 0.5);
        color: #fff;
        transform: translateY(-2px);
        box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
    }

body.dark-mode .glass-btn {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

    body.dark-mode .glass-btn:hover {
        background: rgba(255, 255, 255, 0.2);
    }

.btn-register {
    background: linear-gradient(135deg, #667eea 0%, #2563ff 100%);
    border: none;
}

/* Dark Mode Toggle */
.theme-toggle {
    position: relative;
    width: 60px;
    height: 30px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    padding: 0 4px;
    margin-right: 1rem;
    overflow: hidden;
}

    .theme-toggle::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: radial-gradient(circle at center, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
        opacity: 0;
        transition: opacity 0.3s ease;
        pointer-events: none;
    }

    .theme-toggle:hover::before {
        animation: ripple 0.6s ease-out;
    }

@keyframes ripple {
    0% {
        opacity: 1;
        transform: scale(0);
    }

    100% {
        opacity: 0;
        transform: scale(2);
    }
}

body.dark-mode .theme-toggle {
    background: rgba(0, 0, 0, 0.3);
}

.toggle-slider {
    width: 22px;
    height: 22px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

body.dark-mode .toggle-slider {
    transform: translateX(30px);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    transition: all 0.3s ease;
    z-index: 10001;
    position: relative;
}

    .hamburger:hover {
        background: rgba(255, 255, 255, 0.3);
    }

body.dark-mode .hamburger {
    background: rgba(255, 255, 255, 0.1);
}

    body.dark-mode .hamburger:hover {
        background: rgba(255, 255, 255, 0.2);
    }

.hamburger span {
    width: 25px;
    height: 3px;
    background: #fff;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Mobile Menu Overlay */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 9997;
}

    .menu-overlay.show {
        opacity: 1;
        visibility: visible;
    }

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(255, 255, 255, 0.2) inset;
    padding: 5rem 1.5rem 2rem;
    transition: right 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 9998;
    overflow-y: auto;
}

body.dark-mode .mobile-menu {
    background: rgba(0, 0, 0, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.1) inset;
}

.mobile-menu.show {
    right: 0;
}

.mobile-menu-items {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

    .mobile-menu-items .glass-btn {
        width: 100%;
        text-align: center;
    }

/* Content Demo */
.content-demo {
    max-width: 1200px;
    margin: 4rem auto;
    padding: 0 2rem;
}

.demo-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(255, 255, 255, 0.2) inset;
    color: #fff;
    margin-bottom: 2rem;
    transition: all 0.3s ease;
}

body.dark-mode .demo-card {
    background: rgba(0, 0, 0, 0.3);
}

.demo-card h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.demo-card p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
}

/* Responsive */
@media (max-width: 992px) {
    .navbar-buttons {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .navbar-brand {
        position: static;
        transform: none;
    }

        .navbar-brand:hover {
            transform: scale(1.05);
        }

    .theme-toggle {
        margin-right: 20x;
        margin-left: auto;
    }
}

@media (max-width: 576px) {
    .navbar-container {
        padding: 0 1rem;
    }

    .navbar-brand {
        font-size: 1.1rem;
    }

    .brand-logo {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }

    .mobile-menu {
        width: 100%;
    }

    .demo-card {
        padding: 2rem 1.5rem;
    }

        .demo-card h2 {
            font-size: 2rem;
        }
}

.glass-navbar {
    /* إزالة أي إحساس بالفصل */
    box-shadow: none;
    border: none;
    transition: all 0.3s ease;
}

/* Navbar For Dashbard */
.nav-links-responsive {
    display: flex;
    gap: 10px;
    transition: all 0.3s ease;
    margin-right: -42px;
}

/* من 1200 لحد 992 تصغير */
@media (max-width: 1200px) {
    .nav-links-responsive {
        gap: 2px;
        transform: scale(0.9);
    }
}

/* عند 992 تختفي */
@media (max-width: 992px) {
    .nav-links-responsive {
        display: none;
    }
}

/* Drob List */
/* شكل اللينكات */
.nav-links-responsive a {
    text-decoration: none;
    color: #f5f5f5;
    font-size: 16px;
    font-weight: 500;
    padding: 6px 10px;
    border-radius: 10px;
    transition: color 0.3s ease, background 0.3s ease, transform 0.25s ease;
}

    /* Hover – يبان إن ده لينك */
    .nav-links-responsive a:hover {
        color: #ffffff;
        background: rgba(255, 255, 255, 0.15);
        transform: scale(1.08);
    }

    /* Active – لحظة الضغط */
    .nav-links-responsive a:active {
        transform: scale(0.95);
        background: rgba(255, 255, 255, 0.25);
    }

.dropdown {
    position: relative;
}

/* button */
.dropdown-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

/* menu hidden */
.dropdown-menu {
    position: absolute;
    top: 120%;
    right: 0;
    /* RTL */
    background: white;
    min-width: 300px;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 999;
    max-height: 250px;
    overflow-x: scroll;
}

/* hover show */
.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* items */
.dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    text-decoration: none;
    color: #333;
}

    .dropdown-menu a:hover {
        background: rgba(255, 255, 255, 0.4);
        color: black;
    }


.logo-text-wrapper {
    width: 110%;
    height: 110%;
    display: block;
    object-fit: contain;
    flex-shrink: 0;
}
