@import url('https://cdn.jsdelivr.net/gh/rastikerdar/vazirmatn@v33.0.3/misc/Farsi-Digits/font-face.css');

:root {
    --sidebar-width: 280px;
    --header-height: 70px;
    --bs-body-bg: #111827;
    --bs-body-color: #f3f4f6;
    --bs-border-color: #374151;
    --primary-color: #14b8a6;
}

body {
    font-family: 'Vazirmatn', sans-serif !important;
    background-color: var(--bs-body-bg) !important;
    color: var(--bs-body-color) !important;
    overflow-x: hidden; 
}

/* --- Sidebar --- */
.sidebar {
    position: fixed;
    top: 0;
    right: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background-color: #1f2937;
    border-left: 1px solid var(--bs-border-color);
    z-index: 100;
    transition: transform 0.3s ease;
    overflow-y: auto;
}

@media (max-width: 768px) {
    .sidebar { transform: translateX(100%); }
    .sidebar.show { transform: translateX(0); }
    .main-content { margin-right: 0 !important; }
}

.sidebar-brand {
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid var(--bs-border-color);
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    text-decoration: none;
}

.nav-link {
    color: #9ca3af;
    padding: 15px 20px;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    border-right: 3px solid transparent;
}

.nav-link:hover { color: #fff; background-color: rgba(255,255,255,0.05); }
.nav-link.active { color: var(--primary-color); background-color: rgba(20, 184, 166, 0.1); border-right-color: var(--primary-color); }
.nav-link i { width: 30px; text-align: center; }

/* --- Main Content --- */
.main-content {
    margin-right: var(--sidebar-width);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: margin-right 0.3s ease;
}

.top-header {
    height: var(--header-height);
    border-bottom: 1px solid var(--bs-border-color);
    background-color: rgba(17, 24, 39, 0.9);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 99;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
}

/* --- Inputs --- */
.form-control, .form-select, textarea {
    background-color: #374151 !important;
    border: 1px solid #4b5563 !important;
    color: #fff !important;
}
.form-control:focus, .form-select:focus {
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 0.25rem rgba(20, 184, 166, 0.25) !important;
}

/* --- Cards & Modals --- */
.card { background-color: #1f2937; border: 1px solid var(--bs-border-color); }
.modal-content { background-color: #1f2937; border: 1px solid #4b5563; color: #fff; }
.modal-header, .modal-footer { border-color: #374151; }
.btn-close { filter: invert(1); }

/* --- Tabs --- */
.nav-tabs .nav-link { color: #9ca3af; border: none; }
.nav-tabs .nav-link.active { color: var(--primary-color); background: transparent; border-bottom: 2px solid var(--primary-color); }
