:root {

    /* =========================
       MRZ VPN COLOR SYSTEM
    ========================= */

    --bg: #F5F7FB;
    --card: #FFFFFF;

    --primary: #1A3967;
    --primary-hover: #142D52;

    --accent: #ED7F22;
    --accent-hover: #D86F1C;

    --text: #1F2937;
    --muted: #6B7280;

    --border: #E5E7EB;

    /* STATUS COLORS */

    --green: #16A34A;
    --green-bg: #DCFCE7;

    --red: #DC2626;
    --red-bg: #FEE2E2;

    --orange: #ED7F22;
    --orange-bg: #FFF1E6;

    /* SIDEBAR */

    --sidebar: #1A3967;
    --sidebar-text: #FFFFFF;
    --sidebar-muted: rgba(255,255,255,.7);

    /* UI */

    --radius: 20px;
    --radius-sm: 12px;

    --shadow:
        0 8px 30px rgba(0,0,0,.06);

    --shadow-hover:
        0 12px 35px rgba(0,0,0,.10);

}

/* =========================
   GLOBAL RESET
========================= */
* {
    box-sizing: border-box;
}

body {
    margin:0;
    background:var(--bg);
    color:var(--text);
    font-family:
        Vazirmatn,
        Tahoma,
        sans-serif;
    direction:rtl;
}

/* =========================
   FORM ELEMENTS
========================= */
button,
input,
select,
textarea {
    font-family:inherit;
}

/* =========================
   PANEL LAYOUT
========================= */
.panel-main {
    width: calc(100% - 260px);
    min-width:0;
    min-height:100vh;
    margin-right:260px;
    background:#f6f7fb;
}

.panel-container {
    width:100%;
    max-width:1400px;
    margin:0 auto;
    padding:32px;
}

/* =========================
   SIDEBAR
========================= */
.sidebar {
    position:fixed;
    top:0;
    right:0;
    width:260px;
    height:100vh;
    background:var(--sidebar);
    color:var(--sidebar-text);
    padding:24px 18px;
    display:flex;
    flex-direction:column;
    z-index:3000;
}

/* =========================
   BRAND
========================= */
.sidebar-brand {
    display:flex;
    align-items:center;
    gap:12px;
    margin-bottom:30px;
}

.sidebar-brand-text {
    display:flex;
    flex-direction:column;
    align-items:flex-start;
    line-height:1.3;
}

.sidebar-brand img {
    width:60px;
    height:60px;
    object-fit:contain;
}

.sidebar-brand-title {
    font-size:20px;
    font-weight:500;
    color:white;
}

.sidebar-brand-subtitle {
    font-size:13px;
    color:var(--sidebar-muted);
    margin-top:3px;
}

/* =========================
   DIVIDER
========================= */
.sidebar-divider {
    height:1px;
    background:
        rgba(255,255,255,.15);
    margin:22px 0;
}

/* =========================
   MENU
========================= */
.sidebar-menu {
    display:flex;
    flex-direction:column;
    gap:8px;
}

.sidebar-link {
    display:flex;
    align-items:center;
    gap:12px;
    width:100%;
    padding:12px 14px;
    border-radius:14px;
    color:white;
    text-decoration:none;
    font-size:14px;
    transition:.2s;
}

.sidebar-link:hover {
    background:
        rgba(255,255,255,.12);
}

.sidebar-link.active {
    background:var(--accent);
    color:white;
}

.sidebar-button {
    border:none;
    cursor:pointer;
    text-align:right;
    background:transparent;
    color:rgba(255,255,255,.85);
}
.sidebar-icon {
    width:28px;
    text-align:center;
    font-size:18px;
}

/* =========================
   SIDEBAR BOTTOM
========================= */
.sidebar-bottom {
    margin-top:auto;
}

.sidebar-logout:hover {
    background:
        rgba(220,38,38,.25);
}

@media(max-width:700px){
    .panel-main {
        padding:0;
        margin-right:0;
    }
}

/* =========================
MOBILE SIDEBAR
========================= */
.mobile-menu-btn {
    display:none;
    position:fixed;
    top:15px;
    right:15px;
    width:42px;
    height:42px;
    border:none;
    border-radius:10px;
    background:var(--sidebar);
    color:white;
    font-size:22px;
    z-index:4000;
    cursor:pointer;
}
.mobile-menu-btn.hide {
    display:none !important;
}
.sidebar-overlay {
    display:none;
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.4);
    backdrop-filter:blur(2px);
    -webkit-backdrop-filter:blur(2px);
    z-index:2500;
    pointer-events:none;
}

.sidebar.mobile-open {
    right:0;
}

.sidebar-overlay.active {
    display:block;
    pointer-events:auto;
}

@media(max-width:700px){
    .mobile-menu-btn{
        display:flex;
        align-items:center;
        justify-content:center;
    }
    .sidebar {
        right:-260px;
        transition:right .3s ease;
    }
    .panel-main {
    width:100%;
    min-width:0;
    min-height:100vh;
    margin-right:0px;
    background:#f6f7fb;
    }
    .panel-container {
        padding:0 5px !important;
    }
}

/* =========================
PANEL LAYOUT
========================= */
body {
    overflow-x:hidden;
}
.panel-layout {
    min-height:100vh;
    display:flex;
    flex-direction:row;
}

/* =====================
   BUTTON SYSTEM
===================== */
.btn {
    border:none;
    border-radius:10px;
    padding:10px 16px;
    font-size:13px;
    cursor:pointer;
    transition:.2s;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:8px;
}

/* MAIN ACTION */
.btn-primary {
    background:var(--accent);
    color:white;
    box-shadow:
    0 5px 15px rgba(237,127,34,.25);
}
.btn-primary:hover {
    filter:brightness(.95);
}

/* PANEL ACTION */
.btn-panel {
    background:var(--sidebar);
    color:white;
}

.btn-panel:hover {
    filter:brightness(1.1);
}

/* DANGER */
.btn-danger {
    background:#dc3545;
    color:white;
}
.btn-danger:hover {
    filter:brightness(.9);
}

/* =========================
   GLOBAL BUTTONS
========================= */

.btn-primary-mrz,
.btn-secondary-mrz,
.btn-danger-mrz,
.btn-success-mrz {
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:8px;
    border:none;
    border-radius:10px;
    padding:10px 16px;
    font-size:13px;
    font-weight:500;
    cursor:pointer;
    transition:.2s ease;
    text-decoration:none;
}

/* ORANGE */
.btn-primary-mrz {
    background:var(--accent);
    color:white;
    box-shadow:
    0 6px 16px rgba(237,127,34,.25);
}
.btn-primary-mrz:hover {
    transform:translateY(-2px);
    filter:brightness(1.05);
}

/* NAVY */
.btn-secondary-mrz {
    background:var(--sidebar);
    color:white;
}
.btn-secondary-mrz:hover {
    transform:translateY(-2px);
    opacity:.9;
}

.btn-danger-mrz {
    background:#dc3545;
    color:white;
}

.btn-danger-mrz:hover {
    filter:brightness(.9);
}

.btn-success-mrz {
    background:#198754;
    color:white;
}

.btn-success-mrz:hover {
    filter:brightness(1.05);
}
