/* استایل عمومی */
body {
    font-family: 'tahoma','Vazir', sans-serif; /* فونت مناسب برای سایت‌های فارسی */
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    color: #333;
    direction: rtl; /* راست‌نویس */
}

/* هدر */
header {
    background: linear-gradient(to bottom, #001f3f, #7ab1e9);

    color: white;
    padding: 20px;
    text-align: center;
}

.title {
    font-size: 20px;
    margin-bottom: 10px;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    max-width: 100px;
}

.menu ul {
    list-style: none;
    padding: 0;
}

.menu li {
    display: inline;
    margin: 0 15px;
}

.menu a {
    color: white;
    text-decoration: none;
}

.menu a:hover {
    text-decoration: underline;
}

/* فرم */
form {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    max-width: 600px;
    margin: 20px auto;
    padding: 20px;
}

label {
    font-weight: bold;
    margin-top: 15px;
    display: block;
}

input[type="text"],input[type="password"],
select {
    width: 100%;
    padding: 10px;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

input[type="file"] {
    margin-top: 5px;
}

input[type="submit"] {
    background-color: #0044cc;
    color: white;
    border: none;
    padding: 10px;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 20px;
}

input[type="submit"]:hover {
    background-color: #003399;
}

/* جدول */
.datagridview {
    width: 100%;
    border-collapse: collapse;
    margin: 20px auto;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.datagridview th,
.datagridview td {
    border: 1px solid #ccc;
    padding: 12px;
    text-align: center;
}

.datagridview th {
    background-color: #f0f0f0;
    color: #333;
}

.datagridview tr:nth-child(even) {
    background-color: #f9f9f9; /* رنگ پس‌زمینه ردیف‌های زوج */
}

.datagridview tr:hover {
    background-color: #e0e0e0; /* رنگ پس‌زمینه هنگام هاور */
}

/* فوتر */
footer {
    background: linear-gradient(to top, #001f3f, #77ace0);
    color: white;
    text-align: center;
    padding: 20px 0;
    position: relative;
    bottom: 0;
    width: 100%;
}


.footer-content {
    max-width: 1200px; /* محدود کردن عرض محتوا */
    margin: 0 auto; /* مرکز کردن محتوا */
    padding: 10px;
}
