/* کل محتوای استایل از فایل اصلی با اصلاحات رسپانسیو */
:root {
    --neon-blue: #00f3ff;
    --neon-pink: #ff00c1;
    --dark-bg: #0a0e17;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --sidebar-width: 280px;
    --gold: #dfb76c;
}

body {
    background: radial-gradient(circle at center, #1a2332 0%, var(--dark-bg) 100%);
    min-height: 100vh;
    font-family: 'Segoe UI', 'Vazirmatn', Tahoma, Geneva, Verdana, sans-serif;
    color: white;
    margin: 0;
    overflow-x: hidden;
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
}

.text-neon-blue { color: var(--neon-blue); text-shadow: 0 0 10px var(--neon-blue); }
.text-neon-pink { color: var(--neon-pink); text-shadow: 0 0 10px var(--neon-pink); }

.btn-neon {
    background: transparent;
    border: 2px solid var(--neon-blue);
    color: var(--neon-blue);
    transition: 0.3s;
    border-radius: 12px;
}

.btn-neon:hover {
    background: var(--neon-blue);
    color: black;
    box-shadow: 0 0 25px var(--neon-blue);
}

.form-control {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.1);
    color: white !important;
    border-radius: 10px;
}

.form-control::placeholder {
    color: rgba(255,255,255,0.3);
}

.form-control:focus {
    background: rgba(255,255,255,0.15);
    color: white;
    border-color: var(--neon-pink);
    box-shadow: 0 0 10px var(--neon-pink);
    outline: none;
}

/* اصلاح چیدمان برای آیکون‌های سمت چپ در RTL */
.input-group-text {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.1);
    color: white;
}

.input-group {
    display: flex !important;
    flex-direction: row-reverse !important; 
}

.input-group .form-control {
    border-radius: 0 10px 10px 0 !important; /* لبه‌های سمت راست گرد */
    border-left: none !important;
}

.input-group-text {
    border-radius: 10px 0 0 10px !important; /* لبه‌های سمت چپ گرد */
    border-right: none !important;
    cursor: pointer;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 15px;
}

.text-muted {
    color: #00f0ff !important;
}

/* ==========================================================================
   ساختار استایلی مشترک، رسپانسیو و مدیریت سایدبار در موبایل برای هر سه نقش
   ========================================================================== */

/* کانتینر اصلی صفحه جهت برقراری ساختار سایدبار ثابت */
.dashboard-container {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

/* استایل ثابت سایدبار در دسکتاپ */
.sidebar {
    width: var(--sidebar-width);
    min-width: var(--sidebar-width);
    max-width: var(--sidebar-width);
    height: 100vh;
    position: fixed;
    top: 0;
    right: 0;
    z-index: 1040;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    border-radius: 0 !important;
    display: flex;
    flex-direction: column;
}

/* بخش اصلی محتوای صفحه */
.main-content {
    margin-right: var(--sidebar-width) !important;
    width: calc(100% - var(--sidebar-width)) !important;
    padding: 25px !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    flex-grow: 1;
}

/* استایل اورلی نیمه شفاف پس‌زمینه در موبایل */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(4, 6, 12, 0.7);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 1035;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sidebar-overlay.show {
    display: block;
    opacity: 1;
}

/* هدر موبایل همبرگری فیکس بالا */
.mobile-header {
    display: none;
    background: #070b19;
    border-bottom: 1px solid rgba(223, 183, 108, 0.15);
    padding: 12px 20px;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1030;
    align-items: center;
    justify-content: space-between;
    box-sizing: border-box;
}

/* قوانین رسپانسیو و تبدیل سایدبار به منوی کشویی در موبایل و تبلت */
@media (max-width: 991px) {
    .sidebar {
        right: -280px !important;
        transform: translateX(var(--sidebar-width)) !important;
        height: 100vh !important;
        position: fixed !important;
        top: 0 !important;
        bottom: 0 !important;
        z-index: 1050 !important;
        box-shadow: none !important;
    }

    .sidebar.show {
        right: 0 !important;
        transform: translateX(0) !important;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.85) !important;
    }

    .main-content {
        margin-right: 0 !important;
        width: 100% !important;
        padding: 15px !important;
        padding-top: 80px !important; /* ایجاد فضای کافی به خاطر هدر ثابت موبایل */
    }

    .mobile-header {
        display: flex !important;
    }
}