/* تنظیمات عمومی برای صفحه مدیریت کاربران */
* {
    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;
}

form input {
    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;
}

form button:hover {
    background-color: #4285F4;
}

/* جدول لیست کاربران */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

table, th, td {
    border: 1px solid #ddd;
}

th, td {
    padding: 12px;
    text-align: center;
}

th {
    background-color: #4285F4;
    color: white;
}

/* دکمه حذف */
.delete-note {
    color: red;
    font-size: 14px;
    text-decoration: none;
    background-color: transparent;
    border: none;
    cursor: pointer;
    transition: color 0.3s ease;
}

.delete-note:hover {
    color: #EA4335; /* رنگ قرمز روشن */
}

button {
    padding: 8px 15px;
    border-radius: 5px;
    background-color: #4285F4; /* رنگ آبی */
    color: white;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
    font-size: 14px;
}

button:hover {
    background-color: #34A853; /* رنگ سبز */
    transform: scale(1.05);
}

/* استایل پاپ آپ برای موفقیت ذخیره نوت */
#success-popup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    padding: 20px;
    background-color: #34A853; /* رنگ سبز */
    color: white;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    z-index: 100;
    text-align: center;
}

#success-popup button {
    padding: 12px 20px;
    background-color: #4285F4;
    color: white;
    border: none;
    cursor: pointer;
    font-size: 16px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

#success-popup button:hover {
    background-color: #34A853;
}
