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

:root {
    /* Theme Colors (Curated HSL) */
    --bg-dark: hsl(230, 28%, 6%);
    --bg-card: hsla(230, 25%, 10%, 0.65);
    --bg-card-hover: hsla(230, 25%, 14%, 0.85);
    --primary: hsl(268, 90%, 64%);
    --primary-glow: hsla(268, 90%, 64%, 0.35);
    --secondary: hsl(192, 95%, 50%);
    --secondary-glow: hsla(192, 95%, 50%, 0.25);
    --accent: hsl(145, 85%, 48%);
    --accent-glow: hsla(145, 85%, 48%, 0.2);
    --danger: hsl(350, 85%, 60%);
    --text-primary: hsl(210, 20%, 98%);
    --text-secondary: hsl(220, 14%, 74%);
    --text-muted: hsl(220, 10%, 50%);
    --border-color: hsla(230, 20%, 18%, 0.6);
    --border-active: hsla(268, 90%, 64%, 0.5);
    --glass-blur: blur(16px);
    --transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
    
    /* Layout Backgrounds */
    --bg-header: hsla(230, 28%, 6%, 0.7);
    --bg-sidebar: hsla(230, 25%, 5%, 0.85);
    
    /* Layout Shadows */
    --shadow-img: rgba(0, 0, 0, 0.4);
}

body.light-theme {
    /* Theme Colors (Curated HSL) - Light Mode */
    --bg-dark: hsl(220, 25%, 97%);
    --bg-card: hsla(220, 25%, 100%, 0.85);
    --bg-card-hover: hsla(220, 25%, 100%, 0.98);
    --primary: hsl(268, 85%, 55%);
    --primary-glow: hsla(268, 85%, 55%, 0.15);
    --secondary: hsl(192, 90%, 42%);
    --secondary-glow: hsla(192, 90%, 42%, 0.1);
    --accent: hsl(145, 80%, 38%);
    --accent-glow: hsla(145, 80%, 38%, 0.1);
    --text-primary: hsl(220, 25%, 12%);
    --text-secondary: hsl(220, 15%, 35%);
    --text-muted: hsl(220, 10%, 55%);
    --border-color: hsla(220, 20%, 84%, 0.8);
    --border-active: hsla(268, 85%, 55%, 0.4);
    
    /* Layout Backgrounds - Light Mode */
    --bg-header: hsla(220, 25%, 97%, 0.75);
    --bg-sidebar: hsla(220, 25%, 100%, 0.9);
    
    /* Layout Shadows - Light Mode */
    --shadow-img: rgba(0, 0, 0, 0.07);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: 'Noto Kufi Arabic', 'Outfit', system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    direction: rtl;
}

/* Background Gradients & Glows */
.ambient-glow-1 {
    position: absolute;
    top: -10%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
    z-index: -1;
    pointer-events: none;
    filter: blur(80px);
}

.ambient-glow-2 {
    position: absolute;
    top: 50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--secondary-glow) 0%, transparent 70%);
    z-index: -1;
    pointer-events: none;
    filter: blur(80px);
}

/* Typography & Titles */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.3;
}

.gradient-text {
    background: linear-gradient(135deg, var(--text-primary) 30%, var(--primary) 70%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.gradient-text-alt {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* Container & Grid Layouts */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header & Glassmorphic Navigation */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: var(--bg-header);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

header.scrolled {
    padding: 0.8rem 0;
    background: var(--bg-header);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 1.5rem;
    font-weight: 800;
    text-decoration: none;
    color: var(--text-primary);
}

.logo-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--secondary);
    box-shadow: 0 0 10px var(--secondary);
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    font-size: 0.95rem;
}

.nav-links a:hover {
    color: var(--primary);
}

.btn-admin {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.2rem;
    border-radius: 12px;
    background: hsla(268, 90%, 64%, 0.15);
    border: 1px solid hsla(268, 90%, 64%, 0.3);
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    font-size: 0.9rem;
}

.btn-admin:hover {
    background: var(--primary);
    color: var(--text-primary);
    box-shadow: 0 0 15px var(--primary-glow);
    border-color: var(--primary);
}

.btn-theme-toggle {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1.1rem;
}

.btn-theme-toggle:hover {
    color: var(--primary);
    border-color: var(--primary);
    background: hsla(268, 90%, 64%, 0.08);
}

/* Hero Section */
.hero-section {
    position: relative;
    padding: 10rem 0 6rem 0;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1.2rem;
    border-radius: 30px;
    background: hsla(192, 95%, 50%, 0.08);
    border: 1px solid hsla(192, 95%, 50%, 0.25);
    color: var(--secondary);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 2rem;
    animation: pulse 3s infinite;
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin-bottom: 3rem;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
}

/* Premium Buttons */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.8rem 2rem;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--primary) 0%, hsl(268, 80%, 55%) 100%);
    border: none;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 15px var(--primary-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--primary-glow);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.8rem 2rem;
    border-radius: 14px;
    background: hsla(230, 20%, 15%, 0.5);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-secondary:hover {
    background: hsla(230, 20%, 20%, 0.8);
    color: var(--text-primary);
    border-color: var(--text-muted);
}

/* Grid & Cards Section */
.section-title {
    font-size: 2.2rem;
    text-align: center;
    margin-bottom: 1rem;
    position: relative;
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--text-secondary);
    text-align: center;
    max-width: 600px;
    margin: 0 auto 4rem auto;
}

.products-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    margin-bottom: 8rem;
}

/* Premium Product Card */
.product-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 3rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    transition: var(--transition);
}

.product-card:hover {
    border-color: var(--border-active);
    box-shadow: 0 10px 40px hsla(268, 90%, 64%, 0.08);
}

@media (min-width: 1025px) {
    .product-card:nth-child(even) .product-visual {
        order: -1;
    }
}

.product-info {
    display: flex;
    flex-direction: column;
}

.product-icon-box {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    background: hsla(268, 90%, 64%, 0.12);
    border: 1px solid hsla(268, 90%, 64%, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--primary);
    font-size: 1.8rem;
}

.product-card:nth-child(even) .product-icon-box {
    background: hsla(192, 95%, 50%, 0.12);
    border-color: hsla(192, 95%, 50%, 0.25);
    color: var(--secondary);
}

.product-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.product-desc {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 2rem;
    line-height: 1.7;
}

.features-list {
    list-style: none;
    margin-bottom: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.features-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    font-size: 0.95rem;
    color: var(--text-primary);
}

.features-list li i {
    color: var(--accent);
    margin-top: 0.2rem;
}

.store-buttons {
    display: flex;
    gap: 1rem;
}

.store-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.6rem 1.4rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    background: hsla(230, 20%, 15%, 0.3);
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    transition: var(--transition);
}

.store-btn:hover {
    background: hsla(230, 20%, 20%, 0.6);
    border-color: var(--text-muted);
    transform: translateY(-1px);
}

.product-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.product-visual img {
    max-width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 15px 35px var(--shadow-img);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.product-card:hover .product-visual img {
    transform: translateY(-5px) scale(1.02);
}

/* AdMob Verification Section */
.admob-section {
    padding: 6rem 0;
    position: relative;
}

.admob-card {
    background: linear-gradient(135deg, hsla(230, 25%, 10%, 0.8) 0%, hsla(230, 25%, 14%, 0.8) 100%);
    border: 1px solid var(--border-color);
    border-radius: 28px;
    padding: 4rem;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: center;
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    position: relative;
    overflow: hidden;
}

.admob-card::after {
    content: '';
    position: absolute;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
    top: -50px;
    right: -50px;
    z-index: -1;
    pointer-events: none;
}

.admob-title {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.admob-desc {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.verification-status {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 2rem;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    background: hsla(145, 85%, 48%, 0.1);
    border: 1px solid hsla(145, 85%, 48%, 0.25);
    color: var(--accent);
    font-size: 0.85rem;
    font-weight: 700;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 8px var(--accent);
    animation: blink 2s infinite;
}

.admob-actions {
    display: flex;
    gap: 1.2rem;
}

.admob-visual {
    background: hsla(230, 20%, 6%, 0.6);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2rem;
}

.code-block {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.code-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.code-title {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 700;
    text-transform: uppercase;
}

.code-editor {
    font-family: monospace;
    font-size: 0.9rem;
    color: var(--secondary);
    background: hsla(230, 20%, 4%, 0.8);
    padding: 1.2rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    line-height: 1.5;
    word-break: break-all;
    text-align: left;
    direction: ltr;
}

/* Footer Section */
footer {
    border-top: 1px solid var(--border-color);
    padding: 4rem 0;
    background: hsla(230, 28%, 4%, 0.9);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.3rem;
    font-weight: 800;
    text-decoration: none;
    color: var(--text-primary);
}

.footer-info {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary);
}

/* Admin Screens Styles */
.admin-login-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    position: relative;
}

.admin-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 28px;
    padding: 3rem;
    width: 100%;
    max-width: 460px;
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}

.admin-card-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.admin-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 0.8rem;
    color: var(--text-primary);
    text-decoration: none;
}

.admin-card-title {
    font-size: 1.4rem;
    color: var(--text-primary);
    font-weight: 700;
}

.admin-card-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 0.4rem;
}

/* Admin Dashboard Layout */
.admin-layout {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 280px;
    background: var(--bg-sidebar);
    border-left: 1px solid var(--border-color);
    padding: 2.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    right: 0;
    top: 0;
    z-index: 90;
    backdrop-filter: var(--glass-blur);
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-primary);
    text-decoration: none;
    margin-bottom: 3rem;
    padding: 0 0.5rem;
}

.sidebar-menu {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    flex-grow: 1;
}

.sidebar-menu a {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.8rem 1rem;
    border-radius: 12px;
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    font-size: 0.95rem;
}

.sidebar-menu li.active a,
.sidebar-menu a:hover {
    background: hsla(268, 90%, 64%, 0.12);
    color: var(--primary);
}

.sidebar-footer {
    border-top: 1px solid var(--border-color);
    padding-top: 1.5rem;
}

.btn-logout {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.8rem 1rem;
    border-radius: 12px;
    background: transparent;
    border: none;
    color: var(--danger);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.95rem;
    font-family: inherit;
    text-align: right;
}

.btn-logout:hover {
    background: hsla(350, 85%, 60%, 0.1);
}

.main-content {
    margin-right: 280px;
    flex-grow: 1;
    padding: 2.5rem 3rem;
    width: calc(100% - 280px);
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
}

.dashboard-title {
    font-size: 2rem;
    font-weight: 800;
}

/* Forms & Fields Styling */
.form-group {
    margin-bottom: 1.8rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.form-control {
    width: 100%;
    padding: 0.8rem 1.2rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    background: hsla(230, 20%, 4%, 0.6);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.95rem;
    transition: var(--transition);
    outline: none;
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 10px var(--primary-glow);
    background: hsla(230, 20%, 6%, 0.8);
}

.btn-submit {
    width: 100%;
    padding: 0.85rem;
    border-radius: 12px;
    background: var(--primary);
    color: var(--text-primary);
    border: none;
    font-weight: 700;
    cursor: pointer;
    font-size: 1rem;
    transition: var(--transition);
    font-family: inherit;
}

.btn-submit:hover {
    background: hsl(268, 80%, 55%);
    box-shadow: 0 0 15px var(--primary-glow);
}

/* Flash Messages */
.alert {
    padding: 1rem 1.2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.alert-success {
    background: hsla(145, 85%, 48%, 0.12);
    border: 1px solid hsla(145, 85%, 48%, 0.25);
    color: var(--accent);
}

.alert-danger {
    background: hsla(350, 85%, 60%, 0.12);
    border: 1px solid hsla(350, 85%, 60%, 0.25);
    color: var(--danger);
}

/* Dashboard Cards & Layout */
.dashboard-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 2.5rem;
}

.card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2.5rem;
    margin-bottom: 2.5rem;
}

.card-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1.8rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

/* Products Table */
.products-table-wrapper {
    overflow-x: auto;
}

.products-table {
    width: 100%;
    border-collapse: collapse;
    text-align: right;
}

.products-table th, 
.products-table td {
    padding: 1rem 1.2rem;
    border-bottom: 1px solid var(--border-color);
}

.products-table th {
    font-weight: 700;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.products-table td {
    font-size: 0.95rem;
}

.table-actions {
    display: flex;
    gap: 0.8rem;
}

.btn-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
    background: hsla(230, 20%, 15%, 0.3);
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
}

.btn-icon:hover {
    color: var(--text-primary);
    background: hsla(230, 20%, 20%, 0.6);
}

.btn-icon.btn-delete {
    color: var(--danger);
}

.btn-icon.btn-delete:hover {
    background: hsla(350, 85%, 60%, 0.15);
    border-color: hsla(350, 85%, 60%, 0.3);
}

/* Modals */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.8);
    backdrop-filter: var(--glass-blur);
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
}

.modal.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 28px;
    padding: 2.5rem;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    font-size: 1.5rem;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
}

.modal-close:hover {
    color: var(--text-primary);
}

/* Animations */
@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 10px var(--secondary-glow);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 25px var(--secondary-glow);
        transform: scale(1.02);
    }
}

@keyframes blink {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.4;
    }
}

/* Responsive Styling */
@media (max-width: 1024px) {
    .product-card {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 2rem;
    }
    .product-card:nth-child(even) {
        direction: rtl;
    }
    .admob-card {
        grid-template-columns: 1fr;
        gap: 3rem;
        padding: 2rem;
    }
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    .hero-actions {
        flex-direction: column;
        width: 100%;
    }
    .btn-primary, .btn-secondary {
        width: 100%;
        justify-content: center;
    }
    nav {
        flex-direction: column;
        gap: 1.5rem;
    }
    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1.2rem;
    }
    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
        border-left: none;
        border-bottom: 1px solid var(--border-color);
    }
    .main-content {
        margin-right: 0;
        width: 100%;
        padding: 1.5rem;
    }
    .admin-layout {
        flex-direction: column;
    }
}

/* Floating Theme Toggle Switcher */
.floating-theme-toggle {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--primary);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25), 0 0 15px var(--primary-glow);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1000;
    transition: var(--transition);
    font-size: 1.3rem;
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
}

.floating-theme-toggle:hover {
    transform: scale(1.1) rotate(12deg);
    border-color: var(--primary);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35), 0 0 25px var(--primary-glow);
    color: var(--secondary);
}
