/**
 * Airport Permits Application - Main Stylesheet
 * 
 * This file contains the main styling for the Airport Permits application.
 * It includes custom CSS variables, component styling, responsive design,
 * and RTL/LTR language support.
 * 
 * Features:
 * - Custom CSS variables for consistent theming
 * - AdminLTE4 integration styles
 * - Responsive design for mobile and desktop
 * - Multi-language support (Arabic/English)
 * - Notification system styling
 * - Form validation styles
 * - Modal and component styling
 * 
 * @author Your Name
 * @version 2.0 (Updated with AdminLTE4 integration)
 */

:root {
    /* Primary Colors */
    --primary-color: #2f826a;    /* Main brand color for primary elements */
    --primary-color2: #4acda7;   /* Secondary brand color for accents */
    --primary-hover: #49897b;    /* Darker shade for hover states */
    --secondary-color: #203d60;  /* Used for complementary UI elements */
    --accent-color: #203d60;     /* For highlighting important elements */
    
    /* Text Colors */
    --text-primary: #135c45;
    --text-secondary: #666666;
    --text-light: #2f826a;
    --text-content: #ffffff;
    
    /* Background Colors */
    --bg-gradient-start: #2f826a;
    --bg-light: #ffffff;
    --bg-dark: #2f826a;
    
    /* Component Colors */
    --sidebar-bg: var(--light-color);
    --sidebar-hover: var(--primary-hover);
    --navbar-bg-start: var(--primary-color);
    --navbar-bg-end: var(--primary-hover);
    
    /* Card & Modal Colors */
    --card-bg: var(--bg-light);
    --card-border: #e0e0e0;
    --card-shadow: 0 4px 15px rgba(0,0,0,0.1);
    --modal-bg: #f9fbfc;
    --modal-header-bg: var(--primary-color);
    --modal-header-text: var(--text-content);
    
    /* Button Colors - Using our new color scheme */
    --btn-primary-bg: var(--primary-color);      /* Main action buttons use primary green */
    --btn-primary-hover: var(--primary-hover);   /* Hover state uses darker blue */
    --btn-success-bg: #2f826a;                   /* Success buttons use primary green */
    --btn-success-hover: #203d60;                /* Success hover uses darker blue */
    --btn-danger-bg: #d31f37;                    /* Danger/warning buttons use secondary red */
    --btn-danger-hover: #bb2d3b;                 /* Slightly darker red for hover */
    --btn-secondary-bg: #203d60;                 /* Secondary buttons use darker blue */
    --btn-secondary-hover: #1a324d;              /* Even darker blue for hover */
    --warning-color: #ffc107;
    --warning-hover: #e0a800;
    --info-color: #17a2b8;
    --info-hover: #138496;
    
    /* Tab Colors */
    --tab-bg: var(--bg-light);
    --tab-border: #e0e0e0;
    --tab-active-border: var(--primary-color);
    --tab-text: var(--primary-color);
    --tab-hover: var(--primary-hover);
}

@font-face {
    font-family: 'Tajawal';
    src: url('../fonts/Tajawal-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}
@font-face {
    font-family: 'Tajawal';
    src: url('../fonts/Tajawal-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
}
@font-face {
    font-family: 'Tajawal';
    src: url('../fonts/Tajawal-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
}

/*******************************************************************************
 * GENERAL STYLES
 * Base styles and global configurations for all pages
 *******************************************************************************/

/* === تنسيقات عامة لجميع الصفحات === */
body {
    font-family: 'Tajawal', 'Arial', sans-serif;
    background: var(--bg-light);
    color: var(--text-primary);
    margin: 0;
    overflow-x: hidden;
}

.container-fluid {
    display: flex;
}
.container{
     margin-top: 0 !important;
}

/* === تنسيقات الشريط العلوي (navbar.php) === */
.navbar {
    position: fixed;
    height: 75px;
    top: 0;
    left: 0;
    right: 0;
    background: white;
    color: var(--text-primary);
    padding: 10px 20px;
    z-index: 1001;
    border-radius: 0 0 15px 15px;
    margin-bottom: 0;
    box-shadow: 0 2px 2px rgba(0,0,0,0.05) !important;
}

/* Active page highlighting in navbar */
.navbar-nav .nav-link.active {
    font-size: 1.3em;
    color: var(--primary-color) !important;
}

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

.navbar-nav .nav-link {
    color: #000 !important;
    font-weight: bold;
    transition: color 0.3s;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-color) !important;
}

.navbar-logo {
    height: 45px;
    right: 25px;
    margin-left: 20px;
}
.navbar-logo img{
    width: 90px;
}

[dir="rtl"] .navbar-logo{
    margin-right: 20px;
}

[dir="rtl"] .navbar-expand-lg .navbar-nav {
    margin-right: auto;
    margin-left: 20px !important;
}

/*******************************************************************************
 * SIDEBAR STYLES
 * Styles for the sidebar navigation component
 *******************************************************************************/

/* === تنسيقات الشريط الجانبي === */
/* Sidebar navigation with elegant styling */
.sidebar {
    width: 80px;
    background: white; 
    color: var(--text-light);
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    padding-top: 100px;
    transition: width 0.3s ease;
    overflow: hidden;
    z-index: 998;
    border-radius: 0 15px 15px 0; /* Curved right edges */
}

[dir="rtl"] .sidebar {
    left: auto;
    right: 0;
    border-radius: 15px 0 0 15px; /* Curved left edges for RTL */
}

.sidebar.open {
    width: 220px;
}

.sidebar ul {
    list-style: none;
    padding: 10px;
    margin: 0;
    margin-top: 30px;
}

.sidebar ul li {
    padding: 15px 20px;
}

.sidebar ul li a {
    color: var(--text-light);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
    font-size: 16px;
    transition: color 0.3s;
}

.sidebar ul li a:hover {
    color: #60b19f;
}

/* Highlight active page icon */
.sidebar ul li a.active {
    color: #203d60;  /* Highlight color for active page */
}

.sidebar ul li a.active i {
    color: #203d60;  /* Ensure icon is highlighted */
    transform: scale(1.3);  /* Make active icon slightly larger */
    transition: transform 0.3s ease;
}

.sidebar ul li a span {
    display: none;
}

.sidebar.open ul li a span {
    display: inline;
}

.toggle-sidebar {
    background: rgba(255,255,255,0.2);
    border: none;
    color: var(--text-light);
    padding: 5px 10px;
    margin-top: 10px;
    border-radius: 5px;
    cursor: pointer;
    position: fixed;
    top: 65px;
    left: 10px;
    z-index: 999;
    margin: 8px;
    font-size: x-large;
    margin-top: 30px;
}

[dir="rtl"] .toggle-sidebar {
    left: auto;
    right: 10px;
}

.toggle-sidebar:hover {
    background: rgba(255,255,255,0.4);
}

/* === تنسيقات المحتوى الرئيسي === */
.content {
    padding: 20px;
    padding-top: 95px;
    width: 100%;
    transition: margin-left 0.3s ease, margin-right 0.3s ease;
    display: flex;
    justify-content: center;
    min-height: 100vh;
}
.content.sidebar-open {
    margin-left: 230px;
}

[dir="rtl"] .content.sidebar-open {
    margin-left: 0;
    margin-right: 230px;
}

/* Offset AdminLTE content for fixed-top navbar */
.content-wrapper {
    padding-top: 95px;
}


/* === تنسيقات Hero Section === */
/* Hero section with image background */
.hero-section {
    background: url('../images/airplan_view.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 80px 0;
    margin-top: 0;
    border-radius: var(--home-border-radius);
    position: relative;
    overflow: hidden;
    min-height: 500px;
    display: flex;
    align-items: center;
}

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

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

/* Home Page */
.about {
  font-family: 'Tajawal', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: #0b2035;
  background: linear-gradient(180deg, #f7fbff, #ffffff);
  border-radius: 16px;
  padding: 32px;
  max-width: 900px;
  margin: 32px auto;
}

.about header {
  margin-bottom: 16px;
}

.about h2 {
  font-size: 28px;
  margin: 0 0 8px;
  letter-spacing: 0.2px;
}

.about p {
  line-height: 1.7;
  font-size: 16px;
  margin: 16px 0;
  color: #44576b;
}

.about h3 {
  font-size: 18px;
  margin: 12px 0;
  color: #0b2035;
}

.about ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.about ul li {
  background: #ffffff;
  border: 1px solid #e8f0f7;
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 15px;
}

.about ul li:hover {
  transform: translateY(-3px);
}

/* Responsive */
@media (max-width: 768px) {
  .about {
    padding: 20px;
    margin: 20px;
  }

  .about h2 {
    font-size: 22px;
  }

  .about p {
    font-size: 15px;
  }
}

/*******************************************************************************
 * USER DASHBOARD PAGE STYLES (index.php)
 * Styles for the main user dashboard including header, cards grid,
 * navigation elements, and mobile responsive design
 *******************************************************************************/

/* === Desktop Styles === */
.dashboard-header {
    text-align: center;
    margin-bottom: 40px;
}

.dashboard-header h1 {
    font-size: 36px;
    font-weight: 700;
    color: var(--text-color);
    text-shadow: 1px 1px 3px rgba(0,0,0,0.2);
    animation: fadeInDown 1s ease;
}

.cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.card {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    cursor: pointer;
    border: 1px solid var(--card-border);
    margin-bottom: 25px;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-8px);
}

.card i {
    font-size: 20px;
    color: var(--primary-color);
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

.card:hover i {
    transform: scale(1.1);
}

.card .bi-eye{
    color: var(--text-color);
    margin: -2px;
    transition: all 0.3s ease;
}

.card .bi-printer{
    color: var(--text-content) !important;
    margin: -2px;
    transition: all 0.3s ease;
}
.card .fa-plane{
    color: var(--text-content);
    margin: -2px;
    transition: all 0.3s ease;
}
.card .fa-file-text{
    color: var(--text-content);
    margin: -2px;
    transition: all 0.3s ease;
}

.card h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 15px;
}

.card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.card .btn-primary {
    background: var(--primary-color);
    border: none;
    color: var(--text-content);
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 25px;
    margin-top: 15px;
    transition: transform 0.3s ease, background 0.3s ease;
}

.card .btn-primary:hover {
    background: var(--primary-hover);
    transform: scale(1.05);
}

/* === Tablet Responsive Styles === */
@media (max-width: 1200px) {
    .wages-fees-page .dashboard-card {
        max-width: 95%;
        width: 95%;
        margin: 0 auto 25px auto;
    }
    
    .wages-fees-page .card-body {
        padding: 30px 25px;
    }
    
    .wages-fees-page .container {
        padding: 0 15px;
        max-width: 100%;
    }
    
    .wages-fees-page .filter-controls {
        flex-wrap: wrap;
        gap: 12px;
    }
    
    .wages-fees-page .filter-controls select,
    .wages-fees-page .filter-controls input {
        min-width: 220px;
        max-width: 250px;
    }
    
    .wages-fees-page .wages-table {
        min-width: 900px;
        font-size: 0.9em;
    }
}

@media (max-width: 992px) {
    .wages-fees-page .dashboard-card {
        max-width: 98%;
        width: 98%;
        border-radius: 12px;
    }
    
    .wages-fees-page .card-body {
        padding: 25px 20px;
    }
    
    .wages-fees-page .filter-controls {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }
    
    .wages-fees-page .filter-controls select,
    .wages-fees-page .filter-controls input {
        width: 100%;
        min-width: auto;
        max-width: none;
    }
    
    .wages-fees-page .table-container {
        padding: 20px 15px;
    }
    
    .wages-fees-page .wages-table {
        min-width: 700px;
        font-size: 0.85em;
    }
}

/* === Mobile Responsive Styles === */
@media (max-width: 768px) {
    .app-content {
        padding: 10px;
    }
    
    .dashboard-header {
        margin-bottom: 25px;
        padding: 0 15px;
    }
    
    .dashboard-header h1 {
        font-size: 28px;
    }

    .cards-container {
        grid-template-columns: 1fr;
        padding: 20px;
        gap: 20px;
    }

    .card {
        padding: 20px;
        margin-bottom: 15px;
        border-radius: 12px;
    }
    
    .card i {
        font-size: 48px;
        margin-bottom: 15px;
    }
    
    .card h3 {
        font-size: 18px;
        margin-bottom: 12px;
    }
    
    .card p {
        font-size: 14px;
        margin-bottom: 15px;
    }
    
    .card .btn-primary {
        padding: 12px 24px;
        font-size: 14px;
        border-radius: 20px;
        width: 100%;
        margin-top: 10px;
    }
    
    /* Dashboard stats cards mobile layout */
    .dashboard-stats-row {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px !important;
        margin: 0 !important;
        margin-bottom: 2rem !important;
    }
    
    .dashboard-stats-row .col-md-3 {
        flex: none !important;
        max-width: none !important;
        padding: 0 !important;
    }
    
    .small-box {
        margin-bottom: 0 !important;
    }
    
    .small-box .inner h3 {
        font-size: 1.8rem !important;
    }
    
    .small-box .inner p {
        font-size: 0.9rem !important;
    }
    
    .small-box .icon {
        font-size: 50px !important;
        right: 10px !important;
        top: 10px !important;
    }
    
    .small-box-footer {
        font-size: 0.85rem !important;
        padding: 8px 10px !important;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Recent requests card */
    .dashboard-notifications-row .card {
        margin-bottom: 20px;
    }
    
    .card-header h3 {
        font-size: 1.1rem;
    }
    
    .recent-requests-list {
        max-height: 200px !important;
    }
    
    /* Recent request items */
    .recent-request-item {
        padding: 10px !important;
        border-bottom: 1px solid #eee;
    }
    
    .recent-request-item .request-info {
        font-size: 0.9rem;
    }
    
    .recent-request-item .request-meta {
        font-size: 0.8rem;
    }
    
    .recent-request-item .badge {
        font-size: 0.7rem;
        padding: 0.25rem 0.4rem;
    }
    
    /* Improve touch targets for mobile */
    .btn {
        min-height: 44px;
        padding: 10px 15px;
    }
    
    .card-footer .btn {
        min-height: 40px;
    }
}

@media (max-width: 576px) {
    .dashboard-header h1 {
        font-size: 24px;
    }
    
    .cards-container {
        padding: 15px;
        gap: 15px;
    }

    .card {
        padding: 15px;
    }

    .card i {
        font-size: 36px;
        margin-bottom: 12px;
    }

    .card h3 {
        font-size: 16px;
        margin-bottom: 10px;
    }

    .card p {
        font-size: 13px;
        margin-bottom: 12px;
    }
    
    .card .btn-primary {
        padding: 10px 20px;
        font-size: 13px;
    }
    
    /* Single column layout for very small screens */
    .dashboard-stats-row {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }
    
    .small-box .inner h3 {
        font-size: 1.5rem !important;
    }
    
    .small-box .inner p {
        font-size: 0.85rem !important;
    }
    
    .small-box .icon {
        font-size: 40px !important;
        right: 8px !important;
        top: 8px !important;
    }
    
    .card-header h3 {
        font-size: 1rem;
    }
    
    .recent-requests-list {
        max-height: 180px !important;
    }
}

/* === RTL Support === */
@media (max-width: 768px) {
    [dir="rtl"] .small-box .icon {
        right: auto !important;
        left: 10px !important;
    }
}

@media (max-width: 576px) {
    [dir="rtl"] .small-box .icon {
        left: 8px !important;
    }
}

/* تأثيرات التحميل */
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

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

.item-recent {
    padding-right: 125px;
    margin-top: 10px;
}
.item-recent span {
    margin-bottom: 20px;
}

.status-item-recent {
    margin-left: 100px;
}

/* RTL styles for item-recent elements */
[dir="rtl"] .item-recent {
    padding-left: 125px;
    padding-right: 0;
}

[dir="rtl"] .status-item-recent {
    margin-right: 100px;
    margin-left: 0;
}

/* My Requests Page */
.filter-controls span{
    padding: 10px;
}
.status-approved::before {
    content: "\f00c";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    margin-right: 5px;
}
[dir="rtl"] .status-approved::before {
    margin-right: 0;
    margin-left: 5px;
}
.status-pending::before {
    content: "\f017";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    margin-right: 5px;
}
[dir="rtl"] .status-pending::before {
    margin-right: 0;
    margin-left: 5px;
}
.status-rejected::before {
    content: "\f00d";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    margin-right: 5px;
}
[dir="rtl"] .status-rejected::before {
    margin-right: 0;
    margin-left: 5px;
}
.table-container {
    background: white;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 20px;
}

.btn-resubmit {
    padding: 6px 12px;
    font-size: 14px;
    border-radius: 6px;
    transition: background-color 0.3s, transform 0.1s;
}
.btn-resubmit:hover {
    transform: scale(1.05);
}
.btn-warning {
    background-color: #ffc107;
    border-color: #ffc107;
}
.btn-warning:hover {
    background-color: #e0a800;
    border-color: #e0a800;
}
.controls-right {
    display: flex;
    gap: 10px;
    margin-left: auto;
}
[dir="rtl"] .controls-right {
    margin-left: 0;
    margin-right: auto;
}
.permit-details-section h6 {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 15px;
    font-size: 18px;
}

.schedule-table {
    background: var(--card-bg);
    border-radius: 8px;
    margin-bottom: 20px !important;
}
.schedule-table th {
    background: #e9ecef;
    color: #333;
}

/*******************************************************************************
 * NEW REQUEST PAGE STYLES (new_request.php)
 * Styles for the new request page including permit cards, icons, buttons,
 * and mobile responsive design
 *******************************************************************************/

/* === Desktop Styles === */
.permit-column {
    padding: 20px 15px;
}

.permit-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: none;
    border-radius: 16px;
    padding: 30px 25px;
    margin-bottom: 25px;
    height: 280px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.permit-card:hover {
    transform: translateY(-12px) scale(1.02);
}

.permit-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--primary-color);
    transition: height 0.3s ease;
}

.permit-card:hover::before {
    height: 6px;
}

.permit-icon {
    font-size: 3.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    transition: all 0.4s ease;
    filter: drop-shadow(0 4px 8px rgba(47, 130, 106, 0.2));
}

.permit-card:hover .permit-icon {
    transform: scale(1.15) rotate(5deg);
    color: var(--primary-color2);
}

.permit-card h5 {
    color: var(--text-primary);
    font-weight: 700;
    font-size: 1.4rem;
    margin-bottom: 15px;
    line-height: 1.3;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.permit-card p {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 25px;
    flex-grow: 1;
    line-height: 1.5;
    opacity: 0.9;
}

.permit-card .btn {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.permit-card .btn:hover {
    background: linear-gradient(135deg, var(--primary-hover) 0%, var(--primary-color2) 100%);
}

.permit-card .btn i {
    margin-right: 10px;
    font-size: 1.1rem;
}

/* Arabic language specific button icon spacing */
[dir="rtl"] .permit-card .btn i {
    margin-right: 0;
    margin-left: 10px;
}

.section-title {
    color: var(--primary-color);
    font-weight: 800;
    font-size: 1.8rem;
    margin-bottom: 30px;
    text-align: center;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Enhanced styles for new_request.php page */
.new-request-page .dashboard-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 15px;
    border: 1px solid rgba(47, 130, 106, 0.1);
    transition: all 0.3s ease;
    margin-top: 150px;
}

.new-request-page .dashboard-card:hover {
    transform: translateY(-5px);
}

.new-request-page .card-body {
    padding: 30px;
    margin-top: 80px;
}

.new-request-page .content {
    padding: 20px;
}

.new-request-page .permit-column {
    padding: 20px;
}

.new-request-page .section-title {
    color: var(--primary-color);
    font-size: 1.5em;
    font-weight: bold;
    margin-bottom: 20px;
    text-align: center;
}

.new-request-page .permit-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 20px;
    border: 1px solid rgba(var(--primary-color-shadow), 0.1);
    transition: all 0.3s ease;
    text-align: center;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.new-request-page .permit-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

.new-request-page .permit-card .btn {
    background: var(--primary-color);
    border: none;
    border-radius: 8px;
    padding: 12px 24px;
    color: white;
    font-weight: 500;
    transition: all 0.3s ease;
    margin-top: auto;
}

/* === Mobile Responsive Styles === */
@media (max-width: 768px) {
    .permit-column {
        flex: 0 0 100%;
        max-width: 100%;
        padding: 10px;
    }
    
    .permit-card {
        height: auto;
        margin-bottom: 15px;
        padding: 15px;
        border-radius: 8px;
    }
    
    .permit-icon {
        font-size: 2.5rem;
        margin-bottom: 12px;
    }
    
    .permit-card h5 {
        font-size: 1.2rem;
        margin-bottom: 8px;
        line-height: 1.3;
    }
    
    .permit-card p {
        font-size: 0.9rem;
        margin-bottom: 15px;
        line-height: 1.4;
    }
    
    .permit-card .btn {
        padding: 12px 20px;
        font-size: 0.9rem;
        min-height: 44px;
        touch-action: manipulation;
        width: 100%;
        border-radius: 8px;
    }
    
    .section-title {
        font-size: 1.3rem;
        margin-bottom: 20px;
        padding-bottom: 8px;
    }
    
    /* Enhanced new-request-page styles for mobile */
    .new-request-page .container {
        padding: 0 15px;
    }
    
    .new-request-page .dashboard-card {
        margin-top: 20px;
        border-radius: 10px;
    }
    
    .new-request-page .card-body {
        padding: 20px 15px;
        margin-top: 0;
    }
    
    .new-request-page .content {
        padding: 10px;
    }
    
    .new-request-page .permit-column {
        padding: 10px;
        margin-bottom: 20px;
    }
    
    .new-request-page .section-title {
        font-size: 1.4em;
        margin-bottom: 20px;
        text-align: center;
    }
    
    .new-request-page .permit-card {
        padding: 25px 20px;
        margin-bottom: 20px;
        min-height: 180px;
        border-radius: 12px;
        box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
        transition: all 0.3s ease;
    }
    
    
    .new-request-page .permit-card .permit-icon {
        font-size: 2.8rem;
        margin-bottom: 15px;
        color: var(--primary-color);
    }
    
    .new-request-page .permit-card h5 {
        font-size: 1.2em;
        margin-bottom: 12px;
        color: var(--primary-color);
        font-weight: 600;
    }
    
    .new-request-page .permit-card p {
        font-size: 14px;
        margin-bottom: 20px;
        color: var(--text-secondary);
        line-height: 1.5;
    }
    
    .new-request-page .permit-card .btn {
        padding: 12px 24px;
        font-size: 14px;
        min-height: 44px;
        touch-action: manipulation;
        width: 100%;
        font-weight: 500;
        border-radius: 8px;
        transition: all 0.3s ease;
    }
    
    /* Touch improvements */
    .new-request-page .permit-card .btn:active {
        transform: scale(0.98);
    }
    
    /* iOS zoom prevention */
    .new-request-page input,
    .new-request-page select,
    .new-request-page textarea {
        font-size: 16px;
    }
}

@media (max-width: 576px) {
    .permit-column {
        padding: 8px;
    }
    
    .permit-card {
        padding: 15px;
        margin-bottom: 15px;
        border-radius: 8px;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    }
    
    .permit-icon {
        font-size: 2.2rem;
        margin-bottom: 12px;
    }
    
    .permit-card h5 {
        font-size: 1.1rem;
        margin-bottom: 8px;
        line-height: 1.3;
    }
    
    .permit-card p {
        font-size: 0.85rem;
        margin-bottom: 15px;
        line-height: 1.4;
    }
    
    .permit-card .btn {
        padding: 12px 16px;
        font-size: 0.9rem;
        width: 100%;
        min-height: 44px;
        border-radius: 8px;
    }
    
    .section-title {
        font-size: 1.2rem;
        margin-bottom: 15px;
        padding-bottom: 6px;
    }
    
    /* Enhanced new-request-page styles for small mobile */
    .container {
        padding: 10px;
    }
    
    .new-request-page .container {
        padding: 0 10px;
    }
    
    .new-request-page .dashboard-card {
        margin-top: 15px;
        border-radius: 10px;
    }
    
    .new-request-page .card-body {
        padding: 15px 10px;
    }
    
    .new-request-page .content {
        padding: 8px;
    }
    
    .new-request-page .permit-column {
        padding: 8px;
        margin-bottom: 15px;
    }
    
    .new-request-page .section-title {
        font-size: 1.3em;
        margin-bottom: 15px;
        text-align: center;
    }
    
    .new-request-page .permit-card {
        padding: 20px 15px;
        margin-bottom: 15px;
        min-height: 160px;
        border-radius: 10px;
    }
    
    .new-request-page .permit-card .permit-icon {
        font-size: 2.5rem;
        margin-bottom: 12px;
    }
    
    .new-request-page .permit-card h5 {
        font-size: 1.1em;
        margin-bottom: 10px;
        font-weight: 600;
    }
    
    .new-request-page .permit-card p {
        font-size: 13px;
        margin-bottom: 15px;
        line-height: 1.4;
    }
    
    .new-request-page .permit-card .btn {
        padding: 12px 20px;
        font-size: 14px;
        width: 100%;
        min-height: 44px;
        font-weight: 500;
        border-radius: 8px;
    }
    
    /* Enhanced touch interactions */
    .new-request-page .permit-card {
        -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
        cursor: pointer;
    }
    
    .new-request-page .permit-card:active {
        transform: scale(0.98);
    }
}

/* === RTL Support === */
[dir="rtl"] .permit-card .btn i {
    margin-right: 0;
    margin-left: 8px;
}

[dir="rtl"] .new-request-page .section-title {
    text-align: center;
}

[dir="rtl"] .new-request-page .permit-card {
    text-align: center;
}

/*******************************************************************************
 * PERMIT FORM PAGE STYLES (permit_form.php)
 * Styles for the permit application form including form controls, validation,
 * schedule sections, buttons, and mobile responsive design
 *******************************************************************************/

/* === Desktop Styles === */
.permit-form-wrapper {
    max-width: 1200px;
    margin: 30px auto 0 120px;
    padding: 40px;
    background: var(--card-bg);
    border-radius: 15px;
    position: relative;
    border: 1px solid var(--card-border);
}

/* Form Section Styles */
.form-section {
    margin-bottom: 40px;
    padding: 30px;
    border-radius: 12px;
    border: 1px solid #e1e8ed;
    position: relative;
    transition: all 0.3s ease;
}

.section-title {
    color: #2c3e50;
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 25px;
    padding-bottom: 12px;
    border-bottom: 3px solid transparent;
    background-size: 100% 3px;
    background-repeat: no-repeat;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.section-title::before {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 60px;
    height: 3px;
    border-radius: 2px;
}

.form-group {
    margin-bottom: 1.8rem;
}

.form-group label {
    font-weight: 600;
    margin-bottom: 0.8rem;
    display: block;
    color: var(--text-primary);
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.form-control {
    border-radius: 10px;
    border: 2px solid #e9ecef;
    padding: 0.85rem 1rem;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background: #ffffff;
    color: var(--text-primary);
}

.form-control:focus {
    border-color: var(--primary-color);
    background: #ffffff;
    box-shadow: 0 0 0 0.2rem rgba(52, 152, 219, 0.15);
    transform: translateY(-1px);
}

.form-control:hover {
    border-color: var(--primary-hover);
}

/* Enhanced Form Check Styles */
.form-check {
    margin-bottom: 12px;
    padding-left: 1.8rem;
}

.form-check-input {
    width: 1.2rem;
    height: 1.2rem;
    margin-top: 0.2rem;
    border: 2px solid #dee2e6;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.form-check-input:checked {
    background-color: #3498db;
    border-color: #3498db;
    box-shadow: 0 0 0 0.2rem rgba(52, 152, 219, 0.25);
}

.form-check-label {
    margin-left: 0.5rem;
    color: #34495e;
    font-weight: 500;
    cursor: pointer;
    transition: color 0.3s ease;
}

.form-check-label:hover {
    color: #2c3e50;
}

/* Enhanced Schedule Section */
.schedule-group {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 2rem;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
    position: relative;
}

.schedule-group::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    border-radius: 15px 15px 0 0;
}

.schedule-group:hover {
    transform: translateY(-3px);
}

.return-flight {
    font-weight: 700;
    margin-bottom: 20px;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 10px 15px;
    background: linear-gradient(135deg, #ecf0f1, #bdc3c7);
    border-radius: 8px;
}

.schedule-group .btn {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    border: none;
    border-radius: 8px;
    padding: 10px 20px;
    font-weight: 600;
    transition: all 0.3s ease;
}
.schedule-group .btn:hover{
    background: linear-gradient(135deg, #c0392b, #a93226);
    transform: translateY(-2px);
}

.schedule-title {
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    font-weight: 700;
    text-align: center;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-color);
}

.return-flight {
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-secondary);
    font-size: 1.1rem;
    text-align: center;
    background: rgba(32, 61, 96, 0.1);
    padding: 8px 15px;
    border-radius: 20px;
    display: inline-block;
}

/* Enhanced Buttons */
.add-btn, .remove-btn {
    margin-top: 1rem;
    padding: 0.6rem 1.2rem;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
    border: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.85rem;
}

.add-btn {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
    color: white;
}

.add-btn:hover {
    background: linear-gradient(135deg, var(--primary-hover) 0%, var(--primary-color) 100%);
}

.remove-btn {
    background: linear-gradient(135deg, var(--btn-danger-bg) 0%, var(--btn-danger-hover) 100%);
    color: white;
}

.remove-btn:hover {
    background: linear-gradient(135deg, var(--btn-danger-hover) 0%, var(--btn-danger-bg) 100%);
}

/* Enhanced Date/Time Input Styling */
input[type="date"], input[type="time"] {
    position: relative;
    cursor: pointer;
    background: #ffffff;
    transition: all 0.3s ease;
}

input[type="date"]:hover, input[type="time"]:hover {
    background: #f8f9fa;
    border-color: var(--primary-hover);
}

input[type="date"]:focus, input[type="time"]:focus {
    background: #ffffff;
    border-color: var(--primary-color);
}

/* Custom calendar/clock icon styling */
input[type="date"]::-webkit-calendar-picker-indicator,
input[type="time"]::-webkit-calendar-picker-indicator {
    background-color: var(--primary-color);
    padding: 8px;
    cursor: pointer;
    border-radius: 3px;
    transition: all 0.3s ease;
}

input[type="date"]::-webkit-calendar-picker-indicator:hover,
input[type="time"]::-webkit-calendar-picker-indicator:hover {
    background-color: var(--primary-hover);
    transform: scale(1.1);
}

/* Form validation styling */
.form-control.is-valid {
    border-color: #198754;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%23198754' d='M2.3 6.73L.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.form-control.is-invalid {
    border-color: #dc3545;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

/* Enhanced error messages */
.error-message {
    display: none;
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    font-weight: 500;
    padding: 0.25rem 0.5rem;
    background: rgba(220, 53, 69, 0.1);
    border-radius: 4px;
    border-left: 3px solid #dc3545;
}

.error-message.show {
    display: block;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Additional permit form styles */
.form-control:disabled, .form-check-input:disabled {
    background-color: #e9ecef;
    opacity: 0.6;
    cursor: not-allowed;
}

.alert-success, .alert-danger {
    opacity: 1;
    transition: opacity 0.5s ease;
}

.form-control:invalid + .error-message,
.form-check-input:invalid + .error-message {
    display: block;
}

.warning-message {
    color: #dc3545;
    font-size: 14px;
    margin-bottom: 15px;
}

/* Tow bar radio button cursor styling */
input[name="tow_bar"] + label {
    cursor: pointer;
}

input[name="tow_bar"] {
    cursor: pointer;
}

/* Enhanced radio buttons and checkboxes */
.form-check-input {
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
}

.form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.form-check-input:focus {
    border-color: var(--primary-color);
}

/* Enhanced select dropdowns */
.form-select {
    border-radius: 8px;
    border: 2px solid #e9ecef;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background-color: #ffffff;
}

.form-select:focus {
    border-color: var(--primary-color);
}

.back-button {
    position: absolute;
    top: 20px;
    left: 20px;
    background: #003366;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
}

.back-button i {
    margin-right: 8px;
}

/* === Mobile Responsive Styles === */
@media (max-width: 768px) {
    .permit-form-wrapper {
        margin-left: 0;
        margin-top: 15px;
        padding: 15px;
        border-radius: 10px;
    }
    
    .form-group {
        margin-bottom: 1.5rem;
    }
    
    .form-group label {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }
    
    .form-control {
        padding: 0.75rem 0.85rem;
        font-size: 16px; /* Prevents zoom on iOS */
        border-radius: 6px;
    }
    
    .schedule-group {
        padding: 20px 15px;
        border-radius: 10px;
        margin-bottom: 1.2rem;
    }
    
    .schedule-title {
        font-size: 1.2rem;
        margin-bottom: 1.2rem;
    }
    
    .return-flight {
        font-size: 1rem;
        padding: 6px 12px;
        border-radius: 15px;
    }
    
    .add-btn, .remove-btn {
        padding: 0.7rem 1rem;
        font-size: 0.8rem;
        width: 100%;
        margin-top: 0.8rem;
    }
    
    input[type="date"], input[type="time"] {
        font-size: 16px; /* Prevents zoom on iOS */
        padding: 0.75rem 0.85rem;
    }
    
    .back-button {
        top: 10px;
        left: 10px;
        padding: 8px 12px;
        font-size: 14px;
        border-radius: 4px;
    }
    
    .error-message {
        font-size: 0.8rem;
        padding: 0.2rem 0.4rem;
    }
}

@media (max-width: 576px) {
    .permit-form-wrapper {
        padding: 12px;
        margin-top: 10px;
    }
    
    .form-group {
        margin-bottom: 1.2rem;
    }
    
    .form-group label {
        font-size: 0.85rem;
    }
    
    .form-control {
        padding: 0.65rem 0.75rem;
        font-size: 16px;
    }
    
    .schedule-group {
        padding: 15px 12px;
    }
    
    .schedule-title {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }
    
    .return-flight {
        font-size: 0.9rem;
        padding: 5px 10px;
    }
    
    .add-btn, .remove-btn {
        padding: 0.6rem 0.8rem;
        font-size: 0.75rem;
    }
    
    .back-button {
        padding: 6px 10px;
        font-size: 12px;
    }
    
    .back-button i {
        margin-right: 6px;
    }
}

/* === RTL Support === */
[dir="rtl"] .permit-form-wrapper {
    margin-right: 120px;
    margin-left: 0;
}

[dir="rtl"] .back-button {
    left: auto;
    right: 20px;
}

[dir="rtl"] .back-button i {
    margin-right: 0;
    margin-left: 8px;
}

@media (max-width: 768px) {
    [dir="rtl"] .permit-form-wrapper {
        margin-right: 0;
    }
    
    [dir="rtl"] .back-button {
        right: 10px;
        left: auto;
    }
}
.error-message {
    display: none;
    color: red;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}
.modal-content {
    background: var(--bg-light);
    border-radius: 10px;
}
.modal-header {
    background: var(--primary-color);
    color: var(--text-content);
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}
.modal-body {
    padding: 1.5rem;
    color: var(--text-primary);
}
.modal-footer {
    border-top: none;
    padding: 1rem 1.5rem;
}
.modal-footer .btn-primary {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--text-content);
}
.modal-footer .btn-primary:hover {
    background: var(--primary-hover);
    border-color: var(--primary-hover);
}
.modal-footer .btn-secondary {
    background: var(--primary-color);
    color: var(--text-content);
}
.modal-footer .btn-secondary:hover {
    background: var(--primary-hover);
    border-color: var(--btn-secondary-hover);
}


/* Settings Page & Admin Settings Page */

:root {
    --home-light-bg: #f8f9fa;
    --home-border-radius: 12px;
    --home-transition: all 0.3s ease;
}


/* Home Page Hero Section - Image Only Background */
.hero-section {
    background: url('../images/airplan_view.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 80px 0;
    margin-top: 0;
    border-radius: var(--home-border-radius);
    position: relative;
    overflow: hidden;
    min-height: 500px;
    display: flex;
    align-items: center;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    margin-left: 200px;
}
[dir="rtl"] .hero-content {
    margin-left: 0;
    margin-right: 350px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.7);
    animation: fadeInUp 1s ease-out;
    color: #ffffff !important;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
    animation: fadeInUp 1s ease-out 0.2s both;
    color: #f8f9fa !important;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.6);
}

.about-section {
    background: white;
    padding: 80px 0;
    border-radius: var(--home-border-radius);
    margin: 40px 0;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 3rem;
    text-align: center;
    position: relative;
}

.feature-card {
    background: white;
    padding: 40px 30px;
    border-radius: var(--home-border-radius);
    transition: var(--home-transition);
    height: 100%;
    border: 1px solid #e9ecef;
}


.feature-icon {
    width: 80px;
    height: 80px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: white;
    font-size: 2rem;
}

.home-about {
    background: var(--home-light-bg);
    padding: 40px;
    border-radius: var(--home-border-radius);
    margin: 40px 0;
}

.home-about p {
    font-size: 1.3rem;
    line-height: 1.8;
    color: #495057;
    margin-bottom: 1.5rem;
}

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

/* Hero Section Button Styling */
.hero-content .btn-primary {
    background-color: #2f826a !important;
    border-color: #2f826a !important;
    color: white !important;
    padding: 15px 40px;
    font-size: 1.2rem;
    font-weight: 600;
    border-radius: 50px;
    transition: var(--home-transition);
    animation: fadeInUp 1s ease-out 0.4s both;
    text-decoration: none;
    display: inline-block;
    border: none;
}

.hero-content .btn-primary:hover {
    background-color: #49897b !important;
    border-color: #49897b !important;
}

/* Responsive adjustments for home page */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .home-about {
        padding: 25px;
    }
    
    .home-about h1 {
        font-size: 2.2rem;
    }
}

/* === تنسيقات إضافية للجداول === */
.table-bordered th {
    background: var(--bg-light);
    font-weight: 600;
    color: var(--text-primary);
    border: 1px solid var(--card-border);
}

.table-bordered td {
    color: var(--text-primary);
    vertical-align: middle;
    border: 1px solid var(--card-border);
}

/* Dashboard Cards */
.dashboard-stats-row .small-box {
    margin-bottom: 1.5rem;
    height: 100%;
}

.dashboard-stats-row .col-md-3 {
    display: flex;
    flex-direction: column;
}

/* Ensure cards stay on one line */
.dashboard-stats-row {
    display: flex !important;
    flex-wrap: nowrap !important;
    margin: 0 -0.75rem;
    margin-bottom: 2rem;
}

.dashboard-stats-row > [class*="col-"] {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
    flex: 1 !important;
    max-width: 25% !important;
}

/* Override Bootstrap's default responsive behavior */
@media (min-width: 768px) {
    .dashboard-stats-row .col-md-3 {
        flex: 0 0 25% !important;
        max-width: 25% !important;
    }
}

/* Override AdminLTE and Bootstrap conflicts */
.app-content .row.dashboard-stats-row {
    display: flex !important;
    flex-wrap: nowrap !important;
    margin-right: -0.75rem !important;
    margin-left: -0.75rem !important;
    margin-top: 150px;
}

.app-content .dashboard-stats-row .col-md-3 {
    position: relative !important;
    width: 25% !important;
    flex: 0 0 25% !important;
    max-width: 25% !important;
    padding-right: 0.75rem !important;
    padding-left: 0.75rem !important;
}

/* Additional override for AdminLTE small-box */
.dashboard-stats-row .small-box {
    min-height: 120px !important;
    margin-bottom: 0 !important;
}

/* Ensure proper spacing between cards */
.dashboard-stats-row .col-md-3 + .col-md-3 {
    margin-left: 0 !important;
}

/* Force row layout - most important override */
.dashboard-stats-row {
    flex-direction: row !important;
    display: flex !important;
    flex-wrap: nowrap !important;
    width: 100% !important;
}

/* Make sure cards don't wrap on smaller screens */
@media (max-width: 991px) {
    .dashboard-stats-row {
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
    }
    
    .dashboard-stats-row .col-md-3 {
        flex: 0 0 25% !important;
        min-width: 200px !important;
    }
}

/* Spacing for the notifications row */
.dashboard-notifications-row {
    margin-top: 2rem;
}

/* === AdminLTE4 Dashboard Layout Enhancements === */

/* Modern dashboard header */
.dashboard-header {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.dashboard-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.dashboard-header .breadcrumb {
    background: var(--primary-color);
    padding: 0;
    margin: 0;
    font-size: 0.9rem;
}

/* AdminLTE4 Chart Cards */
.chart-card {
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.chart-card .card-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    padding: 1.25rem 1.5rem;
    font-weight: 600;
}

.chart-card .card-body {
    padding: 1.5rem;
}

/* AdminLTE4 Table Enhancements */
.table {
    border-radius: 8px;
    overflow: hidden;
}

.table thead th {
    background: var(--primary-color);
    border: none;
    font-weight: 600;
    color: var(--text-content);
    padding: 1rem 0.75rem;
}

.table tbody tr {
    transition: all 0.3s ease;
}

.table tbody tr:hover {
    background: rgba(0, 0, 0, 0.02);
}

.table td {
    padding: 0.75rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    vertical-align: middle;
}

/* AdminLTE4 Form Controls */
.form-control {
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    outline: none;
}

.form-control:hover {
    border-color: var(--primary-hover);
}

/* AdminLTE4 Input Groups */
.input-group-text {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px 0 0 8px;
    color: var(--text-secondary);
    font-weight: 500;
}

/* AdminLTE4 Alerts */
.alert {
    border-radius: 8px;
    border: none;
    padding: 1rem 1.5rem;
    border-left: 4px solid;
    margin-bottom: 1rem;
}

.alert-primary {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border-left-color: var(--primary-color);
    color: #0d47a1;
}

.alert-success {
    background: linear-gradient(135deg, #e8f5e8 0%, #c8e6c9 100%);
    border-left-color: #28a745;
    color: #1b5e20;
}

.alert-warning {
    background: linear-gradient(135deg, #fff3cd 0%, #ffe082 100%);
    border-left-color: #ffc107;
    color: #e65100;
}

.alert-danger {
    background: linear-gradient(135deg, #f8d7da 0%, #ffcdd2 100%);
    border-left-color: #dc3545;
    color: #b71c1c;
}

/* === AdminLTE4 Modern UI Enhancements === */

/* Modern glassmorphism effects */
.glass-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Modern gradient backgrounds */
.gradient-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
}

.gradient-success {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
}

.gradient-warning {
    background: linear-gradient(135deg, #ffc107 0%, #fd7e14 100%);
}

.gradient-danger {
    background: linear-gradient(135deg, #dc3545 0%, #e83e8c 100%);
}

.gradient-info {
    background: linear-gradient(135deg, #17a2b8 0%, #6f42c1 100%);
}

/* Modern button styles */
.btn-modern {
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    border: none;
}

.btn-modern:active {
    transform: translateY(0);
}

.btn-gradient-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
    color: white;
}

.btn-gradient-success {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
}

.btn-gradient-warning {
    background: linear-gradient(135deg, #ffc107 0%, #fd7e14 100%);
    color: white;
}

.btn-gradient-danger {
    background: linear-gradient(135deg, #dc3545 0%, #e83e8c 100%);
    color: white;
}

/* Modern card headers */
.card-header-modern {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    padding: 1.25rem 1.5rem;
    border-radius: 12px 12px 0 0;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* === تنسيقات التنبيهات والبادجات === */

/* === تنسيقات التنبيهات والبادجات === */

/* === Modal Styles - Login/Register Forms === */
/* Modal backdrop styling - lighter background */
.modal-backdrop {
    background-color: rgba(0, 0, 0, 0.3) !important; /* Lighter than default 0.5 */
    opacity: 1 !important;
}

.modal-backdrop.fade {
    opacity: 0 !important;
}

.modal-backdrop.show {
    opacity: 1 !important;
}

/* === AdminLTE4 Integration Styles === */
/* Modern AdminLTE4-inspired design system */

/* AdminLTE4 Card Styling */
.card {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    overflow: hidden;
}

.card-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    padding: 1.25rem 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
}

.card-header .card-title {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* RTL styles for card-header */
[dir="rtl"] .card-header {
    text-align: right !important;
}

[dir="rtl"] .card-header .card-title {
    margin-right: auto;
    margin-left: 1395px;
}

.card-body {
    padding: 1.5rem;
}

.card-footer {
    background: #f8f9fa;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    padding: 1rem 1.5rem;
}

/* AdminLTE4 Info Boxes */
.info-box {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    overflow: hidden;
}

.info-box-icon {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    font-size: 2rem;
    border-radius: 12px 0 0 12px;
}

.info-box-content {
    padding: 1.25rem;
    flex: 1;
}

.info-box-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
    margin-bottom: 0.25rem;
}

.info-box-text {
    font-size: 0.95rem;
    color: var(--text-secondary);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-box .progress {
    margin-top: 0.75rem;
    height: 4px;
    background: rgba(0, 0, 0, 0.08);
    border-radius: 2px;
}

.info-box .progress-bar {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
    border-radius: 2px;
}

/* AdminLTE4 Small Boxes (Stats Cards) */
.small-box {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}


.small-box .inner {
    padding: 1.5rem;
}

.small-box h3 {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--text-content);
    margin: 0 0 0.5rem 0;
    line-height: 1.2;
}

.small-box p {
    font-size: 0.95rem;
    color: var(--text-content);
    margin: 0;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.small-box .icon {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 3.5rem;
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
}

.small-box:hover .icon {
    transform: scale(1.1);
}
[dir = "rtl"] .small-box .icon {
    right: auto;
    left: 1rem;
}

.small-box-footer {
    background: rgba(0, 0, 0, 0.05);
    color: var(--text-content);
    text-decoration: none;
    padding: 0.75rem 1.5rem !important;
    font-size: 0.875rem;
    font-weight: 500;
    display: block;
    transition: all 0.3s ease;
}

.small-box-footer:hover {
    background: rgba(0, 0, 0, 0.08);
    color: var(--text-content);
}

/* Gradient backgrounds for different card types */
.small-box.text-bg-primary {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
}

.small-box.text-bg-success {
    background: linear-gradient(135deg, #28a745 0%, #1e7e34 100%);
    color: white;
}

.small-box.text-bg-warning {
    background: linear-gradient(135deg, #ffc107 0%, #e0a800 100%);
    color: #212529;
}

.small-box.text-bg-danger {
    background: linear-gradient(135deg, #dc3545 0%, #bd2130 100%);
    color: white;
}

.small-box.text-bg-info {
    background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
    color: white;
}

/* Status-specific :after effects */
.small-box.text-bg-primary::after {
    background: linear-gradient(90deg, var(--primary-color), rgba(255,255,255,0.8), var(--primary-color));
}

.small-box.text-bg-success::after {
    background: linear-gradient(90deg, var(--primary-color), rgba(255,255,255,0.9), var(--primary-color));
}

.small-box.text-bg-warning::after {
    background: linear-gradient(90deg, var(--primary-color), rgba(0,0,0,0.6), var(--primary-color));
}

.small-box.text-bg-danger::after {
    background: linear-gradient(90deg, var(--primary-color), rgba(255,255,255,0.9), var(--primary-color));
}

.small-box.text-bg-info::after {
    background: linear-gradient(90deg, var(--primary-color), rgba(255,255,255,0.8), var(--primary-color));
}

/* Enhanced thickness on hover */
.small-box:hover::after {
    height: 6px;
}

/* AdminLTE4 Timeline Styling */
.timeline {
    position: relative;
    padding: 1rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 1.5rem;
    height: 100%;
    width: 2px;
    background: linear-gradient(to bottom, var(--primary-color), var(--primary-hover));
}

.timeline-item {
    position: relative;
    margin-bottom: 1.5rem;
    padding-left: 3.5rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 1rem;
    top: 0.5rem;
    width: 1rem;
    height: 1rem;
    background: var(--primary-color);
    border-radius: 50%;
    border: 3px solid white;
}

.timeline-item.timeline-item-success::before {
    background: #28a745;
}

.timeline-item.timeline-item-warning::before {
    background: #ffc107;
}

.timeline-item.timeline-item-danger::before {
    background: #dc3545;
}

.timeline-item.timeline-item-info::before {
    background: #17a2b8;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-item .timeline-item-marker {
    position: absolute;
    left: 1rem;
    top: 0.5rem;
    width: 1rem;
    height: 1rem;
    background: var(--primary-color);
    border-radius: 50%;
    border: 3px solid white;
}

.timeline-item .timeline-item-content {
    background: #ffffff;
    border-radius: 8px;
    padding: 1rem;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.timeline-item .timeline-item-content h6 {
    margin: 0 0 0.5rem 0;
    font-weight: 600;
    color: var(--text-primary);
}

.timeline-item .timeline-item-content p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.timeline-item .timeline-item-content small {
    color: var(--text-secondary);
    font-size: 0.75rem;
}

/* AdminLTE4 Button Styling */
.btn {
    background: var(--primary-color);
    border: 2px solid var(--primary-color);
    color: var(--text-content);
    border-radius: 8px;
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
    /* border: none; */
}

.btn:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--text-content);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
    color: var(--text-content);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-hover) 0%, var(--primary-color) 100%);
    color: var(--text-content);
}

.btn-outline-primary {
    background: var(--primary-color);
    border: 2px solid var(--primary-color);
    color: var(--text-content);
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--text-content);
}

.btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
    border-radius: 6px;
}

/* AdminLTE4 Modern Color Schemes */
.bg-gradient-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%) !important;
}

.bg-gradient-success {
    background: linear-gradient(135deg, #28a745 0%, #1e7e34 100%) !important;
}

.bg-gradient-warning {
    background: linear-gradient(135deg, #ffc107 0%, #e0a800 100%) !important;
}

.bg-gradient-danger {
    background: linear-gradient(135deg, #dc3545 0%, #bd2130 100%) !important;
}

.bg-gradient-info {
    background: linear-gradient(135deg, #17a2b8 0%, #138496 100%) !important;
}

.bg-gradient-secondary {
    background: linear-gradient(135deg, #6c757d 0%, #545b62 100%) !important;
}

/* === User Dashboard Specific Styles === */
/* Dashboard content container with proper spacing */

/* AdminLTE4 Enhanced Statistics Cards */
.stats-card {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
    color: white;
    border: none;
    border-radius: 12px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stats-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--primary-color);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.stats-card:hover::before {
    transform: translateX(100%);
}

.stats-card:hover {
    transform: translateY(-3px);
}

.stats-card .card-body {
    padding: 2rem;
    position: relative;
    z-index: 2;
}

.stats-number {
    font-size: 2.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.stats-label {
    font-size: 1rem;
    font-weight: 500;
    opacity: 0.9;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.stats-icon {
    font-size: 3.5rem;
    opacity: 0.8;
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    transition: all 0.3s ease;
}

.stats-card:hover .stats-icon {
    transform: scale(1.1) rotate(5deg);
    opacity: 1;
}

/* AdminLTE4 Progress Bars */
.progress {
    height: 8px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    overflow: hidden;
    margin-top: 1rem;
}

.progress-bar {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0.6) 50%, rgba(255, 255, 255, 0.3) 100%);
    border-radius: 4px;
    transition: width 0.6s ease;
    position: relative;
    overflow: hidden;
}

.progress-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    animation: progress-shine 2s infinite;
}

@keyframes progress-shine {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* AdminLTE4 Badges */
.badge {
    border-radius: 50px;
    font-weight: 500;
    font-size: 0.75rem;
    padding: 0.375rem 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
    color: white;
}

.badge-success {
    background: linear-gradient(135deg, #28a745 0%, #1e7e34 100%);
    color: white;
}

.badge-warning {
    background: linear-gradient(135deg, #ffc107 0%, #e0a800 100%);
    color: #212529;
}

.badge-danger {
    background: linear-gradient(135deg, #dc3545 0%, #bd2130 100%);
    color: white;
}

.badge-info {
    background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
    color: white;
}

/* Chart cards with modern styling */
.chart-card {
    border-radius: 15px;
    border: none;
}

.chart-card .card-header {
    background: #fff;
    border-bottom: 1px solid #e9ecef;
    border-radius: 15px 15px 0 0 !important;
    padding: 1.5rem;
}

/* Custom breadcrumb styling */
.breadcrumb-custom {
    background: var(--primary-color);
    margin-bottom: 0;
}

/* Enhanced breadcrumb styling for better appearance */
.breadcrumb {
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.3px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 10px;
    padding: 0.75rem 1rem;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "›";
    font-size: 1.2rem;
    line-height: 1;
    color: #6c757d;
    font-weight: 300;
    padding: 0 0.5rem;
}

.breadcrumb-item a {
    color: #1d604b;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
}

.breadcrumb-item a:hover {
    color: #2d8a6e;
    background: rgba(29, 96, 75, 0.1);
    text-decoration: none;
    transform: translateY(-1px);
}

.breadcrumb-item.active {
    color: #495057;
    font-weight: 600;
    background: rgba(73, 80, 87, 0.1);
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
}

/* App content header styling */
.app-content-header {
    background: linear-gradient(135deg, #ffffff, #f8f9fa);
    border-bottom: 1px solid #dee2e6;
    padding: 1.5rem 0;
    margin-bottom: 2rem;
}

.app-content-header h3 {
    color: #1d604b;
    font-weight: 700;
    font-size: 1.75rem;
    margin: 0;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

/* Welcome section with gradient background */
.welcome-section {
    background: linear-gradient(135deg, #1d604b, #2d8a6e);
    color: white;
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
}

/* Custom navbar for user dashboard with centered navigation */
.user-dashboard-navbar .navbar-nav .nav-link {
    color: #1d604b !important;
    font-weight: 500;
    margin: 0 10px;
    border-radius: 8px;
    transition: all 0.3s ease;
    padding: 8px 15px;
}

.user-dashboard-navbar .navbar-nav .nav-link:hover {
    background: rgba(29, 96, 75, 0.1);
    color: #1d604b !important;
}

.user-dashboard-navbar .navbar-nav .nav-link.active {
    background: #1d604b;
    color: white !important;
}

.user-dashboard-navbar .navbar-nav .nav-link i {
    margin-right: 5px;
}

/* Notification button styling */
.notification-btn {
    color: #1d604b;
    font-size: 18px;
    cursor: pointer;
    position: relative;
    padding: 8px 12px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.notification-btn:hover {
    background: rgba(29, 96, 75, 0.1);
}

.notification-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #dc3545;
    color: white;
    border-radius: 50%;
    padding: 2px 8px;
    font-size: 12px;
    font-weight: bold;
    display: inline-block;
}

/* Language button styling */
.lang-btn {
    color: #1d604b;
    font-size: 18px;
    cursor: pointer;
    position: relative;
    padding: 8px 12px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.lang-btn:hover {
    background: rgba(29, 96, 75, 0.1);
}

.lang-menu {
    position: absolute;
    top: 45px;
    right: 0;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    display: none;
    min-width: 120px;
    z-index: 1000;
}

.lang-menu a {
    display: block;
    padding: 10px 15px;
    color: #003366;
    text-decoration: none;
    font-weight: 500;
}

.lang-menu a:hover {
    background: #f1f1f1;
}

.lang-menu img {
    width: 20px;
    height: 20px;
    margin-right: 8px;
}
/* AdminLTE4 Timeline Notifications */
.timeline {
    position: relative;
    padding: 1rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 1.5rem;
    height: 100%;
    width: 2px;
    background: linear-gradient(to bottom, var(--primary-color), var(--primary-hover));
}

.timeline-item {
    position: relative;
    margin-bottom: 1.5rem;
    padding-left: 3.5rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 1rem;
    top: 0.5rem;
    width: 1rem;
    height: 1rem;
    background: var(--primary-color);
    border-radius: 50%;
    border: 3px solid white;
    z-index: 2;
}

.timeline-item.timeline-item-success::before {
    background: #28a745;
    box-shadow: 0 0 0 3px #28a745;
}

.timeline-item.timeline-item-warning::before {
    background: #ffc107;
    box-shadow: 0 0 0 3px #ffc107;
}

.timeline-item.timeline-item-danger::before {
    background: #dc3545;
    box-shadow: 0 0 0 3px #dc3545;
}

.timeline-item.timeline-item-info::before {
    background: #17a2b8;
    box-shadow: 0 0 0 3px #17a2b8;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-item .timeline-item-content {
    background: #ffffff;
    border-radius: 8px;
    padding: 1rem;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.timeline-item.unread .timeline-item-content {
    background: linear-gradient(135deg, #f8fff8 0%, #f0f8f0 100%);
    border-left: 4px solid #28a745;
}

.timeline-item.read .timeline-item-content {
    background: #f8f9fa;
    opacity: 0.8;
}

.timeline-item .timeline-item-content h6 {
    margin: 0 0 0.5rem 0;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.timeline-item .timeline-item-content p {
    margin: 0 0 0.5rem 0;
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.4;
}

.timeline-item .timeline-item-content small {
    color: var(--text-secondary);
    font-size: 0.75rem;
    font-weight: 500;
}

.timeline-item .timeline-item-content .badge {
    font-size: 0.7rem;
    padding: 0.25rem 0.5rem;
}

.no-notifications {
    text-align: center;
    color: var(--text-secondary);
    padding: 3rem 2rem;
    font-style: italic;
    background: #f8f9fa;
    border-radius: 8px;
    border: 2px dashed #dee2e6;
}

.error-notifications {
    text-align: center;
    color: #dc3545;
    padding: 1.5rem;
    background: #f8d7da;
    border-radius: 8px;
    border: 1px solid #f5c6cb;
    margin: 1rem;
}

/* RTL adjustments for user dashboard */
[dir="rtl"] .user-dashboard-navbar .navbar-nav .nav-link i {
    margin-right: 0;
    margin-left: 5px;
}

/* RTL spacing fixes for icons and text */
[dir="rtl"] i.fas,
[dir="rtl"] i.far,
[dir="rtl"] i.fab,
[dir="rtl"] i.bi {
    margin-left: 1px !important;
    margin-right: 0px !important;
}

/* Specific spacing for Bootstrap margin classes in RTL */
[dir="rtl"] .me-1 {
    margin-left: 0.25rem !important;
    margin-right: 0 !important;
}

[dir="rtl"] .me-2 {
    margin-left: 0.5rem !important;
    margin-right: 0 !important;
}

[dir="rtl"] .me-3 {
    margin-left: 1rem !important;
    margin-right: 0 !important;
}

[dir="rtl"] .lang-menu {
    right: auto;
    left: 0;
}

[dir="rtl"] .sidebar-notifications {
    right: auto;
    left: -350px;
}

[dir="rtl"] .sidebar-notifications.active {
    left: 0;
}

[dir="rtl"] .notification-icon {
    margin-right: 0;
    margin-left: 15px;
}

[dir="rtl"] .notification-item.unread {
    border-left: none;
    border-right: 4px solid #28a745;
}

[dir="rtl"] .lang-menu img {
    margin-right: 0;
    margin-left: 8px;
}

/* Modal general styling */
.modal-header .btn-close {
    position: absolute;
    top: 1.3rem;
    right: 1rem; /* LTR positioning */
}

[dir="rtl"] .modal-header .btn-close {
    right: auto;
    left: 1rem;
    top: 2rem;
}

/* Password toggle button positioning */
.position-relative .password-toggle {
    position: absolute;
  top: 70%;
  transform: translateY(-50%);
  right: 0;
  height: 50px;
}

[dir="rtl"] .position-relative .password-toggle {
    right: auto;
    left: 0; /* RTL positioning */
}

/* Phone input container styling */
.phone-container {
    display: flex;
    gap: 10px;
}

.phone-container .phone-number {
    flex-grow: 1;
}


/* International phone input styling */
.iti {
    width: 100%;
}

[dir="rtl"] .iti--separate-dial-code .iti__selected-dial-code {
    margin-right: 10px;
    margin-left: 0;
}

.iti__country-list {
    max-height: 200px;
    overflow-y: auto;
}

.iti__flag-container {
    padding: 0 6px;
}

/* Modal button and link colors - Primary Color Theme */
.modal-content .btn-primary {
    background-color: #2f826a !important;
    border-color: #2f826a !important;
}

.modal-content .btn-primary:hover {
    background-color: #49897b !important;
    border-color: #49897b !important;
}

/* Modal links color - Primary Color */
.modal-content a {
    color: #2f826a !important;
    text-decoration: none;
}

.modal-content a:hover {
    color: #49897b !important;
    text-decoration: underline;
}

/* Modal title styling */
.modal-title {
    color: var(--text-content);
    font-size: 1.5rem;
    font-weight: 600;
    text-align: center;
    width: 100%;
    margin-bottom: 1rem;
}

/* Form labels styling */
.modal-content .form-label {
    color: #2f826a;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

/* Login window title styling */
.modal-header {
    background-color: var(--primary-color);
    border-bottom: 2px solid #2f826a;
}

/* Login window header background */
#loginModal .modal-header {
    background: var(--primary-color);
    border-bottom: 3px solid #2f826a;
    border-radius: 0.5rem 0.5rem 0 0;
}

/*******************************************************************************
 * NOTIFICATION SYSTEM STYLES
 * Styles for the notification sidebar, notification items, and related UI
 *******************************************************************************/

/* Enhanced Notification Window Styles */
.sidebar-notifications {
    position: fixed;
    top: 0;
    right: -350px;
    width: 350px;
    height: 100%;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    transition: right 0.3s ease;
    z-index: 1050;
    overflow-y: auto;
    padding: 25px;
    font-family: 'Tajawal', 'Arial', sans-serif;
    border-radius: 15px 0 0 15px;
}

.sidebar-notifications.active {
    right: 0;
}

.sidebar-notifications .close-btn {
    position: absolute;
    background: none;
    border: none;
    top: 10px;
    left: 25px;
    font-size: 32px;
    cursor: pointer;
    color: #2f826a;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.sidebar-notifications .close-btn:hover {
    /* background: #2f826a; */
    color: #fff;
    transform: scale(1.1);
}

.sidebar-notifications h4 {
    color: #2f826a;
    font-weight: 600;
    margin-bottom: 25px;
    text-align: center;
    font-size: 1.4rem;
    padding-bottom: 15px;
    border-bottom: 2px solid #e0e0e0;
}

.notification-item {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
    border: 1px solid #e0e0e0;
    position: relative;
    transition: all 0.3s ease;
    cursor: pointer;
}

.notification-item:hover {
    transform: translateY(-2px);
}

.notification-item.unread {
    background: linear-gradient(135deg, #e7f3ff 0%, #d1e7ff 100%);
    border-left: 4px solid #007bff;
}

.notification-item.read {
    background: #f8f9fa;
    opacity: 0.8;
}

.notification-approved {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%) !important;
    border-left: 4px solid #28a745 !important;
}

.notification-rejected {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%) !important;
    border-left: 4px solid #dc3545 !important;
}

.notification-item .message {
    font-size: 15px;
    margin-bottom: 8px;
    color: #333;
    font-weight: 500;
    line-height: 1.5;
}

.notification-item .timestamp {
    font-size: 13px;
    color: #6c757d;
    font-weight: 400;
}

.notification-item .mark-read {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #007bff;
    font-size: 20px;
    background: #fff;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.notification-item .mark-read:hover {
    background: #007bff;
    color: #fff;
    transform: translateY(-50%) scale(1.1);
}

/* Notification button in navbar */
.notification-btn {
    color: #1d604b;
    font-size: 20px;
    cursor: pointer;
    position: relative;
    background: #fff;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.notification-btn:hover {
    background: #2f826a;
    color: #fff;
    transform: scale(1.1);
}

.notification-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
    border-radius: 50%;
    padding: 3px 8px;
    font-size: 11px;
    font-weight: bold;
    display: inline-block;
    min-width: 20px;
    text-align: center;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* RTL adjustments for enhanced notification sidebar */
[dir="rtl"] .sidebar-notifications {
    right: auto;
    left: -350px;
    border-radius: 0 15px 15px 0;
}

[dir="rtl"] .sidebar-notifications.active {
    left: 0;
}

[dir="rtl"] .sidebar-notifications .close-btn {
    left: auto;
    right: 20px;
}

[dir="rtl"] .notification-item .mark-read {
    left: auto;
    right: 15px;
}

[dir="rtl"] .notification-item .timestamp {
    right: auto;
    left: 20px;
}

[dir="rtl"] .notification-item.unread {
    border-left: none;
    border-right: 4px solid #007bff;
}

[dir="rtl"] .notification-approved {
    border-left: none !important;
    border-right: 4px solid #28a745 !important;
}

[dir="rtl"] .notification-rejected {
    border-left: none !important;
    border-right: 4px solid #dc3545 !important;
}

/* Language menu styling */
.lang-btn {
    color: #1d604b;
    font-size: 20px;
    cursor: pointer;
    position: relative;
    background: #fff;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.lang-btn:hover {
    background: #2f826a;
    color: #fff;
    transform: scale(1.1);
}

.lang-menu {
    position: absolute;
    top: 50px;
    right: 0;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    display: none;
    min-width: 140px;
    z-index: 1000;
    border: 1px solid #e0e0e0;
    backdrop-filter: blur(10px);
}

.lang-menu a {
    display: block;
    padding: 12px 18px;
    color: #333;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border-bottom: 1px solid #f0f0f0;
}

.lang-menu a:last-child {
    border-bottom: none;
}

.lang-menu a:hover {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    color: #2f826a;
    padding-left: 22px;
}

.lang-menu img {
    width: 20px;
    height: 20px;
    margin-right: 10px;
    border-radius: 3px;
}

.alert {
    margin-bottom: 15px;
    padding: 10px;
    border-radius: 8px;
    background: var(--bg-light);
    border: 1px solid var(--card-border);
}

.badge-status {
    padding: 0.4em 0.8em;
    font-size: 0.85em;
    border-radius: 0.35rem;
    font-weight: 600;
    text-transform: capitalize;
    align-items: center;
    gap: 5px;
}

.status-approved {
    color: var(--btn-success-bg);
    padding: 0.25em 0.5em;
    border-radius: 6px;
}

.status-pending, .status-pending-depart-1, .status-pending-depart-2, .status-pending-dept3 {
    color: #ffc107;
    padding: 0.25em 0.5em;
    border-radius: 6px;
}

.status-rejected, .status-rejected-by-dept3 {
    color: var(--btn-danger-bg);
    padding: 0.25em 0.5em;
    border-radius: 6px;
}

.status-approved::before {
    content: "\f00c";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    margin-right: 5px;
}

.status-pending::before, .status-pending-depart-1::before, .status-pending-depart-2::before, .status-pending-dept3::before {
    content: "\f017";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    margin-right: 5px;
}

.status-rejected::before, .status-rejected-by-dept3::before {
    content: "\f00d";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    margin-right: 5px;
}

/* RTL styling for new dashboard components */
[dir="rtl"] .permit-icon {
    margin-right: 0;
    margin-left: 1rem;
}

[dir="rtl"] .notification-icon {
    margin-right: 0;
    margin-left: 1rem;
}

[dir="rtl"] .col-md-6 .d-flex.justify-content-md-end {
    justify-content: flex-start !important;
}

[dir="rtl"] .col-md-4 .d-flex.justify-content-md-end {
    justify-content: flex-start !important;
}

[dir="rtl"] .col-md-6 .d-flex.justify-content-md-end .btn,
[dir="rtl"] .col-md-4 .d-flex.justify-content-md-end .badge {
    margin-left: 0;
    margin-right: 0.5rem;
}

[dir="rtl"] .row.align-items-center .col-md-6:last-child .d-flex {
    justify-content: flex-start !important;
    margin-right: 60px;
}

/* Arabic text alignment improvements */
[dir="rtl"] .list-group-item .row.align-items-center {
    direction: rtl;
    text-align: right;
}

[dir="rtl"] .fw-bold {
    text-align: right;
}

[dir="rtl"] .text-muted {
    text-align: right;
}

[dir="rtl"] .text-muted.d-block {
    text-align: right;
}

[dir="rtl"] .d-flex.align-items-center.mb-2 h6 {
    text-align: right;
    margin-right: 0px !important;
    margin-left: 50px;
}

[dir="rtl"] .d-flex.align-items-center.mb-2 > div:last-child {
    text-align: right;
}

/* Ensure proper spacing in RTL mode */
[dir="rtl"] .me-3 {
    margin-right: 0 !important;
    margin-left: 1rem !important;
}

[dir="rtl"] .ms-2 {
    margin-left: 0 !important;
    margin-right: 0.5rem !important;
}

[dir="rtl"] .me-auto {
    margin-right: 0 !important;
    margin-left: auto !important;
}

[dir="rtl"] .text-end {
    text-align: left !important;
}

/* Dashboard card improvements for RTL */
[dir="rtl"] .small-box .inner {
    text-align: right;
}

[dir="rtl"] .small-box-footer {
    text-align: center;
}

[dir="rtl"] .small-box-footer i {
    margin-left: 0;
    margin-right: 0.25rem;
}

/* Chart section RTL support */
[dir="rtl"] .chart-container {
    direction: rtl;
}

[dir="rtl"] .chart-title {
    text-align: right;
}

/* Notification and permit list RTL improvements */
[dir="rtl"] .list-group-item {
    direction: rtl;
    text-align: right;
}

[dir="rtl"] .badge {
    direction: ltr;
    display: inline-flex;
    align-items: center;
}

[dir="rtl"] .btn-sm {
    direction: ltr;
    align-items: center;
}

[dir="rtl"] .btn-sm i {
    margin-right: 0;
    margin-left: 0.25rem;
}

/* RTL Support for Input Groups */
[dir="rtl"] .input-group {
    direction: rtl;
}

[dir="rtl"] .input-group > .form-control:not(:first-child),
[dir="rtl"] .input-group > .form-select:not(:first-child) {
    border-top-left-radius: 0.375rem;
    border-bottom-left-radius: 0.375rem;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

[dir="rtl"] .input-group > .form-control:not(:last-child),
[dir="rtl"] .input-group > .form-select:not(:last-child) {
    border-top-right-radius: 0.375rem;
    border-bottom-right-radius: 0.375rem;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

[dir="rtl"] .input-group .btn {
    border-radius: 0;
}

[dir="rtl"] .input-group > :not(:first-child):not(.dropdown-menu):not(.valid-tooltip):not(.valid-feedback):not(.invalid-tooltip):not(.invalid-feedback) {
    margin-left: 0;
    margin-right: -1px;
}

[dir="rtl"] .input-group-text {
    border-radius: 0 0.375rem 0.375rem 0;
}

[dir="rtl"] .input-group > .input-group-append > .btn,
[dir="rtl"] .input-group > .input-group-append > .input-group-text {
    border-radius: 0.375rem 0 0 0.375rem;
}

[dir="rtl"] .input-group > .input-group-prepend > .btn,
[dir="rtl"] .input-group > .input-group-prepend > .input-group-text {
    border-radius: 0 0.375rem 0.375rem 0;
}

/* RTL Support for Registration Modal Input Groups */
[dir="rtl"] #registerModal .input-group .btn {
    border-radius: 0.375rem 0 0 0.375rem;
    border-left: 1px solid #ced4da;
    border-right: 0;
}

[dir="rtl"] #registerModal .input-group .form-control {
    border-radius: 0 0.375rem 0.375rem 0;
    border-right: 1px solid #ced4da;
    border-left: 0;
}

[dir="rtl"] #registerModal .input-group .form-control:focus {
    border-color: #86b7fe;
}

[dir="rtl"] #registerModal .input-group .btn-outline-success {
    border-color: var(--primary-color);
    color: var(--text-content);
}

/* RTL Support for Disabled Send Code Button */
[dir="rtl"] #registerModal .input-group .btn-outline-success:disabled,
[dir="rtl"] #registerModal .input-group .btn-outline-success.disabled {
    background-color: transparent !important;
    border-color: #198754 !important;
    color: #198754 !important;
    opacity: 0.65;
}

[dir="rtl"] #registerModal .btn-outline-success:disabled,
[dir="rtl"] #registerModal .btn-outline-success.disabled {
    background-color: transparent !important;
    border-color: #198754 !important;
    color: #198754 !important;
    opacity: 0.65;
}

/* RTL Support for Registration Modal Header */
[dir="rtl"] #registerModal .modal-header {
    direction: rtl;
    text-align: right;
}

[dir="rtl"] #registerModal .modal-title {
    text-align: right;
    padding-right: 1rem;
}

[dir="rtl"] #registerModal .btn-close {
    margin-left: 0;
    margin-right: auto;
}

/* RTL Support for Registration Modal Form */
[dir="rtl"] #registerModal .modal-body {
    direction: rtl;
    text-align: right;
}

[dir="rtl"] #registerModal .form-label {
    text-align: right;
    display: block;
}

[dir="rtl"] #registerModal .form-control,
[dir="rtl"] #registerModal .form-select {
    text-align: right;
}

[dir="rtl"] #registerModal .form-text {
    text-align: right;
}

/* RTL Support for Password Toggle Buttons in Registration Modal */
[dir="rtl"] #registerModal .position-relative .password-toggle {
    right: auto;
    left: 0;
    border-radius: 0.375rem 0 0 0.375rem;
    border-left: 1px solid #ced4da;
    border-right: 0;
}

[dir="rtl"] #registerModal .position-relative .form-control {
    padding-right: 0.75rem;
    padding-left: 2.5rem;
    border-radius: 0 0.375rem 0.375rem 0;
    border-right: 1px solid #ced4da;
    border-left: 0;
}


[dir="rtl"] #registerModal .position-relative .password-toggle:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

/*******************************************************************************
 * PAGE-SPECIFIC STYLES
 * Each section contains styles for specific pages
 *******************************************************************************/

/* === MY REQUESTS PAGE STYLES === */
/*******************************************************************************
 * MY REQUESTS PAGE STYLES (my_requests.php)
 * Styles for the user's request management page including statistics, filters,
 * table display, pagination, and mobile responsive design
 *******************************************************************************/

/* === Desktop Styles === */
.my-requests-page .dashboard-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 15px;
    border: 1px solid rgba(47, 130, 106, 0.1);
    transition: all 0.3s ease;
    margin-top: 25px;
}

.my-requests-page .dashboard-card:hover {
    transform: translateY(-5px);
}

.my-requests-page .stats-container {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.my-requests-page .stat-card {
    flex: 1;
    min-width: 200px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    padding: 25px;
    border-radius: 15px;
    border: 1px solid rgba(47, 130, 106, 0.1);
    transition: all 0.3s ease;
    text-align: center;
    opacity: 0.9;
}

.my-requests-page .stat-card:nth-child(1) {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: var(--text-content) !important;
}

.my-requests-page .stat-card:nth-child(2) {
    background: linear-gradient(135deg, #28a745 0%, #1e7e34 100%);
}

.my-requests-page .stat-card:nth-child(3) {
    background: linear-gradient(135deg, #ffc107 0%, #e0a800 100%);
}

.my-requests-page .stat-card:nth-child(4) {
    background: linear-gradient(135deg, #dc3545 0%, #bd2130 100%);
}

.my-requests-page .stat-card:hover {
    transform: translateY(-3px);
}

.my-requests-page .stat-number {
    font-size: 2.5em;
    font-weight: bold;
    margin-bottom: 5px;
    color: var(--text-content) !important;
}

.my-requests-page .stat-label {
    color: var(--text-content) !important;
    font-size: 1.1em;
    font-weight: 500;
}

.my-requests-page .filter-controls {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    align-items: center;
}

.my-requests-page .filter-controls select,
.my-requests-page .filter-controls input {
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    min-width: 300px;
    max-width: 350px;
}

.my-requests-page .table-container {
    background: white;
    border-radius: 15px;
    padding: 20px;
    margin-top: 20px;
}

.my-requests-page .btn-primary {
    background: var(--primary-color);
    border: none;
    border-radius: 8px;
    padding: 8px 16px;
    transition: all 0.3s ease;
}

.my-requests-page .btn-primary:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
}

.my-requests-page .modal-content {
    border-radius: 15px;
    border: none;
}

.my-requests-page .modal-header {
    background: var(--primary-color);
    color: white;
    border-radius: 15px 15px 0 0;
    border: none;
}

.my-requests-page .modal-footer {
    border-top: 1px solid #eee;
    border-radius: 0 0 15px 15px;
}

.my-requests-page .pagination {
    margin-top: 20px;
    justify-content: center;
}

.my-requests-page .page-link {
    color: var(--primary-color);
    border: 1px solid #ddd;
    border-radius: 8px;
    margin: 0 2px;
    transition: all 0.3s ease;
}

.my-requests-page .page-link:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.my-requests-page .page-item.active .page-link {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.my-requests-page .pagination-info {
    text-align: center;
    margin: 15px 0;
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
}

/* === Mobile Responsive Styles === */
@media (max-width: 768px) {
    .my-requests-page .container {
        padding: 0 10px;
    }
    
    .my-requests-page .container-fluid {
        padding: 10px;
    }
    
    .my-requests-page .dashboard-card {
        margin-top: 15px;
        border-radius: 10px;
    }
    
    .my-requests-page .dashboard-card .card-body {
        padding: 15px !important;
    }
    
    .my-requests-page .card-body {
        padding: 15px;
    }
    
    .my-requests-page .head .btn {
        width: 100%;
        margin-bottom: 15px;
    }
    
    .my-requests-page .stats-container {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
        margin-bottom: 20px !important;
        flex-direction: column;
    }
    
    .my-requests-page .stat-card {
        min-width: auto;
        padding: 15px !important;
        border-radius: 10px;
    }
    
    .my-requests-page .stat-number {
        font-size: 1.8em !important;
    }
    
    .my-requests-page .stat-label {
        font-size: 0.9em !important;
    }
    
    .my-requests-page .filter-controls {
        display: flex;
        flex-direction: column;
        gap: 10px;
        margin-bottom: 20px;
        align-items: stretch;
    }
    
    .my-requests-page .filter-controls .form-select,
    .my-requests-page .filter-controls .form-control {
        width: 100% !important;
        min-width: auto;
        max-width: none;
        font-size: 16px;
        padding: 12px;
    }
    
    .my-requests-page .refresh-btn {
        width: 100%;
    }
    
    /* Table mobile responsiveness */
    .my-requests-page .table-container {
        padding: 15px;
        border-radius: 10px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .my-requests-page .table {
        min-width: 800px !important;
        font-size: 0.85rem;
    }
    
    .my-requests-page .table th,
    .my-requests-page .table td {
        padding: 8px 4px !important;
        white-space: nowrap;
    }
    
    /* Hide less important columns on mobile */
    .my-requests-page .table th:nth-child(4), /* Approval Number */
    .my-requests-page .table td:nth-child(4) {
        display: none;
    }
    
    .my-requests-page .table th:nth-child(5), /* Submitted At */
    .my-requests-page .table td:nth-child(5) {
        display: none;
    }
    
    /* Make action buttons smaller */
    .my-requests-page .btn-sm {
        padding: 0.2rem 0.4rem;
        font-size: 0.75rem;
    }
    
    /* Modal responsiveness */
    .my-requests-page .modal-dialog {
        margin: 10px;
        max-width: calc(100% - 20px);
    }
    
    .my-requests-page .modal-body {
        padding: 15px;
    }
    
    .my-requests-page .modal-body .row {
        margin: 0;
    }
    
    .my-requests-page .modal-body .col-md-6 {
        padding: 5px 0;
    }
    
    /* Pagination mobile */
    .my-requests-page .pagination {
        justify-content: center;
        flex-wrap: wrap;
        margin-top: 15px;
    }
    
    .my-requests-page .pagination .page-item {
        margin: 2px;
    }
    
    .my-requests-page .page-link {
        padding: 8px 12px;
        font-size: 14px;
        margin: 2px;
    }
    
    .my-requests-page .pagination-info {
        text-align: center;
        font-size: 0.85rem;
        margin: 10px 0;
    }
    
    /* Improve touch targets for mobile */
    .my-requests-page .btn {
        min-height: 44px;
        padding: 10px 15px;
    }
    
    .my-requests-page .form-select,
    .my-requests-page .form-control {
        min-height: 44px;
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    .my-requests-page .view-btn,
    .my-requests-page .print-btn {
        min-height: 36px;
        margin: 2px;
    }
}

@media (max-width: 576px) {
    .my-requests-page .stats-container {
        grid-template-columns: 1fr !important;
    }
    
    .my-requests-page .stat-card {
        padding: 15px 10px;
    }
    
    .my-requests-page .stat-number {
        font-size: 1.5rem !important;
    }
    
    .my-requests-page .stat-label {
        font-size: 0.85rem !important;
    }
    
    .my-requests-page .table {
        font-size: 0.8rem;
    }
    
    .my-requests-page .table th,
    .my-requests-page .table td {
        padding: 6px 3px !important;
    }
    
    /* Hide flight number column on very small screens */
    .my-requests-page .table th:nth-child(2),
    .my-requests-page .table td:nth-child(2) {
        display: none;
    }
    
    .my-requests-page .btn-sm {
        padding: 0.15rem 0.3rem;
        font-size: 0.7rem;
    }
    
    .my-requests-page .modal-dialog {
        margin: 5px;
        max-width: calc(100% - 10px);
    }
    
    .my-requests-page .modal-header .modal-title {
        font-size: 1rem;
    }
    
    .my-requests-page .page-link {
        padding: 6px 10px;
        font-size: 12px;
    }
}

/* === RTL Support === */
[dir="rtl"] .my-requests-page .pagination-info {
    text-align: center;
}









/* Removed conflicting .print-btn styles to maintain Bootstrap button consistency */

/* ========================================
   RESPONSIVE DESIGN ENHANCEMENTS
   ======================================== */

/* Enhanced responsive design for different screen sizes */

/* Large screens (1200px and up) */
@media (min-width: 1200px) {
    .permit-form-wrapper {
        max-width: 1400px;
        padding: 50px;
    }
    
    .form-section {
        padding: 30px;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
}

/* Medium screens (992px to 1199px) */
@media (max-width: 1199px) and (min-width: 992px) {
    .permit-form-wrapper {
        max-width: 100%;
        padding: 40px 30px;
    }
    
    .form-section {
        padding: 25px 20px;
    }
    
    .form-header h2 {
        font-size: 1.75rem;
    }
}

/* Small screens (768px to 991px) */
@media (max-width: 991px) and (min-width: 768px) {
    .permit-form-wrapper {
        max-width: 100%;
        padding: 30px 20px;
        margin: 20px auto;
    }
    
    .form-section {
        padding: 20px 15px;
        margin-bottom: 20px;
    }
    
    .form-header {
        flex-direction: column;
        align-items: stretch !important;
        gap: 15px;
    }
    
    .form-header h2 {
        text-align: center;
        font-size: 1.5rem;
        margin-bottom: 0;
    }
    
    .form-header .btn {
        align-self: center;
        width: auto;
    }
    
    .section-title {
        font-size: 1.25rem;
        text-align: center;
    }
    
    .schedule-group {
        padding: 15px;
    }
    
    .schedule-group .row {
        margin: 0 -5px;
    }
    
    .schedule-group .col-md-6 {
        padding: 0 5px;
        margin-bottom: 15px;
    }
}

/* Extra small screens (below 768px) - Mobile */
@media (max-width: 767px) {
    .container-fluid {
        padding: 0 10px;
    }
    
    .content {
        padding-left: 10px !important;
        padding-right: 10px !important;
        padding-bottom: 10px !important;
        padding-top: 75px !important; /* prevent overlap with fixed navbar */
    }

    .content-wrapper {
        padding-left: 10px;
        padding-right: 10px;
        padding-bottom: 10px;
        padding-top: 75px; /* prevent overlap with fixed navbar */
    }
    
    .permit-form-wrapper {
        max-width: 100%;
        padding: 20px 15px;
        margin: 10px auto;
        border-radius: 8px;
    }
    
    .form-section {
        padding: 15px 10px;
        margin-bottom: 15px;
        border-radius: 8px;
    }
    
    .form-header {
        flex-direction: column;
        align-items: stretch !important;
        gap: 15px;
        margin-bottom: 20px;
    }
    
    .form-header h2 {
        text-align: center;
        font-size: 1.25rem;
        margin-bottom: 0;
        line-height: 1.3;
    }
    
    .form-header .btn {
        align-self: center;
        width: auto;
        padding: 8px 16px;
        font-size: 0.9rem;
    }
    
    .section-title {
        font-size: 1.1rem;
        text-align: center;
        margin-bottom: 15px;
    }
    
    .form-group {
        margin-bottom: 15px;
    }
    
    .form-group label {
        font-size: 0.9rem;
        margin-bottom: 5px;
    }
    
    .form-control {
        font-size: 0.9rem;
        padding: 8px 12px;
    }
    
    .form-select {
        font-size: 0.9rem;
        padding: 8px 12px;
    }
    
    .schedule-group {
        padding: 10px;
        margin-bottom: 15px;
    }
    
    .schedule-group .row {
        margin: 0 -5px;
    }
    
    .schedule-group .col-md-6 {
        padding: 0 5px;
        margin-bottom: 10px;
    }
    
    .schedule-group .btn {
        padding: 6px 12px;
        font-size: 0.8rem;
        margin: 2px;
    }
    
    .add-btn {
        width: 100%;
        margin-top: 15px;
        padding: 10px;
        font-size: 0.9rem;
    }
    
    .certificate-upload-container {
        margin-bottom: 20px;
    }
    
    .certificate-upload-container .form-label {
        font-size: 0.9rem;
    }
    
    .file-info {
        font-size: 0.8rem;
    }
    
    .file-info .btn {
        padding: 4px 8px;
        font-size: 0.7rem;
    }
    
    .btn-primary {
        width: 100%;
        padding: 12px;
        font-size: 1rem;
        margin-top: 20px;
    }
    
    /* Stack columns on mobile */
    .row .col-md-6,
    .row .col-md-4,
    .row .col-md-3 {
        margin-bottom: 15px;
    }
    
    /* Adjust form check elements */
    .form-check {
        margin-bottom: 10px;
    }
    
    .form-check-label {
        font-size: 0.9rem;
    }
    
    /* Textarea adjustments */
    textarea.form-control {
        min-height: 80px;
        font-size: 0.9rem;
    }
}

/* Very small screens (below 480px) */
@media (max-width: 479px) {
    .permit-form-wrapper {
        padding: 15px 10px;
        margin: 5px auto;
    }
    
    .form-section {
        padding: 10px 8px;
    }
    
    .form-header h2 {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 1rem;
    }
    
    .form-control,
    .form-select {
        font-size: 0.85rem;
        padding: 6px 10px;
    }
    
    .schedule-group {
        padding: 8px;
    }
    
    .schedule-group .btn {
        padding: 4px 8px;
        font-size: 0.75rem;
        margin: 1px;
    }
}

/* Landscape orientation adjustments for mobile */
@media (max-width: 767px) and (orientation: landscape) {
    .permit-form-wrapper {
        padding: 15px;
    }
    
    .form-section {
        padding: 12px;
    }
    
    .form-header {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    
    .form-header h2 {
        font-size: 1.2rem;
        text-align: left;
    }
}

/* Enhanced form styling additions */

/* Form validation styling */


/* Loading state for form */
.form-loading {
    opacity: 0.7;
    pointer-events: none;
}

.form-loading .btn-primary {
    background: #bdc3c7;
    cursor: not-allowed;
}

/* Enhanced focus states */
.form-control:focus,
.form-select:focus {
    border-color: #3498db;
    outline: none;
}

/* Certificate upload section styling */
.certificate-section {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border: 2px dashed #dee2e6;
    border-radius: 12px;
    padding: 25px;
    margin: 20px 0;
    transition: all 0.3s ease;
}

.certificate-section:hover {
    border-color: #3498db;
    background: linear-gradient(135deg, #f1f8ff, #e3f2fd);
}

.certificate-section h4 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-weight: 600;
    text-align: center;
}

/* File upload styling */
.file-upload-wrapper {
    position: relative;
    display: inline-block;
    width: 100%;
    margin-bottom: 15px;
}

.file-upload-input {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.file-upload-label {
    display: block;
    padding: 15px 20px;
    background: linear-gradient(135deg, #ecf0f1, #bdc3c7);
    border: 2px dashed #95a5a6;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.file-upload-label:hover {
    background: linear-gradient(135deg, #d5dbdb, #a6acaf);
    border-color: #7f8c8d;
}

.file-upload-label i {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #7f8c8d;
}

/* Preview styling */
.file-preview {
    margin-top: 10px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 6px;
    border-left: 4px solid #3498db;
}

.file-info {
    font-size: 0.9rem;
    color: #6c757d;
    margin-top: 5px;
}

/* Button active states */
.btn-primary:active {
    transform: translateY(0);
}

/* Responsive enhancements for mobile */
@media (max-width: 576px) {
    .form-section {
        padding: 15px;
        margin-bottom: 15px;
    }
    
    .section-title {
        font-size: 1.3rem;
        margin-bottom: 15px;
    }
    
    .certificate-section {
        padding: 15px;
        margin: 15px 0;
    }
    
    .file-upload-label {
        padding: 12px 15px;
        font-size: 0.9rem;
    }
}

/* File display improvements for permit details modal */
.file-card {
    border-radius: 8px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}


.file-icon-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 8px;
    background: rgba(var(--bs-primary-rgb), 0.1);
}

.file-actions .btn {
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.file-actions .btn:hover {
    transform: translateY(-1px);
}

.file-actions .btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
    border: none;
}

.file-actions .btn-outline-secondary:hover {
    background: var(--bg-light);
    border-color: var(--card-border);
    color: var(--text-secondary);
}

/* RTL support for file cards */
[dir="rtl"] .file-icon-container {
    margin-left: 1rem;
    margin-right: 0;
}

[dir="rtl"] .file-actions .btn .fas {
    margin-left: 0.25rem;
    margin-right: 0;
}

/* Mobile responsiveness for file cards */
@media (max-width: 576px) {
    .file-card .card-body {
        padding: 1rem !important;
    }
    
    .file-icon-container {
        width: 40px;
        height: 40px;
    }
    
    .file-icon-container i {
        font-size: 1.25rem !important;
    }
    
    .file-actions .btn {
        font-size: 0.875rem;
        padding: 0.375rem 0.75rem;
    }
}

/* ===== INDEX PAGE MOBILE RESPONSIVENESS ===== */

/* Mobile styles for index page recent requests */
@media (max-width: 768px) {
    .list-group-item .d-flex.align-items-center.justify-content-between {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 15px;
    }
    
    .list-group-item .d-flex.align-items-center.flex-wrap.gap-3 {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 10px !important;
    }
    
    .list-group-item .d-flex.align-items-center.gap-2 {
        align-self: flex-end;
        margin-top: 10px;
    }
    
    /* Statistics cards mobile optimization */
    .small-box {
        margin-bottom: 20px;
    }
    
    .small-box .inner h3 {
        font-size: 1.8rem;
    }
    
    .small-box .inner p {
        font-size: 0.9rem;
    }
    
    .small-box .icon {
        font-size: 60px;
        right: 15px;
        top: 15px;
    }
}

@media (max-width: 576px) {
    /* Recent requests mobile layout */
    .list-group-item {
        padding: 15px !important;
    }
    
    .list-group-item .d-flex.align-items-center.flex-wrap.gap-3 {
        gap: 8px !important;
    }
    
    .list-group-item .fw-bold {
        font-size: 0.95rem;
        margin-bottom: 8px;
        display: block;
        width: 100%;
    }
    
    .list-group-item small {
        font-size: 0.8rem;
    }
    
    .list-group-item .btn-sm {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
    
    /* Statistics cards extra small screens */
    .small-box .inner h3 {
        font-size: 1.5rem;
    }
    
    .small-box .inner p {
        font-size: 0.8rem;
        line-height: 1.2;
    }
    
    .small-box .icon {
        font-size: 50px;
        right: 10px;
        top: 10px;
    }
    
    /* Dashboard container padding */
    .content-wrapper {
        padding: 10px;
    }
    
    .container-fluid {
        padding-left: 10px;
        padding-right: 10px;
    }
}

/* ===== ARABIC LANGUAGE SUPPORT ===== */

/* RTL support for recent requests */
[dir="rtl"] .list-group-item .d-flex.align-items-center.justify-content-between {
    direction: rtl;
}

[dir="rtl"] .list-group-item .d-flex.align-items-center.flex-wrap.gap-3 {
    direction: rtl;
}

[dir="rtl"] .list-group-item .d-flex.align-items-center.gap-2 {
    direction: rtl;
}

[dir="rtl"] .list-group-item small {
    direction: rtl;
}

/* RTL statistics cards */
[dir="rtl"] .small-box .icon {
    left: 15px;
    right: auto;
}

[dir="rtl"] .small-box .inner {
    text-align: right;
}

[dir="rtl"] .small-box-footer {
    text-align: right;
}

/* RTL mobile adjustments */
@media (max-width: 576px) {
    [dir="rtl"] .small-box .icon {
        left: 10px;
        right: auto;
    }
    
    [dir="rtl"] .list-group-item .d-flex.align-items-center.gap-2 {
        align-self: flex-start;
    }
}

/* Arabic font optimization */
[dir="rtl"] body,
[dir="rtl"] .list-group-item,
[dir="rtl"] .small-box {
    font-family: 'Tajawal', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

[dir="rtl"] .fw-bold {
    font-weight: 600;
}

/* Enhanced touch targets for mobile */
@media (max-width: 768px) {
    .view-permit-btn {
        min-height: 44px;
        min-width: 44px;
        padding: 8px 16px;
    }
    
    .list-group-item {
        min-height: 60px;
    }
    
    .small-box {
        min-height: 120px;
        cursor: pointer;
        transition: transform 0.2s ease;
    }
    
    .small-box:active {
        transform: scale(0.98);
    }
}

/* ========================================
   CERTIFICATE UPLOAD ENHANCEMENTS
   ======================================== */

/* Upload wrapper styling */
.upload-wrapper {
    position: relative;
    margin-bottom: 1rem;
}

/* File info container */
.file-info {
    margin-top: 0.75rem;
    padding: 0.75rem;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    display: none; /* Hidden by default */
}

/* File details section */
.file-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.file-name {
    font-weight: 500;
    color: var(--text-primary);
    word-break: break-word;
    flex: 1;
    margin-right: 1rem;
}

.file-size {
    font-size: 0.875rem;
    color: var(--text-secondary);
    white-space: nowrap;
}

/* Remove file button */
.remove-file {
    background-color: var(--btn-danger-bg);
    color: white;
    border: none;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    cursor: pointer;
    transition: background-color 0.15s ease-in-out;
}

.remove-file:hover {
    background-color: var(--btn-danger-hover);
}

/* File preview container */
.file-preview {
    text-align: center;
    padding: 1rem;
    background-color: white;
    border: 1px solid #e9ecef;
    border-radius: 0.375rem;
}

/* Image preview styling */
.image-preview img {
    max-width: 200px;
    max-height: 150px;
    border: 1px solid #ddd;
    border-radius: 4px;
    object-fit: cover;
}

/* PDF preview styling */
.pdf-preview {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #dc3545;
}

.pdf-preview i {
    margin-bottom: 0.5rem;
}

.pdf-preview p {
    margin: 0;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* Enhanced file input styling */

.certificate-upload:focus {
    border-color: var(--primary-color);
}

.certificate-upload.is-valid {
    border-color: #198754;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%23198754' d='m2.3 6.73.94-.94 1.38 1.38 3.22-3.22.94.94L4.25 9.25z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.certificate-upload.is-invalid {
    border-color: #dc3545;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath d='m5.8 4.6 2.4 2.4M8.2 4.6l-2.4 2.4'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

/* RTL support for upload enhancements */
[dir="rtl"] .file-details {
    flex-direction: row-reverse;
}

[dir="rtl"] .file-name {
    margin-right: 0;
    margin-left: 1rem;
}

[dir="rtl"] .certificate-upload.is-valid,
[dir="rtl"] .certificate-upload.is-invalid {
    background-position: left calc(0.375em + 0.1875rem) center;
}

/* Responsive adjustments for mobile */
@media (max-width: 768px) {
    .file-details {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .file-name {
        margin-right: 0;
        margin-bottom: 0.25rem;
    }
    
    .image-preview img {
        max-width: 150px;
        max-height: 100px;
    }
}







/* Shared button styles for wages pages */
/*******************************************************************************
 * WAGES & FEES PAGE STYLES (wages_fees.php)
 * Styles for the wages and fees page including filter controls, data tables,
 * pagination, and mobile responsive design
 *******************************************************************************/

/* === Desktop Styles === */
.wages-fees-page .dashboard-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 15px;
    border: 1px solid rgba(47, 130, 106, 0.1);
    margin-bottom: 30px;
    margin-top: 130px !important;
    max-width: 1800px;
    margin: 0 auto 30px auto;
    width: 95%;
    transition: all 0.3s ease;
}

.wages-fees-page .dashboard-card:hover {
    transform: translateY(-2px);
}

.wages-fees-page .card-body {
    padding: 40px;
}

.wages-fees-page .content {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.wages-fees-page .container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 1900px;
    margin: 0 auto;
    padding: 0 20px;
}

.wages-fees-page .filter-controls {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: nowrap;
    align-items: flex-end;
    justify-content: flex-start;
}

.wages-fees-page .filter-controls select,
.wages-fees-page .filter-controls input {
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    min-width: 280px;
    max-width: 300px;
}

.wages-fees-page .table-container {
    background: white;
    border-radius: 15px;
    padding: 25px;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    overflow-x: auto;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
}

.wages-fees-page .wages-table {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    width: 100%;
    min-width: 1200px;
}

.wages-fees-page .btn-primary {
    background: var(--primary-color);
    border: none;
    border-radius: 8px;
    padding: 8px 16px;
    transition: all 0.3s ease;
}

.wages-fees-page .btn-primary:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
}

.wages-fees-page .btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: 8px;
    padding: 8px 16px;
    transition: all 0.3s ease;
}

.wages-fees-page .btn-outline-primary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.wages-fees-page .pagination {
    margin-top: 20px;
    justify-content: center;
}

.wages-fees-page .page-link {
    color: var(--primary-color);
    border: 1px solid #ddd;
    border-radius: 8px;
    margin: 0 2px;
    transition: all 0.3s ease;
}

.wages-fees-page .page-link:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.wages-fees-page .page-item.active .page-link {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--text-content);
}

.wages-fees-page .pagination-info {
    text-align: center;
    margin: 15px 0;
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
}

.wages-fees-page .alert-danger {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    border: 1px solid #f5c6cb;
    color: #721c24;
    border-radius: 10px;
}

.wages-fees-page .spinner-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 200px;
}

/* === Mobile Responsive Styles === */
@media (max-width: 768px) {
    .wages-fees-page .content {
        padding: 10px;
        min-height: auto;
    }
    
    .wages-fees-page .container {
        padding: 0 10px;
        margin-right: 0 !important;
        max-width: 100%;
    }
    
    .wages-fees-page .dashboard-card {
        margin: 10px 0 20px 0 !important;
        border-radius: 10px;
        max-width: 100%;
        width: 100%;
        box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    }
    
    .wages-fees-page .card-body {
        padding: 20px 15px;
    }
    
    .wages-fees-page .filter-controls {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
        margin-bottom: 25px;
    }
    
    .wages-fees-page .col-md-4 {
        padding: 0;
        margin-bottom: 15px;
    }
    
    .wages-fees-page .filter-controls select,
    .wages-fees-page .filter-controls input {
        width: 100%;
        min-width: auto;
        max-width: none;
        font-size: 16px; /* Prevents zoom on iOS */
        padding: 14px 16px;
        min-height: 48px;
        touch-action: manipulation;
        border-radius: 10px;
        border: 2px solid #e0e0e0;
        transition: all 0.3s ease;
        background: #fff;
        -webkit-appearance: none;
        -moz-appearance: none;
        appearance: none;
    }
    
    .wages-fees-page .filter-controls select:focus,
    .wages-fees-page .filter-controls input:focus {
        border-color: var(--primary-color);
        outline: none;
        box-shadow: 0 0 0 3px rgba(47, 130, 106, 0.1);
    }
    
    .wages-fees-page .form-label {
        font-size: 1em;
        font-weight: 600;
        margin-bottom: 10px;
        color: var(--primary-color);
        display: block;
    }
    
    .wages-fees-page .btn {
        width: 100%;
        padding: 14px 20px;
        font-size: 1.1em;
        margin-top: 15px;
        min-height: 48px;
        touch-action: manipulation;
        border-radius: 10px;
        font-weight: 600;
        transition: all 0.3s ease;
        border: none;
        cursor: pointer;
    }
    
    .wages-fees-page .btn:active {
        transform: scale(0.98);
    }
    
    .wages-fees-page .table-container {
        padding: 15px 8px;
        border-radius: 12px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        background: white;
        margin: 20px 0;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        position: relative;
    }
    
    .wages-fees-page .wages-table {
        min-width: 600px;
        font-size: 0.9em;
        border-radius: 10px;
        overflow: hidden;
        width: 100%;
    }
    
    .wages-fees-page .wages-table th,
    .wages-fees-page .wages-table td {
        padding: 12px 10px;
        white-space: nowrap;
        border-bottom: 1px solid #f0f0f0;
        text-align: left;
    }
    
    .wages-fees-page .wages-table th {
        background: linear-gradient(135deg, var(--primary-color) 0%, #003366 100%);
        color: white;
        font-weight: 600;
        font-size: 0.95em;
        position: sticky;
        top: 0;
        z-index: 10;
    }
    
    .wages-fees-page .wages-table tbody tr {
        transition: background-color 0.2s ease;
    }
    
    .wages-fees-page .wages-table tbody tr:hover {
        background: rgba(47, 130, 106, 0.05);
    }
    
    .wages-fees-page .wages-table tbody tr:nth-child(even) {
        background: rgba(248, 249, 250, 0.5);
    }
    
    .wages-fees-page .wages-table tbody tr:nth-child(even):hover {
        background: rgba(47, 130, 106, 0.08);
    }
    
    .wages-fees-page .wages-table th:nth-child(5),
    .wages-fees-page .wages-table td:nth-child(5) {
        display: none; /* Hide description column on mobile */
    }
    
    .wages-fees-page .pagination {
        flex-wrap: wrap;
        justify-content: center;
        margin-top: 25px;
        gap: 8px;
        padding: 0 10px;
    }
    
    .wages-fees-page .page-link {
        padding: 12px 16px;
        font-size: 0.95em;
        margin: 3px;
        min-height: 48px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 10px;
        transition: all 0.3s ease;
        border: 2px solid #e0e0e0;
        background: white;
        color: var(--primary-color);
        font-weight: 500;
        text-decoration: none;
    }
    
    .wages-fees-page .page-link:hover,
    .wages-fees-page .page-link:focus {
        background: var(--primary-color);
        color: white;
        border-color: var(--primary-color);
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(47, 130, 106, 0.3);
    }
    
    .wages-fees-page .page-item.active .page-link {
        background: var(--primary-color);
        border-color: var(--primary-color);
        color: white;
        font-weight: 600;
    }
    
    .wages-fees-page .page-link:active {
        transform: scale(0.95);
    }
    
    .wages-fees-page .pagination-info {
        font-size: 0.9em;
        margin: 15px 0;
        text-align: center;
        color: var(--text-secondary);
    }
    
    .wages-fees-page .spinner-container {
        height: 150px;
    }
    
    .wages-fees-page .alert-danger {
        font-size: 0.9em;
        padding: 15px;
        border-radius: 10px;
        margin: 15px 0;
    }
    
    /* Enhanced loading states */
    .wages-fees-page .loading-overlay {
        background: rgba(255, 255, 255, 0.9);
        border-radius: 10px;
    }
}

@media (max-width: 576px) {
    .wages-fees-page .content {
        padding: 5px;
    }
    
    .wages-fees-page .container {
        padding: 0 5px;
    }
    
    .wages-fees-page .dashboard-card {
        margin: 5px 0 15px 0 !important;
        border-radius: 8px;
        width: 100%;
        max-width: 100%;
    }
    
    .wages-fees-page .card-body {
        padding: 15px 10px;
    }
    
    .wages-fees-page .filter-controls {
        gap: 12px;
        margin-bottom: 20px;
    }
    
    .wages-fees-page .col-md-4 {
        margin-bottom: 12px;
    }
    
    .wages-fees-page .filter-controls select,
    .wages-fees-page .filter-controls input {
        font-size: 16px; /* Prevents zoom on iOS */
        padding: 12px 15px;
        min-height: 44px;
        border-radius: 8px;
    }
    
    .wages-fees-page .form-label {
        font-size: 0.9em;
        margin-bottom: 6px;
    }
    
    .wages-fees-page .btn {
        padding: 12px 18px;
        font-size: 0.95em;
        min-height: 44px;
    }
    
    .wages-fees-page .table-container {
        padding: 12px 8px;
        border-radius: 8px;
        margin: 15px 0;
    }
    
    .wages-fees-page .wages-table {
        min-width: 500px;
        font-size: 0.8em;
    }
    
    .wages-fees-page .wages-table th,
    .wages-fees-page .wages-table td {
        padding: 8px 6px;
        font-size: 0.85em;
    }
    
    .wages-fees-page .wages-table th:nth-child(4),
    .wages-fees-page .wages-table td:nth-child(4) {
        display: none; /* Hide payment method column on very small screens */
    }
    
    .wages-fees-page .wages-table th:nth-child(5),
    .wages-fees-page .wages-table td:nth-child(5) {
        display: none; /* Hide description column on very small screens */
    }
    
    .wages-fees-page .pagination {
        margin-top: 15px;
        gap: 3px;
    }
    
    .wages-fees-page .page-link {
        padding: 8px 12px;
        font-size: 0.85em;
        min-height: 40px;
    }
    
    .wages-fees-page .pagination-info {
        font-size: 0.85em;
        margin: 12px 0;
    }
    
    .wages-fees-page .spinner-container {
        height: 120px;
    }
    
    .wages-fees-page .alert-danger {
        font-size: 0.85em;
        padding: 12px;
        margin: 10px 0;
    }
    
    /* Enhanced small screen interactions */
    
    .wages-fees-page .btn-primary {
        background: linear-gradient(135deg, var(--primary-color) 0%, #002244 100%);
    }
    
    .wages-fees-page .btn-outline-primary {
        border-width: 2px;
        font-weight: 500;
    }
    
    /* Touch-friendly table scrolling indicator */
    .wages-fees-page .table-container::after {
        content: '← Swipe to see more →';
        display: block;
        text-align: center;
        font-size: 0.75em;
        color: var(--text-secondary);
        margin-top: 8px;
        opacity: 0.7;
    }
}

/* === RTL Support === */
[dir="rtl"] .wages-fees-page .pagination-info {
    text-align: center;
}


/*******************************************************************************
 * SETTINGS PAGE STYLES (settings.php)
 * Styles for the settings page including tabs, forms, profile settings,
 * statistics cards, and mobile responsive design
 *******************************************************************************/

/* === Desktop Styles === */
.settings-page .content {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
}

.settings-page .content .container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 1200px;
}

.settings-page .dashboard-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 15px;
    border: 1px solid rgba(47, 130, 106, 0.1);
    transition: all 0.3s ease;
    max-width: 1200px;
    margin: 0 auto;
    margin-top: 150px;
    width: 100%;
}

.settings-page .dashboard-card:hover {
    transform: translateY(-5px);
}

.settings-page .card-body {
    padding: 30px;
}

.settings-page .settings-tabs {
    margin-bottom: 30px;
}

.settings-page .nav-tabs {
    border-bottom: 2px solid #e9ecef;
    margin-bottom: 20px;
}

.settings-page .nav-tabs .nav-link {
    border: none;
    color: #666;
    font-weight: 500;
    padding: 12px 20px;
    border-radius: 8px 8px 0 0;
    transition: all 0.3s ease;
}

.settings-page .nav-tabs .nav-link:hover {
    color: var(--primary-color);
    background: rgba(var(--primary-color-shadow), 0.1);
}

.settings-page .nav-tabs .nav-link.active {
    background: var(--primary-color);
    color: white;
    border: none;
}

.settings-page .form-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 20px;
    border: 1px solid rgba(var(--primary-color-shadow), 0.1);
}

.settings-page .btn-save {
    background: var(--primary-color);
    border: none;
    border-radius: 8px;
    padding: 10px 25px;
    color: white;
    font-weight: 500;
    transition: all 0.3s ease;
}

.settings-page .btn-save:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
}

.settings-page .profile-img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-color);
}

.settings-page .upload-btn {
    background: var(--primary-color);
    border: none;
    border-radius: 8px;
    padding: 8px 16px;
    color: white;
    font-size: 14px;
    transition: all 0.3s ease;
}

.settings-page .upload-btn:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
}

.settings-page .language-option {
    padding: 15px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 15px;
}

.settings-page .language-option:hover {
    border-color: var(--primary-color);
    background: rgba(var(--primary-color-shadow), 0.05);
}

.settings-page .language-option.selected {
    border-color: var(--primary-color);
    background: rgba(var(--primary-color-shadow), 0.1);
}

.settings-page .logout-section {
    background: linear-gradient(135deg, #fff5f5 0%, #ffebeb 100%);
    border-radius: 15px;
    padding: 25px;
    border: 1px solid rgba(var(--primary-color-shadow), 0.1);
}

.settings-page .stats-container {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.settings-page .stat-card {
    flex: 1;
    min-width: 200px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    padding: 25px;
    border-radius: 15px;
    border: 1px solid rgba(47, 130, 106, 0.1);
    transition: all 0.3s ease;
    text-align: center;
}

.settings-page .stat-card:hover {
    transform: translateY(-3px);
}

.settings-page .stat-number {
    font-size: 2em;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.settings-page .stat-label {
    font-size: 1em;
    color: #666;
    margin-bottom: 5px;
}

.settings-page .stat-value {
    font-size: 1.2em;
    font-weight: 500;
    color: #333;
}

.settings-page .tab-list {
    list-style: none;
    padding: 0;
}

.settings-page .tab-list li {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.settings-page .tab-list li:last-child {
    border-bottom: none;
}

.settings-page .tab-content {
    padding: 20px 0;
}

.settings-page #password-change {
    background: linear-gradient(135deg, var(--text-content) 0%, var(--text-content) 100%);
    border-radius: 10px;
    padding: 20px;
}

.settings-page .toggle-sidebar {
    background: rgba(255,255,255,0.2);
    border: none;
    color: var(--text-light);
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
    position: fixed;
    top: 65px;
    left: 10px;
    z-index: 999;
    margin: 8px;
    font-size: x-large;
    margin-top: 30px;
}

.settings-page .spinner-container {
    display: none;
    justify-content: center;
    align-items: center;
    height: 200px;
}

.settings-page .password-requirements {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    margin-top: 10px;
    font-size: 14px;
    color: #666;
}

/* === Mobile Responsive Styles === */
@media (max-width: 768px) {
    .settings-page .content {
        padding: 15px;
        min-height: auto;
    }
    
    .settings-page .content .container {
        max-width: 100%;
        padding: 0;
    }
    
    .settings-page .dashboard-card {
        margin-top: 20px;
        border-radius: 12px;
        border: 1px solid rgba(47, 130, 106, 0.15);
    }
    
    .settings-page .card-body {
        padding: 25px;
    }
    
    .settings-page .stats-container {
        flex-direction: column;
        gap: 15px;
        margin-bottom: 25px;
    }
    
    .settings-page .stat-card {
        min-width: auto;
        padding: 20px;
        border-radius: 12px;
        transition: all 0.3s ease;
    }
    
    .settings-page .stat-number {
        font-size: 1.6em;
        margin-bottom: 8px;
        font-weight: 700;
    }
    
    .settings-page .stat-label {
        font-size: 0.9em;
        color: #666;
        font-weight: 500;
    }
    
    .settings-page .stat-value {
        font-size: 1.1em;
        font-weight: 600;
    }
    
    .settings-page .nav-tabs {
        flex-wrap: wrap;
        margin-bottom: 20px;
        border-bottom: 2px solid #e9ecef;
        gap: 5px;
    }
    
    .settings-page .nav-tabs .nav-link {
        padding: 12px 16px;
        font-size: 14px;
        margin-bottom: 5px;
        border-radius: 8px;
        font-weight: 500;
        transition: all 0.3s ease;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
        touch-action: manipulation;
    }
    
    .settings-page .nav-tabs .nav-link:active {
        transform: scale(0.98);
    }
    
    .settings-page .form-section {
        padding: 25px;
        border-radius: 12px;
        margin-bottom: 20px;
        border: 1px solid rgba(47, 130, 106, 0.1);
    }
    
    .settings-page .form-section h4 {
        font-size: 1.4em;
        margin-bottom: 20px;
        color: #333;
        font-weight: 600;
    }
    
    .settings-page .table {
        font-size: 14px;
        border-radius: 8px;
        overflow: hidden;
    }
    
    .settings-page .table th,
    .settings-page .table td {
        padding: 12px 10px;
        border-bottom: 1px solid #f0f0f0;
    }
    
    .settings-page .table th {
        background: #f8f9fa;
        font-weight: 600;
        color: #555;
    }
    
    .settings-page .btn {
        font-size: 14px;
        padding: 10px 18px;
        min-height: 44px;
        touch-action: manipulation;
        border-radius: 8px;
        font-weight: 500;
        transition: all 0.3s ease;
    }
    
    .settings-page .btn:active {
        transform: scale(0.98);
    }
    
    .settings-page .form-control,
    .settings-page .form-select {
        font-size: 16px; /* Prevents zoom on iOS */
        padding: 12px 14px;
        min-height: 44px;
        border-radius: 8px;
        border: 1px solid #ddd;
        transition: all 0.3s ease;
        touch-action: manipulation;
    }
    
    .settings-page .form-control:focus,
    .settings-page .form-select:focus {
        border-color: var(--primary-color);
        outline: none;
    }
    
    .settings-page .input-group .btn {
        min-height: 44px;
        border-radius: 0 8px 8px 0;
    }
    
    .settings-page .logout-section {
        padding: 25px;
        border-radius: 12px;
    }
    
    .settings-page .logout-section h4 {
        font-size: 1.4em;
        color: #d63384;
        font-weight: 600;
    }
    
    .settings-page #password-change {
        padding: 20px;
        border-radius: 10px;
    }
    
    .settings-page .profile-img {
        width: 100px;
        height: 100px;
        border: 3px solid var(--primary-color);
    }
    
    .settings-page .upload-btn {
        border-radius: 8px;
        font-weight: 500;
        transition: all 0.3s ease;
        min-height: 40px;
    }
    
    .settings-page .upload-btn:active {
        transform: scale(0.98);
    }
    
    .settings-page .language-option {
        padding: 15px;
        border-radius: 10px;
        margin-bottom: 10px;
        gap: 12px;
        border: 2px solid #e9ecef;
        transition: all 0.3s ease;
        touch-action: manipulation;
    }
    
    .settings-page .language-option:active {
        transform: scale(0.98);
    }
    
    .settings-page .password-requirements {
        border-radius: 10px;
        padding: 18px;
        background: #f8f9fa;
        border: 1px solid #e9ecef;
    }
}

@media (max-width: 576px) {
    .settings-page .content {
        padding: 10px;
    }
    
    .settings-page .dashboard-card {
        margin-top: 10px;
        border-radius: 10px;
    }
    
    .settings-page .card-body {
        padding: 20px;
    }
    
    .settings-page .stats-container {
        gap: 12px;
        margin-bottom: 20px;
    }
    
    .settings-page .stat-card {
        padding: 18px;
        border-radius: 10px;
    }
    
    .settings-page .stat-number {
        font-size: 1.4em;
        font-weight: 700;
    }
    
    .settings-page .stat-label {
        font-size: 0.85em;
        font-weight: 500;
    }
    
    .settings-page .stat-value {
        font-size: 1em;
        font-weight: 600;
    }
    
    .settings-page .nav-tabs .nav-link {
        padding: 10px 14px;
        font-size: 13px;
        flex: 1;
        text-align: center;
        border-radius: 6px;
        font-weight: 500;
        min-height: 44px;
    }
    
    .settings-page .form-section {
        padding: 20px;
        border-radius: 10px;
    }
    
    .settings-page .form-section h4 {
        font-size: 1.25em;
        margin-bottom: 15px;
        font-weight: 600;
    }
    
    .settings-page .table {
        font-size: 13px;
        border-radius: 6px;
    }
    
    .settings-page .table th,
    .settings-page .table td {
        padding: 10px 8px;
    }
    
    .settings-page .btn {
        font-size: 13px;
        padding: 8px 14px;
        border-radius: 6px;
        font-weight: 500;
    }
    
    .settings-page .btn-sm {
        font-size: 12px;
        padding: 6px 10px;
        border-radius: 4px;
    }
    
    .settings-page .form-control,
    .settings-page .form-select {
        font-size: 16px; /* Prevents zoom on iOS */
        padding: 10px 12px;
        border-radius: 6px;
    }
    
    .settings-page .d-flex.gap-2 {
        flex-direction: column;
        gap: 12px !important;
    }
    
    .settings-page .d-flex.gap-2 .btn {
        width: 100%;
        min-height: 44px;
    }
    
    .settings-page .logout-section {
        padding: 20px;
        border-radius: 10px;
    }
    
    .settings-page .logout-section h4 {
        font-size: 1.25em;
        font-weight: 600;
    }
    
    .settings-page #password-change {
        padding: 15px;
        border-radius: 8px;
    }
    
    .settings-page .toggle-sidebar {
        top: 60px;
        font-size: large;
        padding: 6px 10px;
        border-radius: 6px;
    }
    
    .settings-page .profile-img {
        width: 80px;
        height: 80px;
        border: 2px solid var(--primary-color);
    }
    
    .settings-page .upload-btn {
        font-size: 13px;
        padding: 8px 12px;
        border-radius: 6px;
        min-height: 40px;
    }
    
    .settings-page .language-option {
        padding: 12px;
        border-radius: 8px;
        margin-bottom: 8px;
        gap: 10px;
        flex-direction: column;
        text-align: center;
        border: 2px solid #e9ecef;
    }
    
    .settings-page .password-requirements {
        padding: 15px;
        border-radius: 8px;
        font-size: 13px;
    }
    
    /* Enhanced small screen interactions */
    .settings-page .btn:active,
    .settings-page .nav-link:active,
    .settings-page .language-option:active {
        transform: scale(0.97);
    }
    
    /* Improved form spacing on small screens */
    .settings-page .form-group {
        margin-bottom: 20px;
    }
    
    .settings-page .form-label {
        font-size: 14px;
        font-weight: 500;
        margin-bottom: 8px;
        color: #555;
    }
}

/* === RTL Support === */
[dir="rtl"] .settings-page .toggle-sidebar {
    left: auto;
    right: 10px;
}

[dir="rtl"] .settings-page .form-section {
    text-align: right;
}




/*******************************************************************************
 * SUPPORT PAGE STYLES (support.php)
 * Styles for the support page including contact information, contact form,
 * statistics cards, and mobile responsive design
 *******************************************************************************/

/* === Desktop Styles === */
.support-page .dashboard-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 15px;
    border: 1px solid rgba(47, 130, 106, 0.1);
    transition: all 0.3s ease;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.support-page .dashboard-card:hover {
    transform: translateY(-5px);
}

.support-page .card-body {
    padding: 30px;
}

.support-page .stats-container {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.support-page .stat-card {
    flex: 1;
    min-width: 200px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    padding: 25px;
    border-radius: 15px;
    border: 1px solid rgba(47, 130, 106, 0.1);
    transition: all 0.3s ease;
    text-align: center;
}

.support-page .stat-card:hover {
    transform: translateY(-3px);
}

.support-page .stat-number {
    font-size: 2.5em;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.support-page .stat-label {
    font-size: 1.1em;
    color: #666;
    font-weight: 500;
}

.support-page .contact-info {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 20px;
    border: 1px solid rgba(var(--primary-color-shadow), 0.1);
    height: 100%;
    min-height: 400px;
}

.support-page .contact-info table tbody tr {
    padding: 18px 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    line-height: 1.6;
}

.support-page .contact-info table tbody tr:last-child {
    border-bottom: none;
}

.support-page .contact-info table tbody tr th,
.support-page .contact-info table tbody tr td {
    padding: 18px 12px;
    vertical-align: middle;
    line-height: 1.8;
}

.support-page .contact-form {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 15px;
    padding: 25px;
    border: 1px solid rgba(var(--primary-color-shadow), 0.1);
    height: 100%;
    min-height: 400px;
}

.support-page .btn-primary {
    background: var(--primary-color);
    border: none;
    border-radius: 8px;
    padding: 10px 25px;
    color: white;
    font-weight: 500;
    transition: all 0.3s ease;
}

.support-page .btn-primary:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
}

.support-page .form-control:focus {
    border-color: #2f826a;
}

.support-page .table-bordered {
    border-radius: 10px;
    overflow: hidden;
}

.support-page .table-bordered th {
    background: var(--primary-color);
    color: white;
    border: none;
    font-weight: 500;
}

/* === Mobile Responsive Styles === */
@media (max-width: 768px) {
    .support-page .container {
        padding: 0 15px;
        margin: 0 auto;
    }
    
    .support-page .dashboard-card {
        margin: 15px 0;
        border-radius: 12px;
        border: 1px solid rgba(47, 130, 106, 0.15);
    }
    
    .support-page .card-body {
        padding: 25px 20px;
    }
    
    .support-page .stats-container {
        flex-direction: column;
        gap: 15px;
        margin-bottom: 30px;
    }
    
    .support-page .stat-card {
        min-width: 100%;
        margin-bottom: 0;
        padding: 25px 20px;
        border-radius: 12px;
        transition: all 0.3s ease;
    }
    
    .support-page .stat-number {
        font-size: 2.2em;
        font-weight: 700;
        margin-bottom: 8px;
    }
    
    .support-page .stat-label {
        font-size: 1.05em;
        font-weight: 500;
        color: #666;
    }
    
    .support-page .row {
        margin: 0 -10px;
    }
    
    .support-page .col-md-6 {
        padding: 0 10px;
        margin-bottom: 25px;
    }
    
    .support-page .contact-info,
    .support-page .contact-form {
        padding: 25px 20px;
        border-radius: 12px;
        min-height: auto;
        border: 1px solid rgba(47, 130, 106, 0.1);
    }
    
    .support-page .contact-info h5,
    .support-page .contact-form h5 {
        font-size: 1.3em;
        margin-bottom: 20px;
        color: #333;
        font-weight: 600;
    }
    
    .support-page .table {
        font-size: 0.95em;
        border-radius: 8px;
        overflow: hidden;
    }
    
    .support-page .contact-info table tbody tr th,
    .support-page .contact-info table tbody tr td {
        padding: 12px 10px;
        font-size: 0.9em;
        border-bottom: 1px solid #f0f0f0;
    }
    
    .support-page .contact-info table tbody tr th {
        background: #f8f9fa;
        font-weight: 600;
        color: #555;
    }
    
    .support-page .form-control {
        font-size: 16px; /* Prevents zoom on iOS */
        padding: 14px 16px;
        min-height: 44px;
        touch-action: manipulation;
        border-radius: 8px;
        border: 1px solid #ddd;
        transition: all 0.3s ease;
    }
    
    .support-page .form-control:focus {
        border-color: var(--primary-color);
        outline: none;
    }
    
    .support-page .btn-primary {
        width: 100%;
        padding: 14px 22px;
        font-size: 1em;
        margin-top: 15px;
        min-height: 44px;
        touch-action: manipulation;
        border-radius: 8px;
        font-weight: 500;
        transition: all 0.3s ease;
    }
    
    .support-page .btn-primary:active {
        transform: scale(0.98);
    }
    
    .support-page .mb-3 {
        margin-bottom: 1.2rem !important;
    }
    
    .support-page .form-label {
        font-size: 1em;
        font-weight: 600;
        margin-bottom: 8px;
        color: #555;
    }
    
    .support-page textarea.form-control {
        min-height: 130px;
        resize: vertical;
        border-radius: 8px;
    }
}

@media (max-width: 576px) {
    .support-page .container {
        padding: 0 12px;
        margin: 0 auto;
    }
    
    .support-page .dashboard-card {
        margin: 10px 0;
        border-radius: 10px;
    }
    
    .support-page .card-body {
        padding: 20px 15px;
    }
    
    .support-page .stats-container {
        gap: 12px;
        margin-bottom: 25px;
    }
    
    .support-page .stat-card {
        padding: 20px 15px;
        border-radius: 10px;
    }
    
    .support-page .stat-number {
        font-size: 1.9em;
        font-weight: 700;
        margin-bottom: 6px;
    }
    
    .support-page .stat-label {
        font-size: 0.95em;
        font-weight: 500;
    }
    
    .support-page .row {
        margin: 0 -8px;
    }
    
    .support-page .col-md-6 {
        padding: 0 8px;
        margin-bottom: 20px;
    }
    
    .support-page .contact-info,
    .support-page .contact-form {
        padding: 20px 15px;
        border-radius: 10px;
    }
    
    .support-page .contact-info h5,
    .support-page .contact-form h5 {
        font-size: 1.2em;
        margin-bottom: 15px;
        font-weight: 600;
    }
    
    .support-page .table {
        font-size: 0.85em;
        border-radius: 6px;
    }
    
    .support-page .contact-info table tbody tr th,
    .support-page .contact-info table tbody tr td {
        padding: 10px 8px;
        font-size: 0.8em;
    }
    
    .support-page .contact-info table tbody tr th {
        width: 35%;
        background: #f8f9fa;
        font-weight: 600;
    }
    
    .support-page .form-control {
        font-size: 16px; /* Prevents zoom on iOS */
        padding: 12px 14px;
        border-radius: 6px;
        min-height: 44px;
    }
    
    .support-page .btn-primary {
        padding: 12px 18px;
        font-size: 0.95em;
        border-radius: 6px;
        font-weight: 500;
        margin-top: 12px;
    }
    
    .support-page .form-label {
        font-size: 0.95em;
        font-weight: 600;
        margin-bottom: 6px;
    }
    
    .support-page textarea.form-control {
        min-height: 110px;
        border-radius: 6px;
    }
    
    .support-page .mb-3 {
        margin-bottom: 1rem !important;
    }
    
    /* Enhanced small screen interactions */
    .support-page .btn-primary:active,
    .support-page .stat-card:active {
        transform: scale(0.97);
    }
    
    /* Improved form spacing on small screens */
    .support-page .form-group {
        margin-bottom: 18px;
    }
    
    /* Better touch targets for table rows */
    .support-page .contact-info table tbody tr {
        min-height: 44px;
    }
}

/* === RTL Support === */
[dir="rtl"] .support-page .contact-info {
    text-align: right;
}

[dir="rtl"] .support-page .contact-form {
    text-align: right;
}

/* Tempus Dominus Date/Time Picker Custom Styling */
.tempus-dominus-widget {
    background: var(--card-bg) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 12px !important;
    backdrop-filter: blur(10px) !important;
    font-family: inherit !important;
}

.tempus-dominus-widget .datepicker-header {
    background: var(--primary-color) !important;
    color: white !important;
    border-radius: 12px 12px 0 0 !important;
    padding: 12px !important;
}

.tempus-dominus-widget .datepicker-days .day {
    border-radius: 6px !important;
    transition: all 0.2s ease !important;
}

.tempus-dominus-widget .datepicker-days .day:hover {
    background: var(--primary-light) !important;
    color: white !important;
}

.tempus-dominus-widget .datepicker-days .active {
    background: var(--primary-color) !important;
    color: white !important;
    border-radius: 6px !important;
}

.tempus-dominus-widget .timepicker-picker .btn {
    background: var(--primary-color) !important;
    border: none !important;
    border-radius: 6px !important;
    transition: all 0.2s ease !important;
}

.tempus-dominus-widget .timepicker-picker .btn:hover {
    background: var(--primary-dark) !important;
    transform: translateY(-1px) !important;
}

.tempus-dominus-widget .btn-primary {
    background: var(--primary-color) !important;
    border: none !important;
    border-radius: 6px !important;
    padding: 8px 16px !important;
    font-weight: 500 !important;
    transition: all 0.2s ease !important;
}

.tempus-dominus-widget .btn-secondary {
    background: var(--secondary-color) !important;
    border: none !important;
    border-radius: 6px !important;
    padding: 8px 16px !important;
    font-weight: 500 !important;
    transition: all 0.2s ease !important;
}

.tempus-dominus-widget .btn:hover {
    transform: translateY(-1px) !important;
}

.tempus-dominus-widget .picker-switch {
    background: var(--component-bg) !important;
    border-radius: 6px !important;
    margin: 4px !important;
}

.tempus-dominus-widget .picker-switch:hover {
    background: var(--primary-light) !important;
    color: white !important;
}

.tempus-dominus-widget .table-condensed th {
    color: var(--text-color) !important;
    font-weight: 600 !important;
    padding: 8px !important;
}

.tempus-dominus-widget .table-condensed td {
    padding: 4px !important;
}

.tempus-dominus-widget .separator {
    border-top: 1px solid var(--border-color) !important;
    margin: 8px 0 !important;
}

/* Dark mode support for Tempus Dominus */
@media (prefers-color-scheme: dark) {
    .tempus-dominus-widget {
        background: var(--card-bg-dark) !important;
        color: var(--text-color-dark) !important;
    }
    
    .tempus-dominus-widget .table-condensed th {
        color: var(--text-color-dark) !important;
    }
    
    .tempus-dominus-widget .datepicker-days .day {
        color: var(--text-color-dark) !important;
    }
    
    .tempus-dominus-widget .datepicker-days .day:hover {
        background: var(--primary-light) !important;
        color: white !important;
    }
    
    .tempus-dominus-widget .picker-switch {
        color: var(--text-color-dark) !important;
    }
}

/* RTL support for Tempus Dominus */
[dir="rtl"] .tempus-dominus-widget {
    direction: rtl !important;
    text-align: right !important;
}

[dir="rtl"] .tempus-dominus-widget .datepicker-days .day {
    text-align: center !important;
}

[dir="rtl"] .tempus-dominus-widget .timepicker-picker .btn {
    margin: 0 2px !important;
}

/* RTL button icon and text order */
[dir="rtl"] .btn i.fas,
[dir="rtl"] .btn i.far,
[dir="rtl"] .btn i.fab,
[dir="rtl"] .btn i.bi {
    order: 2;
    margin-left: 0.5rem;
    margin-right: 0;
}

[dir="rtl"] .btn .me-1,
[dir="rtl"] .btn .me-2,
[dir="rtl"] .btn .me-3 {
    margin-right: 0;
    margin-left: 0.5rem;
}

/* Status badge spacing in RTL */
[dir="rtl"] .badge-status {
    margin-left: 0.5rem;
    margin-right: 0;
}

/* ========================================
   PRINT APPROVAL STYLES
   ======================================== */

/* Print-specific styles for approval documents */
@media print {
    .no-print { display: none !important; }
    body { margin: 0; padding: 20px; }
    .approval-header { border-bottom: 2px solid #000; margin-bottom: 30px; }
    .qr-code { page-break-inside: avoid; }
}

.approval-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 30px;
    background: white;
}

.approval-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 3px solid #007bff;
}

.approval-number {
    font-size: 24px;
    font-weight: bold;
    color: #28a745;
    margin: 20px 0;
}

.info-section {
    margin-bottom: 30px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.info-label {
    font-weight: bold;
    color: #333;
    min-width: 200px;
}

.info-value {
    color: #666;
    flex: 1;
}

/* RTL support for info values */
[dir="rtl"] .info-value {
    text-align: left;
}

[dir="ltr"] .info-value {
    text-align: right;
}

.qr-section {
    text-align: center;
    margin-top: 50px;
    padding-top: 30px;
    border-top: 2px solid #ddd;
}

.qr-code img {
    border: 1px solid #ddd;
    padding: 10px;
    background: white;
}

/* Removed conflicting .print-btn styles to maintain Bootstrap button consistency */

/* === Mobile Navbar Fixes === */
@media (max-width: 767px) {
    .navbar {
        padding: 8px 15px;
        height: auto;
        min-height: 65px;
        flex-wrap: wrap;
    }
    
    .navbar-logo {
        height: 35px;
        margin: 0;
        order: 1;
    }
    
    .navbar-logo img {
        width: 70px;
        height: auto;
    }
    
    .navbar-toggler {
        order: 2;
        margin-left: auto;
        padding: 4px 8px;
        font-size: 0.9em;
        border: 1px solid #ddd;
    }
    
    .navbar-collapse {
        order: 3;
        width: 100%;
        margin-top: 10px;
    }
    
    .navbar-nav {
        gap: 5px;
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        padding: 10px 0;
    }
    
    .navbar-nav .nav-link {
        padding: 8px 12px;
        font-size: 0.9em;
        width: 100%;
        text-align: left;
        border-radius: 4px;
        transition: background-color 0.2s ease;
    }
    
    .navbar-nav .nav-link:hover {
        background-color: rgba(47, 130, 106, 0.1);
    }
    
    .navbar-nav.ms-auto {
        margin-top: 10px;
        border-top: 1px solid #eee;
        padding-top: 15px;
    }
}

@media (max-width: 575px) {
    .navbar {
        padding: 6px 10px;
        min-height: 60px;
    }
    
    .navbar-logo img {
        width: 60px;
    }
    
    .navbar-nav .nav-link {
        font-size: 0.85em;
        padding: 6px 10px;
    }
    
    .navbar-toggler {
        padding: 3px 6px;
        font-size: 0.8em;
    }
}

@media (max-width: 400px) {
    .navbar {
        padding: 5px 8px;
        min-height: 55px;
    }
    
    .navbar-logo img {
        width: 55px;
    }
    
    .navbar-nav .nav-link {
        font-size: 0.8em;
        padding: 5px 8px;
    }
}

/* Landscape orientation for mobile devices */
@media (max-height: 500px) and (orientation: landscape) {
    .navbar {
        height: auto;
        min-height: 50px;
        padding: 4px 10px;
    }
    
    .navbar-logo {
        height: 30px;
    }
    
    .navbar-logo img {
        width: 50px;
    }
    
    .navbar-collapse {
        margin-top: 5px;
    }
    
    .navbar-nav {
        padding: 5px 0;
    }
    
    .navbar-nav .nav-link {
        padding: 4px 8px;
        font-size: 0.8em;
    }
}

