/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;700&family=Tajawal:wght@400;700&family=Segoe+UI:wght@400;700&display=swap');

:root {
  --primary: #0056b6;
  --primary-dark: #003a7a;
  --accent: #ffd700;
  --bg: #f7fafd;
  --card-bg: #fff;
  --text: #222;
  --text-light: #666;
  --border: #e0e6ef;
  --shadow: 0 2px 12px rgba(0,0,0,0.07);
  --radius: 14px;
  --transition: 0.2s;
}

body {
  font-family: 'Cairo', 'Tajawal', 'Segoe UI', Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  margin: 0;
  padding: 0;
  min-height: 100vh;
  direction: rtl;
}
.ltr { direction: ltr !important; }
.rtl { direction: rtl !important; }

/* ================== */
/* Navbar New Styles  */
/* ================== */
.navbar-main {
    background-color: #fff;
    height: 70px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 0 25px;
    border-bottom: 1px solid var(--border);
}
.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    max-width: 1400px;
    margin: 0 auto;
}
.nav-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}
.nav-menu {
    display: flex;
    align-items: center;
    gap: 15px;
}
.nav-item {
    font-weight: 600;
    color: var(--text);
    text-decoration: none;
    padding: 8px 12px;
    border-radius: var(--radius);
    transition: background-color 0.2s, color 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}
.nav-item:hover, .nav-item.active {
    background-color: #eaf3ff;
    color: var(--primary);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* User Menu Dropdown */
.user-menu-container {
    position: relative;
}
.user-menu-button {
    display: flex;
    align-items: center;
    gap: 10px;
    background-color: transparent;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    padding: 8px 12px;
    border-radius: var(--radius);
    transition: background-color 0.2s;
}
.user-menu-button:hover {
    background-color: #f0f5fa;
}
.user-menu-button .fa-user-circle {
    font-size: 1.4rem;
    color: var(--primary);
}
.user-menu-button .fa-chevron-down {
    font-size: 0.8rem;
    transition: transform 0.2s;
}
.user-menu-button:hover .fa-chevron-down {
    transform: translateY(2px);
}

.user-menu-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    background-color: #fff;
    border-radius: var(--radius);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    width: 240px;
    z-index: 1100;
    border: 1px solid var(--border);
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
}
html[dir="rtl"] .user-menu-dropdown {
    left: auto;
    right: 0;
}
.user-menu-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 18px;
    color: var(--text);
    text-decoration: none;
    font-size: 0.95rem;
    transition: background-color 0.2s;
}
.dropdown-item i {
    width: 20px;
    text-align: center;
    color: #888;
}
.dropdown-item:hover {
    background-color: #f4f8fc;
}
.dropdown-divider {
    height: 1px;
    background-color: var(--border);
    margin: 8px 0;
}
.logout-item {
    color: #d9534f;
}
.logout-item i {
    color: #d9534f;
}

/* Nav Buttons */
.nav-btn-login, .nav-btn-register, .lang-switch {
    font-weight: 600;
    padding: 9px 18px;
    border-radius: var(--radius);
    text-decoration: none;
    transition: all 0.2s;
}
.nav-btn-login {
    background: #eaf3ff;
    color: var(--primary);
    border: 1px solid transparent;
}
.nav-btn-login:hover {
    background: #d1e7ff;
}
.nav-btn-register {
    background: var(--primary);
    color: #fff;
    border: 1px solid var(--primary);
}
.nav-btn-register:hover {
    background: var(--primary-dark);
}
.lang-switch {
    background: none;
    border: 1px solid var(--border);
    color: var(--text-light);
    font-size: 1.1rem;
    padding: 8px 10px;
}

/* Responsive Navbar */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text);
    cursor: pointer;
}

@media (max-width: 992px) {
    .nav-menu, .nav-actions {
        position: absolute;
        top: 70px;
        right: 0;
        width: 100%;
        background-color: #fff;
        flex-direction: column;
        align-items: stretch;
        padding: 15px;
        box-shadow: 0 10px 20px rgba(0,0,0,0.08);
        border-top: 1px solid var(--border);
        display: none; /* Hidden by default */
    }
    .nav-actions {
        top: calc(70px + 120px); /* Position below nav-menu, adjust as needed */
    }
    .nav-menu.active, .nav-actions.active {
        display: flex;
    }
    .nav-toggle {
        display: block;
    }
    .user-menu-dropdown {
        position: static;
        width: 100%;
        box-shadow: none;
        border: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
    }
    .user-menu-dropdown.show {
        display: block;
    }
}
@media (max-width: 480px) {
    .navbar-main { padding: 0 15px; }
    .nav-logo { font-size: 1.3rem; }
}

body { padding-top: 70px !important; }

/* Header & Hero */
.main-header {
  background: linear-gradient(135deg, #0056b3, #003a7a);
  color: white;
  padding: 40px 15px;
  text-align: center;
  margin-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.main-header h1 { font-size: 2.3rem; margin-bottom: 10px; }
.main-header p { font-size: 1.1rem; color: #e0e6ef; }
.hero {
  background: #eaf3ff;
  text-align: center;
  padding: 30px 10px;
  font-size: 1.2rem;
  color: var(--primary-dark);
  margin-bottom: 30px;
  border-radius: var(--radius);
}

/* Cards & Sections */
.sections {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 28px;
  padding: 20px 10px 40px 10px;
}
.card {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px 20px 22px 20px;
  max-width: 320px;
  min-width: 220px;
  text-align: center;
  transition: transform 0.18s, box-shadow 0.18s;
  border: 1px solid var(--border);
}
.card:hover {
  transform: translateY(-6px) scale(1.03);
  box-shadow: 0 6px 24px rgba(0,86,182,0.13);
  border-color: var(--accent);
}
.card i { color: var(--primary); margin-bottom: 10px; }
.card h3 { margin: 10px 0 8px 0; font-size: 1.2rem; }
.card p { color: var(--text-light); font-size: 1rem; }

/* Forms */
form {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 35px 40px;
  max-width: 750px;
  margin: 40px auto;
  border: 1px solid var(--border);
}
label { font-weight: 600; margin-bottom: 6px; display: block; color: var(--primary-dark); }
input, select, textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: 7px;
  border: 1px solid var(--border);
  margin-bottom: 18px;
  font-size: 1rem;
  background: #f9fbfd;
  transition: border var(--transition);
  box-sizing: border-box;
  font-family: inherit;
}

/* تحسين النصوص في حقول الإدخال */
input::placeholder, textarea::placeholder {
  color: #999;
  opacity: 1;
  font-size: 0.95rem;
  font-weight: 400;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}

/* تحسين النصوص العربية في حقول الإدخال */
html[dir="rtl"] input::placeholder,
html[dir="rtl"] textarea::placeholder {
  text-align: right;
  direction: rtl;
}

html[dir="ltr"] input::placeholder,
html[dir="ltr"] textarea::placeholder {
  text-align: left;
  direction: ltr;
}

/* تحسين عرض النصوص الطويلة */
input[type="text"], input[type="email"], input[type="password"], input[type="number"], textarea {
  text-overflow: ellipsis;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* تحسين النصوص في textarea */
textarea {
  resize: vertical;
  min-height: 80px;
  line-height: 1.4;
}

textarea::placeholder {
  white-space: normal;
  line-height: 1.4;
}

/* تحسين النصوص في select */
select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
  background-position: right 8px center;
  background-repeat: no-repeat;
  background-size: 16px;
  padding-right: 40px;
}

/* تحسين النصوص في حقول التاريخ والوقت */
input[type="date"], input[type="time"] {
  font-family: inherit;
  color: var(--text);
}

input[type="date"]::-webkit-calendar-picker-indicator,
input[type="time"]::-webkit-calendar-picker-indicator {
  cursor: pointer;
  opacity: 0.7;
  transition: opacity var(--transition);
}

input[type="date"]::-webkit-calendar-picker-indicator:hover,
input[type="time"]::-webkit-calendar-picker-indicator:hover {
  opacity: 1;
}

input:focus, select:focus, textarea:focus {
  border-color: var(--primary);
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 86, 182, 0.1);
}
button, .btn, input[type=submit] {
  background: var(--primary);
  color: #fff;
  border: 1px solid transparent;
  border-radius: 7px;
  padding: 10px 22px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition), box-shadow var(--transition);
  box-shadow: 0 2px 8px rgba(0,86,182,0.07);
  margin-bottom: 8px;
}
button:hover, .btn:hover, input[type=submit]:hover {
  background: var(--primary-dark);
}

.btn-primary {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: #fff;
    border-color: #228b3b;
}
.btn-primary:hover {
    background: linear-gradient(135deg, #218838, #17a2b8);
    border-color: #1a6d2d;
}

.btn-secondary {
    background-color: #6c757d;
    color: white;
    border-color: #6c757d;
}

.btn-secondary:hover {
    background-color: #5a6268;
    border-color: #5a6268;
}

.btn-lg {
    padding: 15px 40px;
    font-size: 1.2rem;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(0,86,182,0.2);
    transition: transform 0.2s ease-out, box-shadow 0.2s ease-out;
}
.btn-lg:hover {
    transform: translateY(-3px);
    box-shadow: 0 7px 20px rgba(0,86,182,0.3);
}

/* Alerts & Messages */
.msg, .error, .success {
  text-align: center;
  padding: 10px 0;
  border-radius: 7px;
  margin-bottom: 18px;
  font-weight: 600;
}
.msg { color: var(--primary-dark); background: #eaf3ff; }
.error { color: #b60000; background: #ffeaea; }
.success { color: #1a7f3c; background: #eaffea; }

/* Footer */
.main-footer {
  background: var(--primary-dark);
  color: #fff;
  text-align: center;
  padding: 18px 10px 12px 10px;
  border-radius: var(--radius) var(--radius) 0 0;
  font-size: 1rem;
  margin-top: 40px;
  box-shadow: 0 -2px 12px rgba(0,0,0,0.04);
}

/* Utilities */
.text-center { text-align: center; }
.flex { display: flex; }
.gap-1 { gap: 8px; }
.gap-2 { gap: 18px; }

/* RTL/LTR support */
html[dir="rtl"] body, .rtl { direction: rtl; }
html[dir="ltr"] body, .ltr { direction: ltr; }

/* Scrollbar */
::-webkit-scrollbar { width: 8px; background: #e0e6ef; }
::-webkit-scrollbar-thumb { background: #b3c6e0; border-radius: 6px; }

/* Responsive Cards/Sections */
@media (max-width: 900px) {
  .sections { flex-direction: column; align-items: center; }
  .card { max-width: 95vw; }
}
@media (max-width: 600px) {
  .main-header { padding: 24px 4px 12px 4px; }
  .hero { padding: 18px 4px; font-size: 1rem; }
  .sections { gap: 14px; padding: 10px 2px 20px 2px; }
  form { padding: 16px 6px; }
  
  /* تحسين النصوص في حقول الإدخال للشاشات الصغيرة */
  input, select, textarea {
    font-size: 16px; /* منع التكبير التلقائي في iOS */
    padding: 12px 10px;
  }
  
  input::placeholder, textarea::placeholder {
    font-size: 16px;
  }
  
  /* تحسين عرض النصوص الطويلة في الشاشات الصغيرة */
  input[type="text"], input[type="email"], input[type="password"], input[type="number"] {
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
  }
  
  /* تحسين textarea للشاشات الصغيرة */
  textarea {
    min-height: 100px;
    line-height: 1.5;
  }
  
  textarea::placeholder {
    white-space: normal;
    line-height: 1.5;
  }
}

/* Hide number arrows for input[type=number] */
input[type=number]::-webkit-inner-spin-button, input[type=number]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
input[type=number] { -moz-appearance: textfield; }

/* Custom for availability cards, etc. */
.avail-card {
  background: #f9fbfd;
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: 10px;
  padding: 12px 10px;
  box-shadow: 0 1px 4px rgba(0,86,182,0.04);
}

/* Custom for course/room cards */
.course, .room, .booking {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px 16px;
  margin-bottom: 18px;
  border: 1px solid var(--border);
}

.course-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
    padding: 0 5px 5px 5px;
}

.btn-instructor-profile,
.btn-view-details {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background-color: transparent;
    color: var(--primary);
    padding: 10px 16px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    border: 2px solid var(--primary);
    transition: all 0.2s ease-in-out;
    width: 100%; /* Make button take full width of actions container */
    box-sizing: border-box;
}

.btn-instructor-profile:hover,
.btn-view-details:hover {
    background-color: var(--primary);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 86, 178, 0.2);
}

/* Custom for filter bar */
.filters {
    background-color: var(--card-bg);
    padding: 20px;
    border-radius: var(--radius);
    margin: 25px;
    max-width: 1400px;
    margin: 25px auto;
    display: flex;
    gap: 20px;
    align-items: center;
    border: 1px solid var(--border);
}

.filters label {
    margin-bottom: 0;
}

.filters select {
    min-width: 200px;
    border-radius: 8px;
    border-color: #ccc;
}

/* محاذاة النص داخل الحقول للغات المختلفة */
html[dir="rtl"] input,
html[dir="rtl"] textarea,
html[dir="rtl"] select {
    text-align: right;
    direction: rtl;
}

html[dir="ltr"] input,
html[dir="ltr"] textarea,
html[dir="ltr"] select {
    text-align: left;
    direction: ltr;
}

/* End of style.css */

/* Student Dashboard */
.dashboard-container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 20px;
}

.dashboard-header {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    padding: 30px;
    border-radius: var(--radius);
    margin-bottom: 30px;
    text-align: center;
}

.dashboard-header h1 {
    margin: 0;
    font-size: 2.2rem;
    font-weight: 700;
}

.dashboard-header .student-name {
    color: var(--accent);
}

.dashboard-header p {
    margin: 10px 0 0;
    font-size: 1.1rem;
    opacity: 0.9;
}

.dashboard-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.dashboard-card {
    background-color: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    padding: 25px;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s, box-shadow 0.3s;
    border-left: 5px solid var(--primary);
}

.dashboard-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 86, 182, 0.15);
}

.dashboard-card .card-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-right: 20px;
}
html[dir="rtl"] .dashboard-card .card-icon {
    margin-right: 0;
    margin-left: 20px;
}

.dashboard-card .card-content h3 {
    margin: 0 0 5px;
    font-size: 1.3rem;
    color: var(--primary-dark);
}

.dashboard-card .card-content p {
    margin: 0;
    color: var(--text-light);
    font-size: 0.95rem;
}

/* =================================== */
/* == Instructor Profile Page Styles == */
/* =================================== */

.profile-page-container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 15px;
}

.profile-banner {
    background: linear-gradient(135deg, var(--primary), #3b5998);
    color: #fff;
    padding: 30px;
    border-radius: var(--radius);
    margin-bottom: 30px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.profile-banner .banner-content {
    display: flex;
    align-items: center;
    gap: 25px;
}

.profile-banner .profile-avatar {
    font-size: 50px;
    width: 100px;
    height: 100px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: grid;
    place-items: center;
    border: 3px solid rgba(255,255,255,0.3);
}

.profile-banner-info h1 {
    margin: 0 0 5px 0;
    font-size: 2.5rem;
    font-weight: 700;
}
.profile-banner-info p {
    margin: 0;
    font-size: 1.2rem;
    opacity: 0.9;
}
.rating-display {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0,0,0,0.2);
    padding: 5px 15px;
    border-radius: 20px;
    margin-top: 15px;
    font-size: 1.1rem;
    font-weight: bold;
}
.rating-display .fa-star {
    color: var(--accent);
}

.profile-main-content {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
}

.profile-sidebar .sidebar-widget {
    margin-bottom: 25px;
    padding: 20px;
}

.sidebar-widget h3 {
    font-size: 1.2rem;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--primary-dark);
}
.bio-text {
    line-height: 1.7;
    color: var(--text-light);
    font-size: 0.95rem;
}
.contact-info {
    list-style: none;
    padding: 0;
    margin-top: 20px;
}
.contact-info li {
    margin-bottom: 12px;
    color: var(--text);
    font-size: 0.9rem;
}
.contact-info li i {
    color: var(--primary);
    margin-left: 8px;
    width: 20px;
    text-align: center;
}

.reviews-list {
    list-style: none;
    padding: 0;
}
.review-item {
    border-bottom: 1px solid var(--border);
    padding-bottom: 12px;
    margin-bottom: 12px;
}
.review-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}
.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}
.review-header strong {
    font-size: 0.9rem;
}
.review-rating {
    font-size: 0.9rem;
    font-weight: bold;
    color: var(--primary-dark);
}
.review-rating .fa-star { color: var(--accent); }
.review-comment {
    font-size: 0.85rem;
    color: var(--text-light);
    line-height: 1.5;
    margin: 0;
    padding-right: 10px;
    border-right: 3px solid #eaf3ff;
}

.profile-courses h2 {
    font-size: 1.5rem;
    color: var(--primary-dark);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border);
}

.courses-grid-profile {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.course-card-mini {
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    transition: all 0.2s ease-in-out;
    border: 1px solid var(--border);
}
.course-card-mini:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,86,182,0.12);
}
.course-card-mini-header {
    padding: 15px;
    border-bottom: 1px solid var(--border);
}
.course-card-mini-header h4 {
    margin: 0;
    font-size: 1.1rem;
}
.course-card-mini-header a {
    text-decoration: none;
    color: var(--primary-dark);
    transition: color 0.2s;
}
.course-card-mini-header a:hover {
    color: var(--accent);
}

.course-card-mini-body {
    padding: 15px;
    flex-grow: 1;
}
.course-card-mini-body p {
    margin: 0 0 10px 0;
    font-size: 0.9rem;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 8px;
}
.course-card-mini-footer {
    padding: 15px;
    background: #f8f9fa;
    border-top: 1px solid var(--border);
}
.btn-mini-details {
    display: block;
    text-align: center;
    background: var(--primary);
    color: #fff;
    padding: 8px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.2s;
}
.btn-mini-details:hover {
    background: var(--primary-dark);
}

@media (max-width: 900px) {
    .profile-main-content {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 600px) {
    .profile-banner .banner-content {
        flex-direction: column;
        text-align: center;
    }
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

/* Homepage Styles */
.homepage .hero-section {
    background: linear-gradient(135deg, rgba(76, 92, 168, 0.9), rgba(46, 35, 82, 0.95)), url('https://images.unsplash.com/photo-1522202176988-66273c2fd55f?ixlib=rb-4.0.3&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=1740&q=80') no-repeat center center/cover;
    padding: 120px 0;
    text-align: center;
    color: #fff;
    position: relative;
}

.homepage .hero-section .container {
    position: relative;
    z-index: 2;
}

.homepage .hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.5);
}

.homepage .hero-subtitle {
    font-size: 1.4rem;
    max-width: 700px;
    margin: 0 auto 40px;
    opacity: 0.9;
}

.homepage .features-section {
    padding: 80px 20px;
    background-color: #f8f9fa;
}

.homepage .section-header {
    text-align: center;
    margin-bottom: 60px;
}

.homepage .section-header h2 {
    font-size: 2.8rem;
    font-weight: 700;
    color: #343a40;
    margin-bottom: 15px;
}

.homepage .section-header p {
    font-size: 1.2rem;
    color: #6c757d;
    max-width: 600px;
    margin: 0 auto;
}

.homepage .features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    text-align: center;
}

.feature-card-link {
    text-decoration: none;
    color: inherit;
}

.homepage .feature-card {
    background-color: #fff;
    padding: 40px 30px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.04);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.homepage .feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.08);
}

.homepage .feature-icon {
    font-size: 3rem;
    color: #4c5ca8;
    margin-bottom: 20px;
}

.homepage .feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #343a40;
}

.homepage .latest-courses-section {
    padding: 80px 20px;
    background-color: #fff;
}

.homepage .courses-grid-homepage {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.view-all-courses-container {
    text-align: center;
    margin-top: 40px;
}

.course-card-homepage {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.07);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.course-card-homepage:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.1);
}

.course-card-homepage .course-card-content {
    padding: 25px;
}
.course-card-homepage .course-card-content h3 {
    font-size: 1.4rem;
    margin-top: 0;
    margin-bottom: 10px;
    color: #333;
}

.course-card-homepage .course-card-content h3 a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s ease;
}

.course-card-homepage .course-card-content h3 a:hover {
    color: var(--primary);
}

.course-card-homepage .instructor-name {
    color: #666;
    font-size: 1rem;
    margin-bottom: 0;
}
.course-card-homepage .instructor-name i {
    margin-right: 5px;
    color: #888;
}
[dir="rtl"] .course-card-homepage .instructor-name i {
    margin-left: 5px;
    margin-right: 0;
}

.course-card-homepage .course-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    background-color: #f8f9fa;
    border-top: 1px solid #e9ecef;
}
.course-card-homepage .price-tag {
    font-size: 1.3rem;
    font-weight: 700;
    color: #4c5ca8;
}
.course-card-homepage .btn-secondary {
    background-color: #6c757d;
    color: white;
}
.course-card-homepage .btn-secondary:hover {
    background-color: #5a6268;
}


.homepage .cta-section {
    background-color: #4c5ca8;
    color: white;
    padding: 80px 20px;
    text-align: center;
}

.homepage .cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.homepage .cta-section p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.main-footer {
    background-color: #343a40;
    color: #adb5bd;
    padding: 25px 0;
    text-align: center;
    font-size: 0.9rem;
}

/* Responsive adjustments for homepage */
@media (max-width: 768px) {
    .homepage .hero-title {
        font-size: 2.5rem;
    }
    .homepage .hero-subtitle {
        font-size: 1.1rem;
    }
    .homepage .section-header h2 {
        font-size: 2.2rem;
    }
}


.form-container, .profile-container, .dashboard-container, .courses-container, .instructor-profile-container, .view-instructor-container, .room-management-container, .create-course-container {
    background: #fff;
    max-width: 1400px;
    margin: 30px auto;
    padding: 0 20px;
}

/* ================== */
/* Courses Page Styles */
/* ================== */

.courses-page-container .page-header {
    background: var(--card-bg);
    padding: 30px;
    border-radius: var(--radius);
    margin-bottom: 30px;
    border: 1px solid var(--border);
}

.courses-page-container .page-header h1 {
    color: var(--primary-dark);
    font-size: 2rem;
    text-align: center;
    margin: 0 0 10px 0;
}

.courses-page-container .page-header p {
    color: var(--text-light);
    font-size: 1.1rem;
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.filters-section {
    background: var(--card-bg);
    padding: 20px;
    border-radius: var(--radius);
    margin: 0 auto 30px auto;
    max-width: 1200px;
    box-shadow: var(--shadow);
}

.filters-form {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 20px;
}

.filters-form .filter-item {
    flex-grow: 1;
}
.filters-form .filter-item label {
    font-weight: 600;
    margin-bottom: 8px;
    display: block;
    color: #555;
    font-size: 0.9rem;
}
.filters-form .filter-item label i {
    margin-right: 5px;
}
[dir="rtl"] .filters-form .filter-item label i {
    margin-left: 5px;
    margin-right: 0;
}


.filters-form .filter-actions {
    display: flex;
    gap: 10px;
}

.courses-content {
    padding: 0 20px 30px 20px;
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 30px;
}

.course-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s, box-shadow 0.3s;
    animation: card-entry 0.6s ease-out forwards;
    opacity: 0; /* Initially hidden for animation */
}

/* Keyframes for card entry animation */
@keyframes card-entry {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Staggered animation delay for the first few cards */
.courses-container .course-card:nth-child(1) { animation-delay: 0.1s; }
.courses-container .course-card:nth-child(2) { animation-delay: 0.2s; }
.courses-container .course-card:nth-child(3) { animation-delay: 0.3s; }
.courses-container .course-card:nth-child(4) { animation-delay: 0.4s; }
.courses-container .course-card:nth-child(5) { animation-delay: 0.5s; }
.courses-container .course-card:nth-child(6) { animation-delay: 0.6s; }

.course-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 20px rgba(0,0,0,0.08);
    border-color: var(--primary); /* Added border color on hover */
}

.course-card .course-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease; /* Added transition for zoom effect */
}

.course-card:hover .course-image {
    transform: scale(1.05); /* Zoom effect on hover */
}

.course-card .course-card-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.course-card h3 {
    margin-top: 0;
    font-size: 1.25rem;
    color: var(--primary);
    line-height: 1.4;
}

.course-card .course-description {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 15px;
}

.course-meta {
    margin-bottom: 15px;
}

.course-meta p {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--text);
    margin-bottom: 8px;
}

.course-meta p i {
    color: var(--primary);
    font-size: 1.1em;
}

.course-meta p span {
    font-weight: 700;
    color: var(--text-light);
}

.course-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid var(--border);
}

.course-price {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary);
}

.course-card .enroll-form {
    margin: 0;
}

.course-card .btn {
    padding: 10px 20px;
}

.btn-enroll {
    display: block;
    width: 100%;
    text-align: center;
    padding: 12px;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s;
}

.btn-enroll, a.btn-enroll {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: #fff;
    border: none;
}
.btn-enroll:hover, a.btn-enroll:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.2);
}

.enrollment-status {
    display: block;
    width: 100%;
    text-align: center;
    padding: 12px;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 8px;
}
.status-paid {
    background-color: #eafaf1;
    color: #1a7f3c;
    cursor: default;
}
.status-unpaid, a.status-unpaid {
    background-color: #fff;
    color: #228b3b;
    border: 2px solid #28a745;
}
.status-unpaid:hover, a.status-unpaid:hover {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: #fff;
    border-color: #28a745;
}


.no-courses-found {
    text-align: center;
    padding: 60px 20px;
    background: #f8f9fa;
    border-radius: var(--radius);
}
.no-courses-found i {
    font-size: 4rem;
    color: #ced4da;
    margin-bottom: 20px;
}
.no-courses-found h3 {
    font-size: 1.8rem;
    color: #495057;
    margin-bottom: 10px;
}
.no-courses-found p {
    color: #6c757d;
    margin-bottom: 25px;
}

@media (max-width: 768px) {
    .filters-form {
        flex-direction: column;
        align-items: stretch;
    }
}

/* Courses Page Grid */
.courses-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    padding: 25px;
    max-width: 1400px;
    margin: 0 auto;
}

.course-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s, box-shadow 0.2s;
}

.course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.course-card .course-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.course-card .course-card-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.course-card h3 {
    margin-top: 0;
    font-size: 1.25rem;
    color: var(--primary);
}

.course-card p {
    margin: 5px 0;
    color: var(--text-light);
    line-height: 1.6;
}

.course-card p strong {
    color: var(--text);
}

.course-card form, .course-card .btn {
    margin-top: auto; /* Pushes button to the bottom */
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .courses-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .courses-container {
        grid-template-columns: 1fr;
        padding: 15px;
    }
}

/* ======================================== */
/* My Courses Page - Design from Image      */
/* ======================================== */

.my-courses-page {
    background-color: #f0f4f8; /* Light grey background for the page */
    padding-bottom: 30px;
}

.page-header {
    background-color: white;
    padding: 30px;
    border-radius: var(--radius);
    margin-bottom: 30px;
    box-shadow: var(--shadow);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid var(--border);
}

.page-header h1 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin: 0 0 5px 0;
}

.page-header p {
    font-size: 1rem;
    color: var(--text-light);
    margin: 0;
}

.main-header-design {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    padding: 40px 20px 120px;
    text-align: center;
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1); /* Subtle separator */
}

.main-header-design h1 {
    margin: 0 0 10px 0;
    font-size: 2.5rem;
}

.main-header-design p {
    margin: 0;
    font-size: 1.1rem;
    opacity: 0.9;
}

.page-content-wrapper {
    max-width: 1400px;
    margin: -70px auto 30px auto; /* Adjusted negative margin to position cards correctly */
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card-design {
    color: white;
    padding: 20px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    transform: skewX(-8deg);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stat-card-design:hover {
    transform: skewX(0) scale(1.05);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.stat-card-design > * {
    transform: skewX(8deg); /* Un-skew the content */
}

.stat-card-design i {
    font-size: 1.5rem;
    opacity: 0.7;
    margin-bottom: 15px;
}
.stat-card-design .stat-number {
    font-size: 2.2rem;
    font-weight: 700;
}
.stat-card-design .stat-label {
    font-size: 1rem;
    opacity: 0.9;
}

/* Stat card colors */
.stat-card-design.blue { background: linear-gradient(135deg, #0d6efd, #0a58ca); }
.stat-card-design.green { background: linear-gradient(135deg, #198754, #146c43); }
.stat-card-design.yellow { background: linear-gradient(135deg, #ffc107, #d39e00); }
.stat-card-design.red { background: linear-gradient(135deg, #dc3545, #b02a37); }
.stat-card-design.purple { background: linear-gradient(135deg, #6f42c1, #59359a); }


/* Courses Section */
.courses-section-title {
    font-size: 1.8rem;
    color: #333;
    margin-bottom: 20px;
}

.courses-grid-design {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.course-card-design {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.07);
    border: 1px solid #e0e6ef;
    display: flex;
    flex-direction: column;
}

.card-header-design {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 15px;
}
.card-header-design h3 { margin: 0; font-size: 1.3rem; color: #222; }

.status-badges { display: flex; flex-direction: column; gap: 8px; align-items: flex-end; }
.badge-status-course, .badge-status-payment { font-size: 0.75rem; padding: 4px 10px; border-radius: 15px; color: #fff; font-weight: 600; }

.badge-status-course.completed, .badge-status-payment.paid { background: #28a745; }
.badge-status-course.ongoing { background: #007bff; }
.badge-status-course.upcoming { background: #ffc107; color: #212529; }
.badge-status-payment.unpaid { background: #dc3545; }


.card-body-design { padding: 0 20px 20px 20px; }

.card-desc-design {
    background: #f8f9fa;
    border-left: 4px solid #007bff;
    padding: 15px;
    margin: 0 0 20px 0;
    border-radius: 4px;
    font-size: 0.95rem;
    color: #495057;
}
html[dir="rtl"] .card-desc-design { border-left: none; border-right: 4px solid #007bff; }


.course-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    font-size: 0.9rem;
    color: #555;
    margin-bottom: 20px;
}
.detail-item i { color: #007bff; margin-right: 8px; }
html[dir="rtl"] .detail-item i { margin-right: 0; margin-left: 8px; }
.detail-item.price { grid-column: 1 / -1; font-weight: bold; font-size: 1rem; }


.progress-section {
    display: flex;
    align-items: center;
    gap: 15px;
    background: #e9ecef;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 20px;
}
.progress-bar-track { flex-grow: 1; height: 10px; background: #dce2e8; border-radius: 5px; overflow: hidden; }
.progress-bar-fill { height: 100%; background: #28a745; border-radius: 5px; }


.instructor-section-design {
    background: #fff8e1;
    border: 1px solid #ffecb3;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}
.instructor-section-design > div { margin-bottom: 8px; }
.instructor-section-design > div:last-child { margin-bottom: 0; }
.instructor-section-design i { color: #f57f17; margin-right: 8px; }
html[dir="rtl"] .instructor-section-design i { margin-right: 0; margin-left: 8px; }
.instructor-name { font-weight: bold; font-size: 1.1rem; }


.card-footer-design {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.action-btn {
    flex-grow: 1;
    text-align: center;
    text-decoration: none;
    color: #fff;
    padding: 10px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: opacity 0.2s;
}
.action-btn:hover { opacity: 0.85; }
.action-btn i { margin-right: 6px; }
html[dir="rtl"] .action-btn i { margin-right: 0; margin-left: 6px; }

.action-btn.pay { background: #28a745; }
.action-btn.receipt { background: #0d6efd; }
.action-btn.review { background: #ffc107; color: #212529;}
.action-btn.contact { background: #6c757d; }
.action-btn.unenroll { background: #dc3545; }


/* Responsive */
@media (max-width: 1200px) {
    .courses-grid-design { grid-template-columns: 1fr; }
}

@media (max-width: 992px) {
    .stats-grid { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
}

@media (max-width: 768px) {
    .main-header-design { padding: 20px; }
    .page-content-wrapper { margin-top: -30px; }
    .course-details-grid { grid-template-columns: 1fr; }
}

.dashboard-links a:hover {
    background-color: var(--primary-dark);
}

/* Instructor Courses Page V2 */
.instructor-courses-page .page-header {
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.page-header .header-content p.page-subtitle {
    margin: 5px 0 0 0;
    color: rgba(255, 255, 255, 0.85);
    font-size: 1rem;
}

a.btn-primary-outline {
    background: #0056b6;
    color: #fff;
    border: 2px solid #0056b6;
    font-weight: 700;
    padding: 12px 28px;
    border-radius: 8px;
    font-size: 1.1rem;
    transition: background 0.2s, color 0.2s, border 0.2s;
    box-shadow: 0 2px 8px rgba(0,86,182,0.07);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}
a.btn-primary-outline:hover, a.btn-primary-outline:focus {
  background: #003a7a;
  color: #fff;
  border-color: #003a7a;
}

.instructor-stats-bar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.instructor-stats-bar .stat-card {
    background: #fff;
    padding: 25px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: var(--shadow-light);
    transition: all 0.3s ease;
}

.instructor-stats-bar .stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.instructor-stats-bar .stat-card i {
    font-size: 2.5rem;
    color: var(--primary);
    background: var(--gradient-primary-light);
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}

.instructor-stats-bar .stat-card .stat-info span {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-dark);
    line-height: 1.2;
}

.instructor-stats-bar .stat-card .stat-info p {
    margin: 0;
    color: var(--text-light);
}


.courses-grid-v2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 25px;
}

.course-card-v2 {
    background-color: #fff;
    border-radius: var(--radius);
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease-in-out;
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}


.course-card-v2:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.card-v2-header {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.card-v2-header img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

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

.course-status {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 5px 12px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-active { background-color: #28a745; }
.status-upcoming { background-color: #17a2b8; }
.status-finished { background-color: #6c757d; }

.card-v2-body {
    padding: 20px;
    flex-grow: 1;
}

.card-v2-body h3 {
    margin: 0 0 15px 0;
    font-size: 1.3rem;
    color: var(--primary-dark);
}

.card-v2-details {
    display: flex;
    justify-content: space-between;
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.card-v2-details span i {
    margin-right: 5px;
}
html[dir=rtl] .card-v2-details span i {
    margin-left: 5px;
    margin-right: 0;
}

.card-v2-stats {
    display: flex;
    justify-content: space-around;
    text-align: center;
    border-top: 1px solid var(--border);
    margin-top: 15px;
    padding-top: 15px;
}

.card-v2-stats .stat strong {
    display: block;
    font-size: 1.4rem;
    color: var(--primary);
    font-weight: 700;
}

.card-v2-stats .stat small {
    color: var(--text-light);
    font-size: 0.8rem;
}

.card-v2-footer {
    padding: 0 20px 20px 20px;
}

.card-v2-footer .toggle-students-btn {
    width: 100%;
    background-color: #f0f2f5;
    color: #333;
    border: none;
    padding: 12px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.card-v2-footer .toggle-students-btn:hover {
    background-color: var(--primary-dark);
    color: white;
}

.toggle-students-btn .hide-text {
    display: none;
}
.toggle-students-btn.active .hide-text {
    display: inline-flex;
}
.toggle-students-btn.active .view-text {
    display: none;
}
.toggle-students-btn span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.students-list-v2 {
    background: #fdfdff;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out, padding 0.5s ease-out;
    padding: 0 15px;
    border-top: 1px solid transparent; /* Prepare for border transition */
}

.students-list-v2.show {
    max-height: 400px; /* Adjust as needed */
    overflow-y: auto;
    padding: 15px;
    border-top: 1px solid var(--border);
}

.students-list-v2 table {
    width: 100%;
    border-collapse: collapse;
}

.students-list-v2 th, .students-list-v2 td {
    padding: 10px 15px;
    text-align: start;
}

.students-list-v2 th {
    background-color: #f8f9fa;
    font-size: 0.9rem;
    color: var(--text-light);
}

.students-list-v2 td {
    border-top: 1px solid var(--border);
    font-size: 0.95rem;
}

/* Cleanup old styles */
.courses-grid, .course-card, .course-card-header, .course-image, .course-price, .course-card-body, .course-duration, .course-stats, .stat-item, .course-card .toggle-students-btn, .students-list {
    display: none !important;
}

/* ================================= */
/* Homepage Styles v2                */
/* ================================= */

.homepage {
    background-color: var(--bg);
}

.homepage main {
    padding-top: 70px; /* Same as navbar height */
}

.homepage .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Hero Section v2 */
.hero-section-v2 {
    background: linear-gradient(135deg, rgba(0, 86, 182, 0.85), rgba(0, 58, 122, 0.95)), url('https://images.unsplash.com/photo-1464983953574-0892a716854b?auto=format&fit=crop&w=1200&q=80') center/cover no-repeat;
    padding: 120px 0;
    text-align: center;
    color: white;
    /* border: 10px solid red !important; */
    border-radius: 18px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
    margin: 30px 0 0 0;
    /* أزل الإطار الأحمر وأضف ظل وحواف دائرية */
}

.hero-content-v2 {
    max-width: 750px;
    margin: 0 auto;
    animation: fadeInUp 0.8s ease-out;
}

.hero-title-v2 {
    font-size: 3.2rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.2);
}

.hero-subtitle-v2 {
    font-size: 1.25rem;
    margin-bottom: 40px;
    opacity: 0.9;
    line-height: 1.7;
}

.btn-primary-v2, .btn-secondary-v2 {
    padding: 14px 35px;
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: 2px solid transparent;
}

.btn-primary-v2 {
    background-color: var(--accent);
    color: #111;
}

.btn-primary-v2:hover {
    background-color: #ffd000;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.25);
}

.btn-secondary-v2 {
    background-color: var(--card-bg);
    color: var(--primary);
    border-color: var(--border);
}

.btn-secondary-v2:hover {
    background-color: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

/* Features Section v2 */
.features-section-v2, .latest-courses-section-v2, .cta-section-v2 {
    padding: 80px 0;
}
.latest-courses-section-v2 {
    background-color: #ffffff;
}
.section-header-v2 {
    text-align: center;
    margin-bottom: 60px;
}
.section-header-v2 h2 {
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 15px;
}
.section-header-v2 p {
    font-size: 1.15rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}
.features-grid-v2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}
.feature-card-v2 {
    background-color: var(--card-bg);
    border-radius: var(--radius);
    padding: 40px;
    text-align: center;
    border: 1px solid var(--border);
    transition: transform 0.3s, box-shadow 0.3s;
}
.feature-card-v2:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(0, 86, 182, 0.1);
}
.feature-card-v2 i {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 25px;
    display: inline-block;
    background: linear-gradient(135deg, #eaf3ff, #fff);
    width: 80px;
    height: 80px;
    line-height: 80px;
    border-radius: 50%;
}
.feature-card-v2 h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--primary-dark);
}
.feature-card-v2 p {
    color: var(--text-light);
    line-height: 1.6;
}

/* Latest Courses Section v2 */
.courses-grid-v3 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

@media (min-width: 768px) {
    .courses-grid-v3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .courses-grid-v3 {
        grid-template-columns: repeat(3, 1fr);
    }
}

.course-card-v3 {
    background-color: var(--card-bg);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s, box-shadow 0.3s;
}
.course-card-v3:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow);
}
.course-card-v3-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}
.course-card-v3-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.course-card-v3:hover .course-card-v3-image img {
    transform: scale(1.05);
}
.course-card-v3-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.course-card-v3-content h3 {
    font-size: 1.2rem;
    margin: 0 0 15px 0;
}
.course-card-v3-content h3 a {
    color: var(--text);
    text-decoration: none;
    transition: color 0.2s;
}
.course-card-v3-content h3 a:hover {
    color: var(--primary);
}
.course-card-v3-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 20px;
}
.course-card-v3-meta span {
    display: flex;
    align-items: center;
    gap: 8px;
}
.course-card-v3-footer {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border);
    padding-top: 15px;
}
.course-card-v3-footer .price {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary);
}
.course-card-v3-footer .btn-details {
    background-color: var(--primary);
    color: white;
    padding: 8px 18px;
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: background-color 0.2s;
}
.course-card-v3-footer .btn-details:hover {
    background-color: var(--primary-dark);
}
.view-all-container {
    text-align: center;
    margin-top: 50px;
}

/* CTA Section v2 */
.cta-section-v2 {
    background-color: var(--primary-dark);
    color: white;
    text-align: center;
}
.cta-section-v2 h2 {
    font-size: 2.2rem;
    margin-bottom: 20px;
}

/* Footer v2 */
.main-footer-v2 {
    background-color: #1c2733;
    color: #a9b3c1;
    text-align: center;
    padding: 25px 0;
    font-size: 0.9rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-title-v2 { font-size: 2.5rem; }
    .hero-subtitle-v2 { font-size: 1.1rem; }
    .section-header-v2 h2 { font-size: 2rem; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ================================= */
/* Course Card v4 Styles             */
/* ================================= */

.course-card-v4 {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0,0,0,0.04);
}
.course-card-v4:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 20px rgba(0, 86, 182, 0.1);
}

.card-v4-header {
    position: relative;
    height: 200px;
}
.card-v4-header img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.instructor-tag {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background 0.2s;
    backdrop-filter: blur(4px);
}
html[dir="rtl"] .instructor-tag {
    right: auto;
    left: 12px;
}
.instructor-tag:hover {
    background: var(--primary);
}

.card-v4-body {
    padding: 20px;
    flex-grow: 1;
}
.card-v4-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0 0 10px;
    color: var(--primary-dark);
}
.card-v4-description {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 20px;
    height: 85px; /* Fixed height for 4-5 lines */
    overflow: auto;
}
.card-v4-details {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    font-size: 0.9rem;
}
.card-v4-details > div {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
}
.card-v4-details i {
    color: var(--primary);
    width: 16px;
    text-align: center;
}
.card-v4-details strong {
    color: var(--primary-dark);
}

.card-v4-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: #fcfdff;
    border-top: 1px solid var(--border);
}
.price-tag {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary);
}
.btn-v4-enroll {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: #fff;
    border: none;
    padding: 14px 32px;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 30px;
    box-shadow: 0 4px 16px rgba(40, 167, 69, 0.10);
    cursor: pointer;
    transition: all 0.25s cubic-bezier(.4,2,.3,1);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
}
.btn-v4-enroll i {
    font-size: 1.2em;
}
.btn-v4-enroll:hover {
    background: linear-gradient(135deg, #20c997, #28a745);
    transform: translateY(-2px) scale(1.04);
    box-shadow: 0 8px 24px rgba(40, 167, 69, 0.18);
    animation: pulse 0.7s;
}
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(40,167,69,0.2); }
    70% { box-shadow: 0 0 0 10px rgba(40,167,69,0.05); }
    100% { box-shadow: 0 0 0 0 rgba(40,167,69,0.0); }
}
.btn-v4-enroll.disabled {
    background: #a9b3c1;
    cursor: not-allowed;
    transform: none;
}

.course-card-v3-footer {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border);
    padding-top: 15px;
}

.course-card-v3-meta .instructor-link:hover {
    color: var(--primary);
    text-decoration: underline;
}

/* ================================= */
/* Profile Page v2 Styles            */
/* ================================= */

.profile-page-v2 {
    background-color: var(--bg);
    padding-top: 70px; /* Account for fixed navbar */
}

.profile-container-v2 {
    max-width: 1100px;
    margin: 30px auto 50px auto; /* Corrected top margin */
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

.profile-banner-v2 {
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    padding: 25px;
    margin-bottom: 30px;
    position: relative;
}

.profile-avatar-v2 {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin-right: 25px;
    flex-shrink: 0;
}
html[dir="rtl"] .profile-avatar-v2 {
    margin-right: 0;
    margin-left: 25px;
}

.profile-banner-info-v2 h1 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin: 0 0 5px 0;
}

.profile-banner-info-v2 p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin: 0;
    text-transform: capitalize;
}

.btn-back-to-dash {
    margin-left: auto;
    background-color: var(--primary);
    color: white;
    padding: 10px 20px;
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background-color 0.2s;
}
html[dir="rtl"] .btn-back-to-dash {
    margin-left: 0;
    margin-right: auto;
}
.btn-back-to-dash:hover {
    background-color: var(--primary-dark);
}

.profile-content-grid-v2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.profile-card-v2 {
    background-color: var(--card-bg);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    overflow: hidden;
}

.profile-card-v2.full-width-card {
    grid-column: 1 / -1;
}

.profile-card-v2 .card-header-v2 {
    padding: 18px 25px;
    background: #fcfdff;
    border-bottom: 1px solid var(--border);
}

.profile-card-v2 .card-header-v2 h3 {
    margin: 0;
    font-size: 1.2rem;
    color: var(--primary-dark);
    display: flex;
    align-items: center;
    gap: 12px;
}
.profile-card-v2 .card-header-v2 h3 i {
    color: var(--primary);
}

.profile-card-v2 .card-body-v2 {
    padding: 25px;
}

.info-row-v2 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}

.info-row-v2:last-child {
    border-bottom: none;
}

.info-row-v2:first-child {
    padding-top: 0;
}

.info-row-v2 span {
    color: var(--text-light);
}

.info-row-v2 strong {
    color: var(--text);
    font-weight: 600;
}

.bio-text-v2 {
    line-height: 1.6;
    color: var(--text);
    margin: 0;
}

/* Responsive design for profile v2 */
@media (max-width: 900px) {
    .profile-content-grid-v2 {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .profile-banner-v2 {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }
    
    .profile-avatar-v2 {
        margin: 0 0 15px 0;
    }
    
    html[dir="rtl"] .profile-avatar-v2 {
        margin: 0 0 15px 0;
    }
    
    .btn-back-to-dash {
        margin: 15px 0 0 0;
    }
    
    html[dir="rtl"] .btn-back-to-dash {
        margin: 15px 0 0 0;
    }
    
    .info-row-v2 {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
}

/* ================== */
/* Inline Style Replacements */
/* ================== */

/* Display utilities */
.display-block { display: block; }
.display-none { display: none; }
.display-inline { display: inline; }
.display-inline-block { display: inline-block; }

/* Visibility utilities */
.visibility-hidden { visibility: hidden; }
.visibility-visible { visibility: visible; }

/* Margin utilities */
.margin-0 { margin: 0; }
.margin-top-1rem { margin-top: 1rem; }
.margin-top-1-5rem { margin-top: 1.5rem; }
.margin-bottom-20px { margin-bottom: 20px; }
.margin-bottom-0-7rem { margin-bottom: 0.7rem; }

/* Padding utilities */
.padding-40px { padding: 40px; }
.padding-15px { padding: 15px; }
.padding-10px-20px { padding: 10px 20px; }
.padding-10px { padding: 10px; }

/* Text alignment */
.text-align-center { text-align: center; }

/* Colors */
.color-888 { color: #888; }
.color-555 { color: #555; }
.color-856404 { color: #856404; }
.color-155724 { color: #155724; }
.color-6c757d { color: #6c757d; }

/* Background colors */
.bg-ffeeba { background: #ffeeba; }
.bg-fff3cd { background: #fff3cd; }
.bg-e8f5e8 { background: #e8f5e8; }
.bg-f8f9fa { background-color: #f8f9fa; }

/* Border colors */
.border-color-ffeaa7 { border-color: #ffeaa7; }
.border-left-4px-solid-28a745 { border-left: 4px solid #28a745; }
.border-left-4px-solid-ffc107 { border-left: 4px solid #ffc107; }

/* Font sizes */
.font-size-1-1em { font-size: 1.1em; }
.font-size-0-9rem { font-size: 0.9rem; }
.font-size-2rem { font-size: 2rem; }

/* Border radius */
.border-radius-8px { border-radius: 8px; }
.border-radius-6px { border-radius: 6px; }

/* Width and height */
.width-100 { width: 100%; }
.height-350px { height: 350px; }
.width-100-padding-10px { width: 100%; padding: 10px; }

/* Border styles */
.border-1px-solid-ccc { border: 1px solid #ccc; }

/* Grid utilities */
.grid-column-1-1 { grid-column: 1 / -1; }

/* Form styles */
.form-margin-0 { margin: 0; }

/* Button styles */
.btn-width-100 { width: 100%; }

/* Progress bar dynamic width */
.progress-bar-fill-dynamic { width: var(--progress-width); }

/* Status badge dynamic background */
.status-badge-dynamic { background-color: var(--status-color); }

/* Rating badge dynamic background */
.rating-badge-dynamic { background: var(--rating-gradient); }

/* Review rating dynamic color */
.review-rating-dynamic { color: var(--rating-color); }

/* Loading spinner */
.loading-spinner {
    text-align: center;
    padding: 40px;
}

.spinner-icon {
    font-size: 2rem;
    color: #007bff;
}

/* Alert styles */
.alert-warning-custom {
    background: #fff3cd;
    color: #856404;
    border-color: #ffeaa7;
}

.alert-success-custom {
    background: #e8f5e8;
    border-radius: 8px;
    border-left: 4px solid #28a745;
}

.alert-warning-custom-v2 {
    background: #fff3cd;
    border-radius: 8px;
    border-left: 4px solid #ffc107;
}

/* Form field readonly styles */
.form-field-readonly {
    background-color: #f8f9fa;
    color: #6c757d;
}

/* Map container */
.map-container {
    width: 100%;
    height: 350px;
    margin-top: 10px;
}

/* Textarea styles */
.textarea-custom {
    width: 100%;
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #ccc;
}

/* Small text styles */
.small-text-warning {
    color: #856404;
}

/* Button margin utilities */
.btn-margin-top-1rem { margin-top: 1rem; }
.btn-margin-top-1-5rem { margin-top: 1.5rem; }

/* Debug styles */
.debug-message {
    background: #ffeeba;
    color: #856404;
    padding: 10px 20px;
    margin: 10px 0;
    border-radius: 8px;
    font-size: 1.1em;
}

/* Seat map styles */
.seat-map-container {
    max-width: 800px;
    margin: 40px auto 60px auto;
    background: #fff;
    border-radius: 22px;
    box-shadow: 0 8px 32px #0002;
    padding: 2.5rem 2rem 2.5rem 2rem;
    position: relative;
    border: 1.5px solid #e3eaf2;
}

.seat-map-title {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 2.2rem;
    letter-spacing: 1px;
    color: #1976d2;
    font-weight: bold;
}

.seat-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 22px;
}

.seat-row {
    display: flex;
    align-items: center;
    gap: 22px;
}

.seat {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e3f0ff 60%, #90caf9 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: box-shadow 0.2s, background 0.2s, transform 0.15s;
    border: 2.5px solid #1976d2;
    box-shadow: 0 2px 12px #1976d233;
    font-size: 1.1em;
    font-weight: bold;
    color: #1976d2;
    user-select: none;
    position: relative;
}

.seat.selected {
    background: linear-gradient(135deg, #1976d2 60%, #1565c0 100%);
    box-shadow: 0 0 0 6px #1976d255, 0 2px 16px #1565c099;
    color: #fff;
    z-index: 2;
    transform: scale(1.13);
}

.seat.booked {
    background: linear-gradient(135deg, #e0e0e0 60%, #bdbdbd 100%);
    cursor: not-allowed;
    opacity: 0.7;
    color: #888;
    border: 2.5px solid #bdbdbd;
}

.row-label {
    color: #90caf9;
    font-size: 1.2em;
    width: 38px;
    text-align: center;
    user-select: none;
    font-weight: bold;
    letter-spacing: 1px;
}

.seat:hover:not(.booked):not(.selected) {
    background: linear-gradient(135deg, #bbdefb 60%, #e3f0ff 100%);
    box-shadow: 0 0 0 4px #90caf955;
    color: #1976d2;
    transform: scale(1.08);
}

.seat-map-actions {
    text-align: center;
    margin-top: 2.7rem;
}

.btn-confirm {
    background: linear-gradient(90deg, #1976d2 0%, #1565c0 100%);
    color: #fff;
    border: none;
    padding: 1.1rem 3.2rem;
    border-radius: 12px;
    font-size: 1.3rem;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 2px 18px #1976d244;
    transition: background 0.2s, transform 0.15s;
    margin-top: 10px;
}

.btn-confirm:disabled {
    background: #bdbdbd;
    color: #fff;
    cursor: not-allowed;
    box-shadow: none;
}

.seat-legend {
    display: flex;
    gap: 22px;
    justify-content: center;
    margin: 2.2rem 0 0.7rem 0;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.08em;
    color: #1976d2;
}

.legend-seat {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: inline-block;
    border: 2.5px solid #1976d2;
}

.legend-seat.available { 
    background: linear-gradient(135deg, #e3f0ff 60%, #90caf9 100%); 
}

.legend-seat.selected { 
    background: linear-gradient(135deg, #1976d2 60%, #1565c0 100%); 
}

.legend-seat.booked { 
    background: linear-gradient(135deg, #e0e0e0 60%, #bdbdbd 100%); 
    border: 2.5px solid #bdbdbd; 
}

/* Responsive seat map */
@media (max-width: 600px) {
    .seat-map-container { 
        padding: 1rem 0.2rem; 
    }
    
    .seat-grid { 
        gap: 10px; 
    }
    
    .seat-row { 
        gap: 10px; 
    }
    
    .seat { 
        width: 28px; 
        height: 28px; 
        font-size: 0.95em; 
    }
    
    .row-label { 
        width: 28px; 
        font-size: 1em; 
    }
    
    .btn-confirm { 
        font-size: 1.05rem; 
        padding: 0.7rem 1.5rem; 
    }
}

/* Body background for seat map */
body.seat-map-bg {
    background: #f8f9fa;
    color: #222;
}

/* Review comment styles */
.review-comment-italic {
    color: #6c757d;
    font-style: italic;
}

.review-star-large {
    font-size: 3rem;
    color: #adb5bd;
    margin-bottom: 15px;
    display: block;
}

/* Course Details Styles */
.course-cost {
    color: #856404;
    font-size: 0.9rem;
}

/* Logout Styles */
.logout-header {
    text-align: center;
    margin-top: 60px;
}

/* Course Card Styles */
.course-card-preview {
    margin-bottom: 0.7rem;
    color: #555;
}

/* Responsive Design for New Classes */
@media (max-width: 768px) {
    .card-max-width-500,
    .card-max-width-600,
    .card-max-width-700,
    .payment-success-container,
    .payment-warning-container {
        max-width: 95%;
        margin: 20px auto;
    }
    
    .grid-2-columns {
        grid-template-columns: 1fr;
    }
    
    .room-table-container {
        font-size: 0.9em;
    }
    
    .room-table-header-cell,
    .room-table-header-cell-days,
    .room-table-header-cell-time {
        min-width: 60px;
        padding: 8px 4px;
    }
}