/* تنظیمات عمومی برای صفحه افزودن دسته‌بندی */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body, html {
    height: 100%;
    overflow-x: hidden; /* جلوگیری از اسکرول افقی */
}

body {
    font-family: 'Vazir', sans-serif; /* فونت وزیر */
    background: linear-gradient(to right, #4285F4, #34A853, #FBBC05, #EA4335);
    color: #333;
    display: flex;
    flex-direction: column;
    height: 100vh;
}

/* منو سمت راست (عمودی) */
.sidebar {
    position: fixed;
    top: 0;
    right: 0;
    background-color: #4285F4;
    width: 250px;
    padding: 20px;
    z-index: 10;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: -2px 0px 10px rgba(0, 0, 0, 0.1);
    animation: slideInFromRight 0.5s ease-in-out;
    overflow-y: auto;
}

.sidebar ul {
    list-style-type: none;
    padding: 0;
    margin-top: 30px;
}

.sidebar ul li {
    margin: 10px 0; /* فاصله منوها */
}

.sidebar ul li a {
    text-decoration: none;
    color: white;
    font-size: 18px;
    padding: 12px;
    background-color: #34A853; /* رنگ سبز */
    border-radius: 5px;
    transition: background-color 0.3s ease, transform 0.3s ease;
    display: block;
}

.sidebar ul li a:hover {
    background-color: #FBBC05; /* رنگ زرد */
    transform: none; /* رفع تغییر اندازه هنگام هاور */
}

/* انیمیشن برای نوار منو */
@keyframes slideInFromRight {
    from {
        transform: translateX(100%);
    }
    to {
        transform: translateX(0);
    }
}

/* محتوای داخلی صفحه افزودن دسته‌بندی */
.main-content {
    margin-top: 20px;
    margin-right: 270px;
    padding: 20px;
    width: calc(100% - 270px);
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.1);
    animation: fadeIn 1s ease-out;
    overflow-y: auto;
    height: calc(100vh - 40px);  /* ارتفاع محتوای اصلی به اندازه 100% صفحه */
    display: flex;
    justify-content: center; /* محتوا در وسط صفحه قرار می‌گیرد */
    flex-direction: column;
}

/* انیمیشن محتوای صفحه */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* جعبه برای محتوا */
.content-box {
    width: 80%;  /* عرض 80% از صفحه */
    max-width: 1000px;  /* بیشترین عرض 1000px */
    margin: 0 auto;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.1);
    background-color: white;
}

/* استایل فرم افزودن دسته‌بندی */
form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-align: right;  /* راست‌چین کردن محتوا */
}

form input, form select {
    padding: 10px;
    font-size: 16px;
    border-radius: 5px;
    border: 1px solid #ddd;
}

form button {
    background-color: #34A853;
    color: white;
    padding: 12px;
    font-size: 16px;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 20px; /* فاصله از سایر عناصر */
    transition: background-color 0.3s ease;
}

form button:hover {
    background-color: #4285F4;
}

/* استایل برای نمایش موفقیت یا خطا */
#success-message, #error-message {
    padding: 10px;
    text-align: center;
    border-radius: 5px;
    margin-top: 20px;
}

#success-message {
    background-color: #34A853;
    color: white;
}

#error-message {
    background-color: #EA4335;
    color: white;
}



/* تنظیمات برای دکمه ثبت دسته‌بندی */
form button {
    background-color: #34A853;
    color: white;
    padding: 12px;
    font-size: 16px;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 20px; /* فاصله از سایر عناصر */
    transition: background-color 0.3s ease;
    width: 200px; /* تنظیم طول دکمه */
    align-self: center; /* قرار دادن دکمه در مرکز */
}

form button:hover {
    background-color: #4285F4;
}

/* استایل برای نمایش لیست دسته‌بندی‌ها */
ul {
    list-style-type: none;
    padding: 0;
}

ul li {
    margin: 10px 0;
    font-size: 18px;
}
/* تنظیمات برای دکمه ثبت دسته‌بندی */
form button {
    background-color: #34A853;
    color: white;
    padding: 12px;
    font-size: 16px;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 20px; /* فاصله از سایر عناصر */
    transition: background-color 0.3s ease;
    width: 200px; /* تنظیم طول دکمه */
    align-self: center; /* قرار دادن دکمه در مرکز */
}

form button:hover {
    background-color: #4285F4;
}

/* استایل برای نمایش لیست دسته‌بندی‌ها */
ul {
    list-style-type: none;
    padding: 0;
}

ul li {
    margin: 10px 0;
    font-size: 18px;
}

/* استایل برای لینک حذف */
a {
    color: red;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}
/* تنظیمات برای حذف دسته‌بندی */
a {
    color: red;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* تنظیمات برای دکمه حذف دسته‌بندی */
ul {
    list-style-type: none;
    padding: 0;
}

ul li {
    margin: 10px 0;
    font-size: 18px;
}

/* استایل برای پیغام خطا */
#error-message {
    background-color: #EA4335;
    color: white;
    padding: 10px;
    border-radius: 5px;
    text-align: center;
}

/* استایل برای پیغام موفقیت */
#success-message {
    background-color: #34A853;
    color: white;
    padding: 10px;
    border-radius: 5px;
    text-align: center;
}















