@font-face {
  font-family: 'IRANSansXBold'; /* نامی که برای فونت خود انتخاب می‌کنید */
  src: url('/assets/IRANSansX-Bold.woff') format('woff'),
  font-weight: normal;
  font-style: normal;
  font-display: swap; /* برای اطمینان از بارگذاری بهتر */
}


/* style.css */
:root {
    --primary-color: #4a90e2;
    --secondary-color: #2c3e50;
    --bg-color: #f4f7f6;
    --card-bg: #ffffff;
    --text-color: #333;
    --danger-color: #e74c3c;
    --success-color: #2ecc71;
    --border-radius: 8px;
    --sidebar-width: 250px;
}

* {
    box_sizing: border-box;
     
    font-family: 'IRANSansXBold', Tahoma, sans-serif;
}

body {
    margin: 0;
    padding: 0;
    background-color: var(--bg-color);
    color: var(--text-color);
    direction: rtl;
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: var(--sidebar-width);
    background-color: var(--secondary-color);
    color: white;
    padding: 20px;
    position: fixed;
    height: 100%;
    right: 0;
    top: 0;
    overflow-y: auto;
    transition: transform 0.3s ease;
}

.sidebar h2 {
    text-align: center;
    margin-bottom: 30px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 10px;
}

.sidebar ul {
    list-style: none;
    padding: 0;
}

.sidebar ul li {
    margin-bottom: 10px;
}

.sidebar ul li a {
    color: #ecf0f1;
    text-decoration: none;
    display: block;
    padding: 12px;
    border-radius: var(--border-radius);
    transition: background 0.2s;
}

.sidebar ul li a:hover, .sidebar ul li a.active {
    background-color: var(--primary-color);
}

/* Main Content */
.main-content {
    margin-right: var(--sidebar-width);
    padding: 30px;
    width: 100%;
    transition: margin-right 0.3s ease;
}

.card {
    background: var(--card-bg);
    padding: 25px;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    margin-bottom: 25px;
}

h1, h3 { margin-top: 0; }

/* Forms */
.form-group {
    margin-bottom: 15px;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

input[type="text"], input[type="password"], textarea, select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

button:hover {
    background-color: #357abd;
}

button.danger {
    background-color: var(--danger-color);
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

table th, table td {
    padding: 12px;
    text-align: right;
    border-bottom: 1px solid #ddd;
}

table th {
    background-color: #f8f9fa;
}

/* Utilities */
.status-active { color: var(--success-color); font-weight: bold; }
.status-inactive { color: var(--danger-color); font-weight: bold; }

/* Responsive */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(100%); /* Hide sidebar */
        z-index: 1000;
    }
    .sidebar.open {
        transform: translateX(0);
    }
    .main-content {
        margin-right: 0;
    }
    .menu-toggle {
        display: block;
        background: var(--secondary-color);
        color: white;
        padding: 10px;
        position: fixed;
        top: 10px;
        right: 10px;
        z-index: 1001;
        border-radius: 4px;
        cursor: pointer;
    }
}
@media (min-width: 769px) {
    .menu-toggle { display: none; }
}
