/* تنظیمات عمومی */
@font-face {
    font-family: "mIranSans";
    src: url("Iransans.ttf");
}
*{
    font-family: mIranSans, Tahoma, sans-serif;
}
body {
    direction: rtl;
    text-align: right;
    margin: 0;
    padding: 0;
    background-color: #f4f4f9;
    color: #333;
}

.container {
    max-width: 960px;
    margin: 20px auto 100px auto;
    padding: 20px;
    box-sizing: border-box;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* هدر و ناوبار */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #0056b3;
    padding: 1rem 2rem;
    color: white;
}
.navbar .logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
    text-decoration: none;
}
.navbar .nav-links a {
    color: white;
    text-decoration: none;
    margin-left: 15px;
    font-size: 1rem;
}

/* فرم‌ها */
form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
select, input[type="text"], input[type="password"], input[type="date"], input[type="time"], input[type="submit"] {
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #ddd;
    font-size: 1rem;
}
input[type="submit"] {
    background-color: #007bff;
    color: white;
    border: none;
    cursor: pointer;
}
input[type="submit"]:hover {
    background-color: #0056b3;
}

/* فوتر */
.footer {
    text-align: center;
    background-color: #333;
    color: white;
    width: 100%;
    position: fixed;
    bottom: 0;
    box-sizing: border-box;
}

/* جداول */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}
th, td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: right;
}
th {
    background-color: #f2f2f2;
}

/* پیام‌ها */
.message {
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 5px;
    text-align: center;
}
.success {
    background-color: #d4edda;
    color: #155724;
}
.error {
    background-color: #f8d7da;
    color: #721c24;
}

/* استایل اسلایدر عکس و متن */
.welcome-slider {
    position: relative;
    max-width: 960px;
    height: 300px; /* افزایش ارتفاع برای بهتر دیده شدن عکس */
    overflow: hidden;
    margin: 20px auto;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border-radius: 8px;
}

.slider-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7); /* سایه متن برای خوانایی بیشتر */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    background-color: rgba(0,0,0,0.4);
    background-blend-mode: multiply;
}

.slider-slide.active {
    opacity: 1;
}

.slider-slide h1 {
    font-size: 2.5rem;
    margin: 0;
}

.slider-slide p {
    font-size: 1.2rem;
    margin: 10px 0 0;
}