/* =================================================================
   Tishki Ashti - Main Stylesheet
   Final Consolidated Version
   ================================================================= */

/* =================================================================
   1. Global Variables & Base Setup
   ================================================================= */
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans+Arabic&display=swap');

:root {
    --primary-color: #0D2A4D; /* Formal Dark Blue */
    --accent-color: #FFB81C;  /* Golden Yellow */
    --text-color: #343A40;    /* Dark Gray for text */
    --bg-light: #F8F9FA;      /* Off-white for background */
    --bg-gray: #E9ECEF;       /* Light gray for section separation */
    --danger-color: #dc3545;  /* Red for danger/delete */
    --info-color: #17a2b8;     /* Info Blue */
    --success-color: #28a745; /* Green for success */
    --warning-color: #ffc107; /* Yellow for warning */
    --font-family: 'IBM Plex Sans Arabic', sans-serif;
}

/* Standard CSS Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    line-height: 1.7;
    background-color: var(--bg-light);
    color: var(--text-color);
    direction: rtl; /* Set Right-to-Left direction for the entire body */
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

h1, h2, h3, h4 {
    color: var(--primary-color);
    margin-bottom: 20px;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.2rem; text-align: center; display: flex; align-items: center; justify-content: center; gap: 15px; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.2rem; }


/* =================================================================
   2. Header & Navigation Menu
   ================================================================= */
header { 
    background-color: #fff; 
    padding: 15px 0; 
    position: sticky; 
    top: 0; 
    z-index: 1000; 
    box-shadow: 0 2px 10px rgba(0,0,0,0.1); 
}
nav { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
}
.logo-container img { 
    height: 50px; 
}
.nav-links, .nav-links-guardian { 
    display: flex; 
    list-style: none; 
    align-items: center;
    gap: 15px;
    padding: 0;
    margin: 0;
}
.nav-links li, .nav-links-guardian a { 
    margin: 0;
    padding: 0;
}
.nav-links a, .nav-links-guardian a { 
    text-decoration: none; 
    color: var(--primary-color); 
    font-weight: 600; 
    transition: color 0.3s ease; 
    padding: 8px;
}
.nav-links a:hover, .nav-links-guardian a:hover:not(.cta-button) { 
    color: var(--accent-color); 
}

/* User Menu & Dropdown */
.user-menu {
    position: relative;
}
.user-menu .dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #fff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border-radius: 8px;
    list-style: none;
    padding: 10px 0;
    width: 180px;
    z-index: 1001;
}
.user-menu:hover .dropdown {
    display: block;
}
.user-menu .dropdown li {
    width: 100%;
    margin: 0;
}
.user-menu .dropdown a {
    display: block;
    padding: 10px 20px;
    width: 100%;
}
.user-menu .dropdown a:hover {
    background-color: var(--bg-light);
}

.hamburger { 
    display: none; 
    cursor: pointer; 
    font-size: 1.5rem; 
    color: var(--primary-color); 
}

/* Notification Bell Styles */
.notification-icon {
    position: relative;
    font-size: 1.2rem;
}
.notification-badge {
    position: absolute;
    top: -5px;
    right: -10px;
    background-color: var(--danger-color);
    color: white;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 0.7rem;
    font-weight: bold;
    border: 1px solid white;
}


/* =================================================================
   3. Common Content Styles
   ================================================================= */
.intro-paragraph { 
    text-align: center; 
    font-size: 1.1rem; 
    max-width: 800px; 
    margin: 0 auto 50px auto; 
}
.cta-button { 
    text-decoration: none; 
    background-color: var(--accent-color); 
    color: var(--primary-color) !important;
    padding: 10px 25px; 
    border-radius: 8px; 
    font-size: 1rem; 
    font-weight: 700; 
    transition: all 0.3s ease; 
    box-shadow: 0 4px 15px rgba(255, 184, 28, 0.3); 
    display: inline-block;
}
.cta-button:hover { 
    transform: translateY(-3px); 
    box-shadow: 0 6px 20px rgba(255, 184, 28, 0.4); 
    color: var(--primary-color) !important;
}


/* =================================================================
   4. General Form & Login Styles
   ================================================================= */
.login-page { display: flex; justify-content: center; align-items: center; min-height: 80vh; padding: 40px 0; }
.login-container { background-color: #fff; padding: 40px; border-radius: 10px; box-shadow: 0 5px 20px rgba(0,0,0,0.1); width: 100%; max-width: 450px; text-align: center; }
.login-container .logo-login { height: 70px; margin-bottom: 20px; }
.login-container h2 { margin-bottom: 25px; font-size: 1.8rem; }
.form-group { margin-bottom: 20px; text-align: right; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 600; color: var(--primary-color); }
.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-family: var(--font-family);
    font-size: 1rem;
    transition: border-color 0.3s ease;
    background-color: #fff;
}
.form-group input[type="file"] { padding: 9px; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: var(--accent-color); }
.submit-btn { width: 100%; padding: 15px; background-color: var(--primary-color); color: #fff; border: none; border-radius: 8px; font-size: 1.1rem; font-weight: 700; cursor: pointer; transition: background-color 0.3s ease; }
.submit-btn:hover { background-color: #091c34; }


/* =================================================================
   5. Alert & Status Badge Styles
   ================================================================= */
.alert { padding: 15px; margin-bottom: 20px; border-radius: 5px; border: 1px solid transparent; }
.alert-success { color: #155724; background-color: #d4edda; border-color: #c3e6cb; }
.alert-danger { color: #721c24; background-color: #f8d7da; border-color: #f5c6cb; }

.status-badge { padding: 5px 12px; border-radius: 20px; color: #fff; font-size: 0.8rem; font-weight: bold; text-transform: capitalize; }
.status-open { background-color: #007bff; }
.status-in_progress { background-color: var(--warning-color); color: #212529;}
.status-closed { background-color: #6c757d; }
.status-payment-paid { background-color: var(--success-color); }
.status-payment-unpaid { background-color: var(--warning-color); color: #212529;}
.status-payment-overdue { background-color: var(--danger-color); }


/* =================================================================
   6. Dashboard Styles (Admin & Guardian)
   ================================================================= */
.page-content { padding: 40px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 30px; text-align: center; margin-top: 30px; }
.stats-grid .stat-item { background-color: #fff; padding: 25px; border-radius: 10px; box-shadow: 0 4px 15px rgba(0,0,0,0.07); border: 1px solid var(--bg-gray); text-decoration: none; color: var(--text-color); }
.stats-grid .stat-item i { font-size: 2.5rem; color: var(--accent-color); margin-bottom: 15px; }
.stats-grid .stat-item h4 { font-size: 1rem; margin-bottom: 10px; color: var(--text-color); }
.stats-grid .stat-item h3 { font-size: 2.5rem; color: var(--primary-color); margin-bottom: 5px; }
.stats-grid .stat-item small { color: #6c757d; font-size: 0.85rem; }
.stat-item-clickable { cursor: pointer; transition: transform 0.2s ease, box-shadow 0.2s ease; }
.stat-item-clickable:hover { transform: translateY(-5px); box-shadow: 0 8px 20px rgba(0,0,0,0.1); }
.stat-item-highlight { background-color: var(--accent-color); }
.stat-item-highlight, .stat-item-highlight i, .stat-item-highlight h3, .stat-item-highlight h4 { color: var(--primary-color) !important; }

/* Guardian Dashboard Styles */
.welcome-guardian-card { display: flex; justify-content: space-between; align-items: center; gap: 30px; flex-wrap: wrap; }
.welcome-text { flex: 3; }
.welcome-student-profile { flex: 1; text-align: center; }
.welcome-student-profile img { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; border: 4px solid var(--primary-color); padding: 4px; background-color: white; margin-bottom: 10px; }
.welcome-student-profile span { font-weight: bold; color: var(--primary-color); }
.guardian-dashboard-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 30px; }
.student-selection-container { display: flex; flex-direction: column; gap: 15px; margin-top: 20px; }
.student-selection-card { display: flex; align-items: center; gap: 15px; padding: 15px; border: 1px solid var(--bg-gray); border-radius: 8px; text-decoration: none; color: var(--text-color); background-color: #fff; transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease; }
.student-selection-card:hover { transform: translateY(-3px); box-shadow: 0 5px 15px rgba(0,0,0,0.07); border-color: var(--accent-color); }
.student-selection-card img { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; }
.student-selection-card h4 { margin: 0 0 5px 0; font-size: 1.1rem; }
.student-selection-card span { font-size: 0.9rem; color: #6c757d; }
.quick-access-list { list-style: none; padding: 0; margin: 0; }
.quick-access-list li a { display: flex; align-items: center; gap: 15px; padding: 15px; text-decoration: none; color: var(--text-color); border-bottom: 1px solid var(--bg-gray); border-radius: 5px; transition: background-color 0.2s ease; }
.quick-access-list li:last-child a { border-bottom: none; }
.quick-access-list li a:hover { background-color: var(--bg-light); }
.quick-access-list i { font-size: 1.5rem; color: var(--accent-color); width: 30px; text-align: center; }
.quick-access-list span { font-weight: 600; }


/* =================================================================
   7. Management Page Styles (Tables, Forms, etc.)
   ================================================================= */
.header-with-button { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; }
.header-with-button h2 { margin-bottom: 0; }
.card { background-color: #fff; padding: 30px; border-radius: 10px; box-shadow: 0 4px 15px rgba(0,0,0,0.07); margin-top: 30px; }

/* CORRECTED TABLE STYLES */
.table-container table, .responsive-table-wrapper table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}
.table-container thead, .responsive-table-wrapper thead {
    background-color: var(--bg-light);
}
.table-container th, .responsive-table-wrapper th {
    font-weight: 600;
    color: var(--primary-color);
}
.table-container th, .table-container td,
.responsive-table-wrapper th, .responsive-table-wrapper td {
    padding: 12px 15px;
    text-align: right;
    border-bottom: 1px solid var(--bg-gray);
    vertical-align: middle;
    white-space: nowrap; /* Prevents text from wrapping and enables horizontal scroll */
}

.action-buttons { display: flex; gap: 10px; }
.action-buttons a { text-decoration: none; padding: 8px 12px; border-radius: 5px; font-size: 0.9rem; transition: all 0.2s ease; color: #fff; display: inline-flex; align-items: center; justify-content: center; }
.action-buttons a i { font-size: 1em; }
.btn-edit { background-color: var(--warning-color); color: #212529; }
.btn-edit:hover { background-color: #e0a800; }
.btn-delete { background-color: var(--danger-color); }
.btn-delete:hover { background-color: #c82333; }
.btn-view { background-color: var(--info-color); }
.btn-view:hover { background-color: #138496; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }
.table-profile-pic { width: 50px; height: 50px; border-radius: 50%; object-fit: cover; }
.responsive-table-wrapper { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* Stylish Radio Button Pills for Finance Page */
.target-selection-pills { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 20px; }
.target-selection-pills label { flex: 1 1 auto; }
.target-selection-pills input[type="radio"] { display: none; }
.target-selection-pills span { display: block; padding: 12px 20px; border: 2px solid var(--bg-gray); border-radius: 50px; text-align: center; cursor: pointer; transition: all 0.2s ease; font-weight: 600; }
.target-selection-pills span i { margin-left: 8px; }
.target-selection-pills input[type="radio"]:checked + span { background-color: var(--primary-color); color: #fff; border-color: var(--primary-color); }
.target-selection-pills span:hover { border-color: var(--primary-color); }

/* Stylish Checkbox list for Finance Page */
.student-checkbox-list { border: 1px solid var(--bg-gray); padding: 20px; border-radius: 8px; margin-top: 20px; max-height: 250px; overflow-y: auto; }
.select-all-label { font-weight: bold; display: block; padding-bottom: 10px; border-bottom: 1px solid var(--bg-gray); margin-bottom: 10px; cursor: pointer; }
.student-checkbox-item { display: block; padding: 8px 5px; border-radius: 5px; cursor: pointer; }
.student-checkbox-item:hover { background-color: var(--bg-light); }
.student-checkbox-item input { margin-left: 10px; }


/* =================================================================
   8. Profile Page & Permissions Styles
   ================================================================= */
.profile-header { display: flex; align-items: center; gap: 30px; background-color: #fff; padding: 30px; border-radius: 10px; box-shadow: 0 4px 15px rgba(0,0,0,0.07); margin-bottom: 30px; }
.profile-page-pic { width: 150px; height: 150px; border-radius: 50%; object-fit: cover; border: 5px solid var(--bg-light); }
.profile-header-info h1 { margin: 0; font-size: 2.5rem; }
.profile-header-info p { font-size: 1.2rem; color: #6c757d; margin: 5px 0 0 0; }
.profile-details-card ul { list-style: none; padding: 0; }
.profile-details-card ul li { padding: 15px 0; border-bottom: 1px solid var(--bg-gray); font-size: 1.1rem; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px;}
.profile-details-card ul li:last-child { border-bottom: none; }
.profile-details-card ul li strong { color: var(--primary-color); margin-left: 10px; }
.profile-details-card ul li span { color: #6c757d; font-weight: 500; }
.car-profile-pic { width: 100%; max-width: 400px; border-radius: 10px; margin: 0 auto 20px auto; display: block; }
.permissions-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 15px; margin-top: 20px; }
.permission-item { background-color: var(--bg-light); padding: 15px; border-radius: 8px; border: 1px solid var(--bg-gray); }
.permission-item label { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; }
.permission-item input[type="checkbox"] { width: 18px; height: 18px; margin-top: 5px; flex-shrink: 0; }
.permission-item label strong { font-weight: 600; }
.permission-item label small { color: #6c757d; display: block; font-size: 0.9rem; }
.child-picture-form { display: flex; align-items: center; gap: 15px; padding: 15px 0; border-bottom: 1px solid var(--bg-gray); flex-wrap: wrap; }
.child-picture-form:last-child { border-bottom: none; }
.child-picture-form .form-group { flex-grow: 1; margin: 0; }
.submit-btn-small { padding: 10px 15px; font-size: 0.9rem; width: auto; background-color: var(--primary-color); color: #fff; border: none; border-radius: 8px; cursor: pointer; }
.student-info-box { display: flex; gap: 20px; align-items: flex-start; }
.student-info-box img { width: 100px; height: 100px; border-radius: 50%; object-fit: cover; }
.student-info-box .info { flex: 1; }
.student-info-box ul { list-style: none; padding: 0; margin-bottom: 15px; }
.file-input-wrapper { display: flex; gap: 10px; align-items: center; }


/* =================================================================
   9. Live Tracking & Driver Interface Styles
   ================================================================= */
.student-cards-container { display: flex; flex-direction: column; gap: 20px; }
.student-card { background-color: #fff; border-radius: 10px; box-shadow: 0 4px 15px rgba(0,0,0,0.07); padding: 20px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; }
.student-info { display: flex; align-items: center; gap: 15px; }
.student-card-pic { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; }
.student-info h4 { margin: 0 0 5px 0; font-size: 1.2rem; }
.student-info h4 a { text-decoration: none; color: var(--primary-color); }
.student-info h4 a:hover { text-decoration: underline; color: var(--accent-color); }
.student-info span { color: #6c757d; font-size: 0.9rem; }
.trip-status-buttons { display: flex; gap: 10px; flex-wrap: wrap; }
.status-btn, .status-btn-absent { padding: 10px 15px; border: 1px solid var(--bg-gray); background-color: var(--bg-light); color: var(--text-color); border-radius: 8px; cursor: pointer; font-family: var(--font-family); font-size: 0.9rem; transition: all 0.2s ease; display: flex; align-items: center; gap: 8px; }
.status-btn:hover { border-color: var(--primary-color); }
.status-btn.active { background-color: var(--primary-color); color: #fff; border-color: var(--primary-color); }
.status-btn-absent:hover { border-color: var(--danger-color); }
.status-btn-absent.active { background-color: var(--danger-color); color: #fff; border-color: var(--danger-color); }
.tracking-card { display: flex; align-items: center; gap: 25px; padding: 30px; color: #fff; transition: background-color 0.5s ease; border-radius: 10px; }
.tracking-card .tracking-icon { font-size: 4rem; opacity: 0.8; }
.tracking-card .tracking-info h4 { color: #fff; margin-bottom: 5px; font-size: 1.2rem; }
.tracking-card .tracking-info p { font-size: 1.8rem; font-weight: bold; margin: 0; }
.tracking-card.gray { background-color: #6c757d; }
.tracking-card.orange { background-color: #fd7e14; }
.tracking-card.green { background-color: var(--success-color); }
.tracking-card.blue { background-color: #007bff; }
.tracking-card.red { background-color: var(--danger-color); }
.driver-info-card .driver-details { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.driver-info-pic { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; }
.driver-info-card ul { list-style: none; padding: 0; margin: 0; }
.driver-info-card ul li { margin-bottom: 10px; }


/* =================================================================
   10. Support Ticket & Notifications Styles
   ================================================================= */
.ticket-conversation { margin-top: 30px; }
.reply-card { background-color: #fff; padding: 20px; border-radius: 10px; margin-bottom: 15px; border: 1px solid var(--bg-gray); }
.reply-header { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--bg-gray); padding-bottom: 10px; margin-bottom: 10px; }
.reply-header strong { color: var(--primary-color); }
.reply-header .reply-time { font-size: 0.85rem; color: #6c757d; }
.reply-card.admin-reply { background-color: #e7f3ff; border-left: 5px solid var(--primary-color); }
.reply-card.user-reply { border-right: 5px solid var(--accent-color); }
.notifications-container { display: flex; flex-direction: column; gap: 20px; }
.notification-card { background-color: #fff; border-right: 5px solid var(--bg-gray); padding: 20px; border-radius: 8px; box-shadow: 0 2px 8px rgba(0,0,0,0.05); }
.notification-card.unread { background-color: #f8f9fa; border-right-color: var(--accent-color); }
.notification-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.notification-header h4 { margin: 0; font-size: 1.2rem; }
.notification-time { font-size: 0.85rem; color: #6c757d; }
.notification-body { color: #495057; padding-bottom: 15px; border-bottom: 1px dashed var(--bg-gray); margin-bottom: 15px; }
.notification-footer { text-align: left; }
.delete-notification-btn { color: var(--danger-color); text-decoration: none; font-size: 0.9rem; }
.delete-notification-btn:hover { text-decoration: underline; }


/* =================================================================
   11. Lost & Found Page Styles
   ================================================================= */
.lost-found-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; margin-top: 30px; }
.lost-found-card { padding: 0; margin: 0; display: flex; flex-direction: column; }
.lost-found-image { width: 100%; height: 200px; object-fit: cover; border-radius: 8px 8px 0 0; }
.lost-found-details { padding: 20px; display: flex; flex-direction: column; flex-grow: 1; }
.lost-found-details p { flex-grow: 1; margin-bottom: 15px; }
.lost-found-meta { border-top: 1px solid var(--bg-gray); padding-top: 15px; font-size: 0.9rem; color: #6c757d; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;}
.lost-found-meta span { display: flex; align-items: center; gap: 8px; }
.lost-found-actions { margin-top: 15px; padding-top: 15px; border-top: 1px dashed var(--bg-gray); display: flex; justify-content: flex-end; gap: 10px; }


/* =================================================================
   12. Reports Page Styles
   ================================================================= */
.report-tabs { display: flex; gap: 1px; margin-bottom: -1px; border-bottom: 1px solid #dee2e6; overflow-x: auto; }
.report-tabs a { padding: 12px 20px; text-decoration: none; color: var(--primary-color); border: 1px solid transparent; border-bottom: none; border-radius: 8px 8px 0 0; font-weight: 600; transition: all 0.2s ease; white-space: nowrap; margin-bottom: -1px; }
.report-tabs a:hover { background-color: var(--bg-light); }
.report-tabs a.active { background-color: #fff; color: var(--primary-color); border-color: #dee2e6 #dee2e6 #fff; }
.report-content { padding: 30px; border-top-right-radius: 0; }
.report-filter-form { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 15px; margin-bottom: 25px; background-color: var(--bg-light); padding: 20px; border-radius: 8px; border: 1px solid var(--bg-gray); }
.report-filter-form .form-group { margin: 0; }


/* =================================================================
   13. Pagination Styles
   ================================================================= */
.pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    margin-top: 40px;
}
.pagination-container a {
    text-decoration: none;
    color: var(--primary-color);
    padding: 8px 15px;
    border: 1px solid var(--bg-gray);
    border-radius: 5px;
    transition: all 0.2s ease;
}
.pagination-container a:hover {
    background-color: var(--bg-gray);
}
.pagination-container a.active {
    background-color: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}


/* =================================================================
   14. Footer
   ================================================================= */
footer { background-color: var(--primary-color); color: #fff; padding: 40px 0; margin-top: 60px; }
.footer-content { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 30px; }
.footer-section { text-align: center; flex: 1; min-width: 250px; }
footer a { color: var(--accent-color); text-decoration: none; font-weight: bold; }
footer a:hover { text-decoration: underline; }


/* =================================================================
   15. Responsive Design (Mobile)
   ================================================================= */
@media (max-width: 992px) {
    .guardian-dashboard-grid {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 768px) {
    h1 { font-size: 2.2rem; } h2 { font-size: 1.8rem; }
    .nav-links, .nav-links-guardian { position: fixed; right: -100%; top: 80px; background-color: #fff; flex-direction: column; width: 100%; height: calc(100vh - 80px); text-align: center; transition: right 0.3s ease-in-out; box-shadow: 0 10px 10px rgba(0,0,0,0.1); padding-top: 20px; align-items: stretch; gap: 0; }
    
    /* --- THE ONLY CHANGE IS HERE --- */
    .nav-links.js-active, .nav-links-guardian.js-active { 
        right: 0 !important;
        display: flex !important; /* Added display: flex to ensure it shows up */
    }
    
    .nav-links li, .nav-links-guardian a { padding: 15px 0; width: 100%; margin: 0; }
    .user-menu:hover .dropdown { display: none; }
    .user-menu .dropdown { position: static; display: block; box-shadow: none; width: 100%; padding: 0; background-color: var(--bg-light); }
    .hamburger { display: block; }
    .footer-content { flex-direction: column; }
    .stats-grid, .header-with-button { grid-template-columns: 1fr; flex-direction: column; text-align: center; }
    .action-buttons { flex-direction: row; justify-content: center; }
    .action-buttons a { flex-grow: 1; text-align: center; }
    .student-card, .driver-info-card .driver-details, .profile-header, .welcome-guardian-card { flex-direction: column; align-items: center; text-align: center; }
    .permissions-grid { grid-template-columns: 1fr; }
    .student-selection-container { grid-template-columns: 1fr; } 
}


/* =================================================================
   16. Telegram Integration Card Styles (زیادکراو)
   ================================================================= */
.telegram-card {
    background-color: #f0f8ff; /* Light blue background */
    border-left: 5px solid #0088cc; /* Telegram blue border */
}

/* For LTR languages, change border */
html[dir="ltr"] .telegram-card {
    border-left: none;
    border-right: 5px solid #0088cc;
}

.telegram-card h3 {
    color: #0088cc;
}

.telegram-steps {
    list-style-type: none;
    padding-left: 0;
    margin-top: 20px;
    counter-reset: step-counter; /* Start the counter */
}

.telegram-steps li {
    margin-bottom: 20px;
    padding: 15px;
    background-color: #fff;
    border: 1px solid #e0f0ff;
    border-radius: 8px;
    position: relative;
    padding-right: 50px; /* Space for the number bubble in RTL */
}

html[dir="ltr"] .telegram-steps li {
    padding-right: 15px;
    padding-left: 50px; /* Space for the number bubble in LTR */
}

.telegram-steps li::before {
    content: counter(step-counter);
    counter-increment: step-counter;
    position: absolute;
    right: 15px; /* Position on the right for RTL */
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    background-color: #0088cc;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

html[dir="ltr"] .telegram-steps li::before {
    right: auto;
    left: 15px; /* Position on the left for LTR */
}

.telegram-bot-button {
    display: inline-block;
    background-color: #0088cc;
    color: white !important; /* Use !important to override general link styles */
    padding: 10px 15px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    margin-top: 10px;
    transition: background-color 0.3s;
}

.telegram-bot-button:hover {
    background-color: #0077b3;
}

.telegram-form {
    margin-top: 10px;
}

.telegram-form input[type="text"] {
    text-align: center;
    font-size: 1.2em;
    letter-spacing: 5px;
    font-weight: bold;
    text-transform: uppercase;
}