/* Font Face Definition */
@font-face {
    font-family: 'Jameel Noori Nastaleeq';
    src: url('../uploads/JameelNooriNastaleeqRegular.ttf') format('truetype');
}

/* CSS Variables */
:root {
    --primary-color: #000000;
    --secondary-color: #f0f4f8;
    --accent-color: #006329;
    --grey-color: rgb(145, 145, 145);
    --text-color: #2d3436;
    --card-bg: #ffffff;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Base Styles */
body {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, sans-serif;
/*    background-color: var(--secondary-color); */
    color: var(--text-color);
    margin: 0;
    padding: 0;
    font-size: 16px;
    line-height: 1.6;
    direction: ltr;
    text-align: left;
}

html[lang="ur"] body {
    font-family: 'Jameel Noori Nastaleeq', sans-serif;
    direction: rtl;
    text-align: right;
}

.content {
    padding: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

/* Header Styles */
.header {
    background: #ffffff;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border-radius: 0px;
    margin-bottom: 1.5rem;
    position: relative;
}

/* Hamburger Menu */
.hamburger-menu {
    display: flex;
  order: -1;
    align-items: center;
}

.hamburger-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #000;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.hamburger-btn:hover {
    background-color: #f0f0f0;
}

html[lang="ur"] .hamburger-menu,
html[lang="en"] .hamburger-menu {
    order: -1;
    margin-right: auto;
    margin-left: 0;
}

/* Header Title */
.header-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #000;
    margin: 0;
    font-family: 'Jameel Noori Nastaleeq', sans-serif;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

/* RTL Language Support */
html[lang="ur"] .header-title {
    font-family: 'Jameel Noori Nastaleeq', sans-serif;
}


/* Custom Logout Modal Styles */
.logout-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    transition: opacity 0.3s ease;
}

.logout-modal-overlay.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.logout-modal {
    background: white;
    border-radius: 20px;
    padding: 30px 25px;
    margin: 20px;
    max-width: 350px;
    width: 90%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    text-align: center;
    position: relative;
}

.logout-modal-icons {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
    position: relative;
}

.speech-bubble {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: white;
    border: 3px solid #666;
    position: relative;
    z-index: 2;
}

.speech-bubble.green {
    background-color: #4CAF50;
    margin-right: -10px;
}

.speech-bubble.red {
    background-color: #f44336;
    margin-left: -10px;
    z-index: 1;
}

.logout-modal-content {
    margin-bottom: 25px;
}

.logout-modal-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: #333;
    margin: 0 0 15px 0;
    font-family: 'Jameel Noori Nastaleeq', sans-serif;
}

.logout-modal-message {
    font-size: 1rem;
    color: #666;
    line-height: 1.5;
    margin: 0;
    font-family: 'Jameel Noori Nastaleeq', sans-serif;
}

.logout-modal-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.logout-btn-cancel,
.logout-btn-confirm {
    padding: 12px 20px;
    border: none;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;
    font-family: 'Jameel Noori Nastaleeq', sans-serif;
}

.logout-btn-cancel {
    background-color: #f5f5f5;
    color: #666;
}

.logout-btn-cancel:hover {
    background-color: #e0e0e0;
}

.logout-btn-confirm {
    background-color: #f44336;
    color: white;
}

.logout-btn-confirm:hover {
    background-color: #d32f2f;
}

/* Mobile Responsive for Logout Modal */
@media (max-width: 480px) {
    .logout-modal {
        padding: 25px 20px;
        margin: 15px;
        max-width: 320px;
    }
    
    .logout-modal-title {
        font-size: 1.3rem;
    }
    
    .logout-modal-message {
        font-size: 0.9rem;
    }
    
    .logout-modal-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .logout-btn-cancel,
    .logout-btn-confirm {
        width: 100%;
        min-width: auto;
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .header {
        padding: 1rem;
    }
    
    .header-title {
        font-size: 1.6rem;
        position: static;
        transform: none;
        text-align: center;
        flex: 1;
        margin: 0 1rem;
    }
    
    html[lang="ur"] .header-title {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .header-title {
        font-size: 1.6rem;
    }
}

/* Sidebar Styles */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
    transition: opacity 0.3s ease;
}

.sidebar-overlay.show {
    display: block;
}

.sidebar {
    position: fixed;
    top: 0;
    left: -300px;
    width: 300px;
    height: 100%;
    background-color: #ffffff;
    z-index: 1000;
    transition: left 0.3s ease;
    overflow-y: auto;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
}

.sidebar.open {
    left: 0;
}

/* User Profile Section */
.sidebar-user-section {
    padding: 2rem 1.5rem;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-profile-icon {
    flex-shrink: 0;
}

.user-profile-icon .profile-photo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #e0e0e0;
}

.user-profile-icon .default-icon {
    font-size: 60px;
    color: #ccc;
}

.user-details {
    flex: 1;
}

.user-name {
    font-size: 1.4rem;
    font-weight: 600;
    color: #000;
    margin-bottom: 0.25rem;
    font-family: 'Jameel Noori Nastaleeq', sans-serif;
}

.user-location,
.user-phone {
    font-size: 1rem;
    color: #666;
    margin-bottom: 0.1rem;
    font-family: 'Jameel Noori Nastaleeq', sans-serif;
}

/* Language Selection */
.language-selection {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #f0f0f0;
}

.language-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem;
    background-color: #f8f9fa;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.language-item:hover {
    background-color: #e9ecef;
}

.language-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.language-text {
    font-size: 1rem;
    color: #000;
    font-family: 'Jameel Noori Nastaleeq', sans-serif;
}

.flag-icon img {
    border-radius: 2px;
}

.language-dropdown {
    display: none;
    margin-top: 0.5rem;
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
}

.language-dropdown.show {
    display: block;
}

.language-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    text-decoration: none;
    color: #000;
    transition: background-color 0.3s ease;
    font-family: 'Jameel Noori Nastaleeq', sans-serif;
}

.language-option:hover {
    background-color: #f8f9fa;
}

/* Close Account Section */
.close-account-section {
    padding: 1rem 1.5rem;
    margin-top: auto;
}

.close-account-btn {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 4rem;
font-size: 17px;
    font-weight: 700;
    padding: 0.75rem;
    background-color: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    color: #666;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Jameel Noori Nastaleeq', sans-serif;
}

.close-account-btn:hover {
    background-color: #e9ecef;
    color: #000;
}

.close-account-btn i {
    font-size: 1rem;
}

/* RTL Support for Sidebar */
html[lang="ur"] .sidebar {
left: -300px;
    right: auto;
    transition: left 0.3s ease;
}

html[lang="ur"] .sidebar.open {
    right: auto;
    left: 0;
}

@media (max-width: 576px) {
    .sidebar {
        width: 300px;
        left: -300px;
    }
    
    html[lang="ur"] .sidebar {
        left: -300px;
        right: auto;
    }
    
    .sidebar-user-section {
        padding: 1.5rem 1.2rem;
    }
    
    .user-name {
        font-size: 1.4rem;
    }
    
    .user-location,
    .user-phone {
        font-size: 1rem;
    }

    html[lang="ur"] .hamburger-menu{
        order: 1;
        }
}

/* Mobile Responsive */
@media (max-width: 480px) {
    .sidebar {
        width: 280px;
        left: -280px;
    }

html[lang="ur"] .hamburger-menu{
order: 1;
}
    
    html[lang="ur"] .sidebar {
     left: -280px;
        right: auto;
   }
    
    .sidebar-user-section {
        padding: 1.5rem 1rem;
    }
    
    .user-name {
        font-size: 1.4rem;
    }
    
    .user-location,
    .user-phone {
        font-size: 1rem;
    }
}

.language-toggle a {
    color: var(--primary-color);
    text-decoration: none;
    margin: 0 5px;
    font-size: 1rem;
}

.language-toggle a:hover {
    text-decoration: underline;
}

.header .user-profile {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.header .profile-container {
    position: relative;
    display: flex;
    align-items: center;
}

.header .profile-photo {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--accent-color);
    transition: transform 0.3s ease;
}

.header .profile-photo:hover {
    transform: scale(1.1);
}

.header .default-icon {
    font-size: 48px;
    color: var(--accent-color);
}

/* .header .dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
left: auto;
    right: 0;
    background-color: #fff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    min-width: 120px;
    z-index: 1000;
    padding: 0.5rem 0;
    animation: fadeIn 0.3s ease;
} */

.header .dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    inset-inline-end: 0; /* 👈 Logical property for both RTL and LTR */
    inset-inline-start: auto;
    background-color: #fff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    min-width: 120px;
    z-index: 1000;
    padding: 0.5rem 0;
    animation: fadeIn 0.3s ease;
}


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

.header .profile-container:hover .dropdown-menu {
    display: block;
}

.header .dropdown-menu a {
    display: block;
    padding: 0.5rem 1rem;
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.9rem;
    transition: background-color 0.2s ease;
}

.header .dropdown-menu a:hover {
    background-color: var(--secondary-color);
    color: var(--primary-color);
}

/* Card Styles */
 .card {
    background-color: var(--card-bg);
    border: none;
    border-radius: 12px;
     box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
 /*   transition: transform 0.3s ease, box-shadow 0.3s ease;
   margin-bottom: 2rem; */ 
    padding: 1.5rem; 
    min-width: 300px; 
    max-width: 100%; 
}

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

.card-header {
/*    background-color: var(--primary-color); */
    color: black;
    font-weight: 600;
    padding: 0.75rem;
    font-size: 1.1rem;
    display: flex;
    justify-content: space-between;
background-color: white;
    /* border-bottom: var(--bs-card-border-width) solid var(--bs-card-border-color); */
    align-items: center;
}

.card-body {
    flex: 1 1 auto;
    padding: 0rem 0; 
}

.card-body table {
    width: 100%;
    font-size: 0.9rem;
    margin-bottom: 0;
    border-collapse: collapse;
    text-align: center;
    background-color: transparent; /* No background for the table */
}

.card-body th,
.card-body td {
    padding: 0.75rem; /* Increased padding for readability */
    border: none; /* Remove borders for a clean look */
    vertical-align: middle;
}

.card-body th {
    background-color: transparent; /* Remove background */
    font-weight: 600;
    color: var(--primary-color);
    border-bottom: 1px solid #dfe6e9; /* Subtle divider below headers */
}

/* Crop and Summary Sections */
.crop-section {
    border: 1px dashed #dfe6e9;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    background-color: #f8f9fa;
    position: relative;
}

.summary-header {
    text-align: center;
    margin-bottom: 2rem;
}

.summary-header img {
    width: 60px;
    margin-bottom: 1rem;
}

.summary-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 5px 0;
    color: var(--primary-color);
}

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

.summary-section {
    border: 1px dashed #dfe6e9;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    background-color: var(--card-bg);
}

.summary-section h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.summary-section label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-color);
    display: block;
}

.summary-section p {
    font-size: 1.2rem;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.row p {
    margin: 0;
}

.section-divider {
    border-top: 1px solid #dfe6e9;
    margin: 1rem 0;
}

/* Form Styles */
.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-color);
    display: block;
}

.input-group {
    display: flex;
    align-items: center;
    width: 100%;
}

.input-group input.form-control,
.input-group select.form-control {
    flex: 1;
    border-radius: 8px;
    border: 1px solid #dfe6e9;
    padding: 0.75rem;
    font-size: 1rem;
    background-color: #fff;
    transition: border-color 0.3s ease;
}

.input-group input.form-control:focus,
.input-group select.form-control:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(46, 204, 113, 0.1);
    outline: none;
}

.input-group-text {
    background-color: #f8f9fa;
    border: 1px solid #dfe6e9;
    border-left: none;
    border-radius: 0 8px 8px 0;
    padding: 0.75rem;
    font-size: 1rem;
    color: #000;
    display: flex;
    align-items: center;
    white-space: nowrap;
}

.variety-section {
    border: 1px dashed #dfe6e9;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    background-color: var(--card-bg);
}

/* Button Styles */
.button-group {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-top: 1.5rem;
}

.btn-custom {
    background-color: var(--accent-color);
    color: #fff;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    width: 48%;
    text-align: center;
    font-size: 1rem;
}

.btn-custom:hover {
    background-color: #27ae60;
    transform: translateY(-2px);
}

.btn-custom-grey {
    background-color: var(--grey-color);
    color: #fff;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    width: 48%;
    text-align: center;
    font-size: 1rem;
}

.btn-success {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    border-radius: 6px;
    padding: 0.5rem 1rem;
    font-weight: 500;
    font-size: 0.9rem;
}

.btn-success:hover {
    background-color: #27ae60;
    border-color: #27ae60;
}

.btn-light-custom {
    background-color: #f8f9fa;
    border: 1px solid #dfe6e9;
    color: var(--text-color);
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    margin: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-light-custom:hover {
    background-color: #e9ecef;
}

.btn-light-custom.active {
    background-color: var(--primary-color);
    color: #fff;
}

.floating-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--accent-color);
    color: #fff;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    font-size: 1.5rem;
    text-decoration: none;
    transition: transform 0.2s ease;
}

.floating-btn:hover {
    transform: scale(1.1);
    background-color: #27ae60;
}

.whatsapp-btn {
    color: #25D366;
    font-size: 1.2rem;
    cursor: pointer;
}

.whatsapp-btn:hover {
    color: #128C7E;
}

/* Filter and Navigation */
.filter-section {
    background-color: #f8f9fa;
    padding: 1rem; 
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.filter-section label {
    font-weight: 500;
    margin-bottom: 0.3rem;
    font-size: 0.9rem;
}

.filter-section .form-control {
    border-radius: 6px;
    border: 1px solid #dfe6e9;
    padding: 0.5rem;
    font-size: 0.9rem;
}

.filter-section .form-control:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(46, 204, 113, 0.1);
}

.nav-tabs {
    border-bottom: none;
    margin-top: 1rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.nav-tabs .nav-link {
    color: var(--text-color);
    padding: 0.5rem 6rem;
margin-right: 13px;
/* margin-left: 10px; */
    border: 1px solid #dee2e6;
    border-radius: 6px;
    font-weight: 500;
    font-size: 0.95rem;
    margin-right: 0.5rem;
    transition: border-color 0.3s ease, color 0.3s ease;
}

.nav-tabs .nav-link.active {
    color: var(--accent-color);
    border-color: var(--accent-color);
    background-color: transparent;
}

.nav-tabs .nav-link:hover {
    color: var(--accent-color);
    border-color: var(--accent-color);
}

/* .nav-tabs .calendar-tab {
    font-size: 1.2rem;
    padding: 0.5rem;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    margin-right: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
} */

.nav-tabs .calendar-tab.active,
.nav-tabs .calendar-tab:hover {
    color: var(--accent-color);
    border-color: var(--accent-color);
}

.flatpickr-input {
    display: none;
}

.flatpickr-calendar {
    z-index: 1050; /* Ensure it appears above other elements */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
}

.nav-tabs .calendar-tab {
    position: relative;
}

.nav-tabs .calendar-tab .flatpickr-calendar {
    top: 100% !important; /* Position below the tab */
    left: 0 !important;
    right: auto !important;
}

/* Select2 and Inputs */
.select2-container--default .select2-selection--multiple {
    border: 1px solid #dfe6e9;
    border-radius: 6px;
    padding: 0.2rem;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice {
    background-color: var(--accent-color);
    color: #fff;
    border-radius: 4px;
    padding: 2px 6px;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
    color: #fff;
    margin-right: 4px;
}

.select2-container .select2-search--inline .select2-search__field,
input[type="text"],
textarea {
    border-radius: 4px;
    font-family: 'Jameel Noori Nastaleeq', sans-serif;
    font-size: 0.9rem;
    font-weight: 400;
    line-height: 1.5;
    margin-top: 5px;
    width: 100%;
    height: 26px;
    overflow: hidden;
    word-break: keep-all;
    resize: none;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

html[lang="ur"] .select2-container .select2-search--inline .select2-search__field,
html[lang="ur"] input[type="text"],
html[lang="ur"] textarea {
    font-family: 'Jameel Noori Nastaleeq', sans-serif;
}

/* Links and Actions */
.delete-variety,
.delete-crop {
    color: #ff4500;
    text-decoration: none;
    font-size: 0.9rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    transition: color 0.3s ease;
}

.delete-variety i,
.delete-crop i {
    margin-left: 5px;
}

.delete-variety:hover,
.delete-crop:hover {
    color: #e03e00;
    text-decoration: underline;
}

.add-variety,
.add-crop {
    color: var(--accent-color);
    text-decoration: none;
    font-size: 0.9rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    transition: color 0.3s ease;
}

.add-variety i,
.add-crop i {
    margin-right: 5px;
}

.add-variety:hover,
.add-crop:hover {
    color: #27ae60;
    text-decoration: underline;
}

a.view-prices {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

a.view-prices:hover {
    color: #155724;
    text-decoration: underline;
}

/* Scrolling Wrapper */
.scrolling-wrapper {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    gap: 10px;
    padding-bottom: 10px;
    scrollbar-width: thin;
    scrollbar-color: #dfe6e9 transparent;
}

.scrolling-wrapper::-webkit-scrollbar {
    height: 8px;
}

.scrolling-wrapper::-webkit-scrollbar-thumb {
    background-color: #dfe6e9;
    border-radius: 4px;
}

.scrolling-wrapper::-webkit-scrollbar-track {
    background: transparent;
}

/* Miscellaneous */
.error-message {
    color: #dc3545;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    text-align: center;
}

.container {
    background-color: var(--card-bg);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    margin-bottom: 1.5rem;
}

h1,
h2,
h3 {
    color: var(--primary-color);
    font-weight: 600;
}

h2 {
    font-size: 1.6rem;
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.location-market-button {
    display: inline-block;
    margin: 5px 0;
}

/* Media Queries */
@media (max-width: 768px) {
    .content {
        padding: 1rem;
    }

    .header .logo,
    .header .title {
        font-size: 1.5rem;
    }
.header .title {
    margin: -9px;
}
    .header .profile-photo {
        width: 36px;
        height: 36px;
    }

    .header .default-icon {
        font-size: 36px;
    }

   .card {
     /*   padding: 1rem; */
        min-width: 100%; /* Full width on smaller screens */
    }

    .card-body table {
        font-size: 0.85rem;
    }

    .card-body th,
    .card-body td {
        padding: 0.5rem;
font-size: 17px;   
 }


    .button-group .btn-custom,
    .button-group .btn-custom-grey {
        width: 48%;
    }

    .floating-btn {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }

    .input-group {
        flex-wrap: nowrap;
    }

    .input-group input.form-control {
        width: 70%;
    }

    .input-group-text {
        width: 30%;
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .filter-section .col-12 {
        margin-bottom: 0.75rem;
    }

    .nav-tabs .nav-link {
        font-size: 0.85rem;
width: 64px;
text-align: center;
        padding: 0.5rem 0.75rem;
    }

    .nav-tabs .calendar-tab {
        padding: 0.5rem;
    }

    .btn-success,
    .button-group .btn-custom,
    .button-group .btn-custom-grey {
        width: 100%;
    }

    .card {
        padding: 0.75rem;
    }

    .card-body table {
        font-size: 0.8rem;
    }

    .card-body th,
    .card-body td {
        padding: 0.4rem;
    }

    .nav-tabs .calendar-tab .flatpickr-calendar {
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
    }
}

/* New styles for Urdu Select2 alignment */
html[lang="ur"] .select2-selection__placeholder {
    text-align: right !important;
}

html[lang="ur"] .select2-selection__rendered {
    text-align: right !important;
}

html[lang="ur"] .select2-results__option {
    text-align: right !important;
}

html[lang="ur"] .select2-selection,
html[lang="ur"] .select2-results__option {
    font-family: 'Jameel Noori Nastaleeq', sans-serif !important;
}
