@font-face {
    font-family: 'Vazir FD';
    font-weight: 100; /* Thin */
    src: url('fonts/Vazir-Thin-FD.ttf') format('truetype');
}

@font-face {
    font-family: 'Vazir FD';
    font-weight: 300; /* Light */
    src: url('fonts/Vazir-Light-FD.ttf') format('truetype');
}

@font-face {
    font-family: 'Vazir FD';
    font-weight: 400; /* Regular */
    src: url('fonts/Vazir-Regular-FD.ttf') format('truetype');
}

@font-face {
    font-family: 'Vazir FD';
    font-weight: 500; /* Medium */
    src: url('fonts/Vazir-Medium-FD.ttf') format('truetype');
}

@font-face {
    font-family: 'Vazir FD';
    font-weight: 700; /* Bold */
    src: url('fonts/Vazir-Bold-FD.ttf') format('truetype');
}

@font-face {
    font-family: 'Vazir FD';
    font-weight: 900; /* Black */
    src: url('fonts/Vazir-Black-FD.ttf') format('truetype');
}

body {
    font-family: 'Vazir FD', sans-serif;
    background-color: #f5f5f5;
    margin: 0;
    padding: 0;
    direction: rtl;
    text-align: right;
}

h2, h3 {
    color: #333;
    text-align: center;
}

form {
    background-color: #fff;
    padding: 20px;
    margin: 50px auto;
    width: 90%;
    max-width: 400px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

input, select, button, textarea {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-family: 'Vazir FD', sans-serif;
}

textarea {
    resize: vertical; /* Allow vertical resize */
}

input[type="password"], input[type="text"] {
    font-family: 'Vazir FD', sans-serif;
}

button {
    background-color: #28a745;
    border: none;
    color: white;
    cursor: pointer;
}

button:hover {
    background-color: #218838;
}

button.delete {
    background-color: #dc3545;
}

button.delete:hover {
    background-color: #c82333;
}

table {
    width: 100%;
    max-width: 1500px;
    margin: 20px auto;
    border-collapse: collapse;
}

table, th, td {
    border: 1px solid #ddd;
}

th, td {
    padding: 10px;
    text-align: center;
}

th {
    background-color: #f2f2f2;
}

form.inline {
    display: inline-block;
    margin: 0;
}

button {
    display: inline-block;
    margin: 2px;
}

.dashboard-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.dashboard-buttons a {
    text-decoration: none;
    width: 80%;  /* Adjust width as needed */
    max-width: 300px;  /* Fixed width for all buttons */
}

.dashboard-buttons button {
    width: 100%;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s, transform 0.3s;
}

.dashboard-buttons button:hover {
    transform: translateY(-2px);
}

.announcement {
    background-color: #fff;
    padding: 20px;
    margin: 20px auto;
    width: 80%; /* Responsive width */
    max-width: 400px; /* Same width as buttons */
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.notification {
    background-color: #28a745;
    color: white;
    text-align: center;
    padding: 10px;
    margin: 20px auto;
    width: fit-content;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}


/* اعمال تنظیمات برای اطمینان از قرار گرفتن تکست باکس‌ها داخل کادر‌ها */
textarea, input[type="text"], input[type="number"], input[type="email"], input[type="password"] {
    box-sizing: border-box; /* اطمینان از قرار گرفتن همه پدینگ‌ها و بوردرها در اندازه */
    width: 100%; /* عرض تکست باکس برابر با کادر والد */
    padding: 0.5rem; /* اندازه پدینگ مناسب برای بهتر شدن ظاهر */
    margin: 0; /* حذف هرگونه مارجین اضافی */
    border: 1px solid #ccc; /* تنظیم بوردر */
    border-radius: 4px; /* ایجاد گوشه‌های گرد برای زیبایی */
    font-family: inherit; /* استفاده از فونت وراثتی */
    font-size: 1rem; /* تنظیم اندازه فونت */
    resize: vertical; /* اجازه تغییر اندازه عمودی */
}

/* تنظیم اندازه جداول برای جلوگیری از بیرون زدگی محتوا */
table {
    width: 100%; /* عرض جدول برابر با عرض والد */
    margin-bottom: 1rem; /* فاصله مناسب بین جداول */
}

table th, table td {
    padding: 0.75rem; /* پدینگ مناسب برای ظاهر بهتر */
    text-align: left; /* تنظیم تراز متن‌ها در چپ */
}

table th {
    background-color: #f8f8f8; /* رنگ پس‌زمینه برای هدر جدول */
    border-bottom: 2px solid #ccc; /* بوردر پایین سلول‌های هدر */
}

table tr:nth-child(even) {
    background-color: #f9f9f9; /* نوارهای راه‌راه برای راحتی بیشتر در خواندن جدول */
}

/* اضافه کردن برای جلوگیری از بیرون زدگی محتوا در موبایل */
body {
    max-width: 100%;
    overflow-x: hidden;
}



