/* تنظیمات کلی */
body {
    font-family: 'Vazir', sans-serif;
    background-color: #f4f4f4;
    color: #333;
    margin: 0;
    padding: 0;
    text-align: right;
    direction: rtl;
    min-height: 100vh; /* Ensure the body takes up the full viewport */
    display: flex;
    flex-direction: column; /* Flexbox for positioning footer at the bottom */
}

/* استایل هدر */
header {
    background-color: #0056b3;
    color: white;
    padding: 20px;
    text-align: center;
}

header h1 {
    margin: 0;
    font-size: 36px;
}

/* استایل منو (در صورت وجود) */
nav ul {
    list-style-type: none;
    padding: 0;
    text-align: center;
    background-color: #333;
    margin: 0;
}

nav ul li {
    display: inline-block;
    margin: 10px;
}

nav ul li a {
    color: white;
    background-color: #0056b3;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s;
}

nav ul li a:hover {
    background-color: #003d80;
}

main {
    flex: 50;
    padding: 10px;
    text-align: center;
    padding-bottom: 300px;
}

/* استایل فرم */
.form-section {
    background-color: white;
    padding: 30px;
    margin: 80px auto;
    width: 85%;
    box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    text-align: right;
    margin-bottom: 200px; /* Ensure a gap between the form and the footer */
}

.form-group {
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.form-group label {
    font-size: 18px;
    margin-right: 10px;
}

.form-group input {
    padding: 10px;
    width: 60%;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 5px;
    transition: border-color 0.3s;
}

.form-group input:focus {
    border-color: #0056b3;
}

/* استایل بخش روزها */
.days-selection {
    margin-bottom: 20px;
}

.day-option {
    font-size: 16px;
    margin-bottom: 10px;
}

h2 {
    font-size: 24px;
    margin-bottom: 20px;
}

/* دکمه‌ها */
button.btn-primary {
    display: block;
    width: 100%;
    padding: 15px;
    background-color: #0056b3;
    color: white;
    font-size: 18px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

button.btn-primary:hover {
    background-color: #004494;
}

a.btn {
    display: inline-block;
    padding: 15px 30px;
    font-size: 18px;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s;
}

/* دکمه‌های اولیه */
a.btn-primary {
    background-color: #0056b3;
    color: white;
}

a.btn-primary:hover {
    background-color: #003d80;
}

/* دکمه‌های ثانویه */
a.btn-secondary {
    background-color: #28a745;
    color: white;
}

a.btn-secondary:hover {
    background-color: #218838;
}

/* استایل جدول سفارشات */
table.orders-table {
    width: 90%;
    margin: 20px auto;
    border-collapse: collapse;
    background-color: white;
    box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

table.orders-table th, table.orders-table td {
    padding: 15px;
    text-align: center;
    border: 1px solid #ddd;
}

table.orders-table th {
    background-color: #0056b3;
    color: white;
    font-size: 18px;
}

table.orders-table td {
    font-size: 16px;
}

table.orders-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

table.orders-table tr:hover {
    background-color: #f1f1f1;
}

/* استایل لیست داخل جدول */
table.orders-table ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

table.orders-table ul li {
    font-size: 14px;
    text-align: right;
}

/* استایل بخش تایید پرداخت */
.confirmation-section {
    background-color: white;
    padding: 20px;
    margin: 20px auto;
    width: 80%;
    box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    text-align: right;
}

.success-message {
    color: green;
    font-size: 24px;
    margin-bottom: 20px;
    text-align: center;
}

.order-details p {
    font-size: 18px;
    margin: 10px 0;
}

.order-details strong {
    color: #0056b3;
}

/* استایل فوتر */
footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 10px;
    position: fixed; /* Make the footer fixed */
    bottom: 0; /* Always stick to the bottom */
    width: 100%;
    box-shadow: 0px -4px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}


/* استایل برای لینک‌ها */
a {
    text-decoration: none;
    color: #0056b3;
}

a:hover {
    text-decoration: underline;
}


.flash-message {
    background-color: #f8d7da;
    color: #721c24;
    padding: 10px;
    border: 1px solid #f5c6cb;
    border-radius: 5px;
    margin: 20px;
    text-align: center;
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0; /* Hidden by default */
    z-index: 1000;
    transition: opacity 0.5s ease; /* For smooth fade-in/fade-out */
}















main.form-section {
    background-color: white;
    padding: 30px;
    margin: 80px auto;
    width: 85%;
    box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    text-align: right;
    margin-bottom: 50px; /* Ensure a gap between the form and the footer */
}

@media (max-width: 576px) {
    /* For small screen devices (like mobile) */
    main.form-section {
        padding-bottom: 300px; /* Extra padding for mobile view if needed */
    }
}






