.mab-form-container {
    max-width: 600px;
    margin: 20px auto;
    padding: 30px 25px;
    background-color: #797F84;
    color: #5A462E;
    font-family: 'atiq', sans-serif;

    /* فارسی شدن اعداد */
    font-feature-settings: "ss01";
    -moz-font-feature-settings: "ss01";
    -webkit-font-feature-settings: "ss01";

    transition: all 0.3s ease;
}
.mab-form-container * {
    font-variant-numeric: lining-nums;
}
.mab-form-container input {
    font-family: 'Vazirmatn', sans-serif;
}

 ه 
.mab-form-container h2 {
    text-align: center;
    margin-bottom: 25px;
    font-size: 26px;
    color: #5A462E;
    letter-spacing: 1px;
    font-weight: bold;
}
.mab-form-container label {
    font-size: 16px;
    margin-bottom: 8px;
    color: #5A462E;
    display: block;
    font-weight: 600;
}

.mab-form-container input[type="text"],
.mab-form-container input[type="email"],
.mab-form-container input[type="number"],
.mab-form-container input[type="time"],
.mab-form-container select {
    width: 100%;
    padding: 14px;
    margin-bottom: 18px;
    /*border: 1px solid #5A462E;*/
    /*border-radius: 8px;*/
    font-size: 15px;
    background-color: #5A462E;  
    color: #ffffff; 
    outline: none;
    transition: all 0.3s ease;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}
 placeholder 
.mab-form-container input::placeholder {
    color: rgba(255, 255, 255, 0.7); 
}

   
.mab-form-container select {
    background-color: #5A462E;
    color: #ffffff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='%23ffffff' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 7.5l4.5 4.5 4.5-4.5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
}

  
.mab-form-container input:focus,
.mab-form-container select:focus {
    border-color: #ffffff;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.4);
}
.mab-form-container input[type="submit"] {
    display: block;
    margin: 20px auto 0 auto;   
    background-color: #005522;  
    color: #ffffff;
    padding: 14px;
    border: none;
    /*border-radius: 10px;*/
    cursor: pointer;
    font-size: 16px;
    width: 100%;
    font-weight: 600;
    transition: all 0.3s ease;
}
.mab-form-container input[type="submit"]:hover {
    opacity: 0.85;
    transform: translateY(-2px);
}

 
#response,
#category_response,
#course_response {
    margin-top: 15px;
    font-size: 16px;
    color: #5A462E;
    text-align: center;
}

  
@media (max-width: 768px) {
    .mab-form-container {
        padding: 25px 20px;
    }
    .mab-form-container h2 {
        font-size: 22px;
    }
    .mab-form-container input[type="submit"] {
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .mab-form-container {
        padding: 20px 15px;
    }
    .mab-form-container h2 {
        font-size: 20px;
    }
}

#time_slots_display ul {
    list-style-type: none;  
    padding: 0;
    margin: 0;
    font-family: 'Arial', sans-serif;
}

  
#time_slots_display ul li {
    background-color: #f7f7f7;  
    padding: 10px 15px;
    margin-bottom: 5px;
    border: 1px solid #ddd;  
    transition: all 0.3s ease;  
}

      
#time_slots_display ul li:hover {
    background-color: #007bff; 
    color: white; 
    cursor: pointer;  
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);  
}

  
#time_slots_display ul li.empty {
    color: #aaa;  
    background-color: #f0f0f0; 
    cursor: not-allowed;  
}

  
#time_slots_display label {
    font-weight: bold;
    margin-bottom: 10px;
    display: block;
    font-size: 16px;
    color: #333;
}

.mab-form-container {
    /*font-family: Arial, sans-serif;*/
    padding: 20px;
    background-color: transparent;
    /*border-radius: 10px;*/
    margin: 0 auto;
    max-width: 1000px;
}

h2 {
    text-align: center;
    color: #333;
    margin-bottom: 30px;
}

.courses-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px;
}

.course-card {
    /*background-color: #ffffff;*/
    /*border: 1px solid #ddd;*/
    /*border-radius: 8px;*/
    width: 30%; /* برای نمایش سه تایم در هر ردیف */
    padding: 20px;
    /*box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);*/
    text-align: center;
    margin-bottom: 20px;
    cursor: pointer;
    transition: transform 0.3s ease-in-out;
    box-sizing: border-box;
    min-width: 250px; /* حداکثر عرض هر دایو */
}

.course-card:hover {
    transform: scale(1.05);
}

.course-name {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #3e3b3b;
}

.teacher-name, .days-of-week, .single-time {
    font-size: 14px;
    color: #666;
}

.time-slots {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 10px;
}

.time-slot {
    background-color: #f2f2f2;
    padding: 5px 10px;
    /*border-radius: 5px;*/
    font-size: 12px;
    cursor: pointer;
}

.time-slot.selected {
    background-color: #4CAF50;
    color: white;
}

.single-time {
    margin-top: 10px;
    margin-bottom: 15px;
    background: #fff;
}

.divider {
    border: 0;
    border-top: 2px solid #ffffff;
    margin: 10px 0;
}

.register-btn {
    background-color: #97740F;
    color: white;
    padding: 10px 20px;
    border: none;
    /*border-radius: 5px;*/
    width: 100%;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s ease-in-out;
}

.register-btn:hover {
    background-color: #5A462E;
}

#payment_section {
    text-align: center;
    margin-top: 30px;
}

#pay_button {
    background-color: #97740F;
    color: white;
    padding: 10px 20px;
    border: none;
    /*border-radius: 5px;*/
    cursor: pointer;
    font-size: 16px;
}

#pay_button:hover {
    background-color: #f44336;
}

/* استایل برای جدول دانشجویان */
.students-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.students-table th, .students-table td {
    padding: 10px;
    text-align: left;
    border: 1px solid #ddd;
}

.students-table th {
    /*background-color: #f2f2f2;*/
    color: #333;
}

.students-table tr:nth-child(even) {
    /*background-color: #f9f9f9;*/
}

.students-table tr:hover {
    background-color: #f1f1f1;
}

.students-table input, .students-table select {
    padding: 5px;
    width: 80%;
    margin: 5px 0;
    border-radius: 4px;
}

.save-grade-btn {
    background-color: #4CAF50;
    color: white;
    padding: 5px 10px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.save-grade-btn:hover {
    background-color: #45a049;
}
