/* Common alignment for Select2 to match .form-select height and spacing */
.select2-align.form-select + .select2 .select2-selection--single {
  height: 43px;
  border: 1px solid #ced4da;
  border-radius: 4px;
}
.select2-align.form-select + .select2 .select2-selection__rendered {
  line-height: 41px;
  padding-left: 12px;
}
.select2-align.form-select + .select2 .select2-selection__arrow {
  height: 41px;
  right: 8px;
}
:root {
    --sidebar-width: 280px;
    --header-height: 70px;
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --card-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
    --card-shadow-hover: 0 8px 25px rgba(0, 0, 0, 0.15);
    --primary-blue: #4f46e5;
    --success-green: #10b981;
    --warning-yellow: #f59e0b;
    --danger-red: #ef4444;
}

body {
    /* font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; */
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
}

/* Sidebar Styles */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: var(--sidebar-width);
    background: linear-gradient(135deg, #ffffff 0%, #ffffff 100%);
    z-index: 1000;
    transition: transform 0.3s ease;
    overflow-y: auto;
}

.sidebar.collapsed {
    transform: translateX(-100%);
}

.sidebar-header {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-logo {
    color: rgb(0, 0, 0);
    font-size: 1.5rem;
    font-weight: bold;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sidebar-logo:hover {
    color: rgb(0, 0, 0);
}

.sidebar-nav {
    padding: 1rem 0;
}

.nav-item {
    margin: 0.25rem 1rem;
}

.nav-link {
    color: rgba(0, 0, 0, 0.8);
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.nav-link:hover {
    color: rgb(0, 0, 0);
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateX(4px);
}

.nav-link.active {
    color: rgb(0, 0, 0);
    background-color: #DFE8FF;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Main Content */
.main-content {
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    transition: margin-left 0.3s ease;
}

.main-content.expanded {
    margin-left: 0;
}

.main-header {
    background: white;
    padding: 1rem 2rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.toggle-btn {
    /* display: none; */
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #666;
    cursor: pointer;
}

/* Stats Cards */
.stat-card {
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
    border: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;

    display: flex;
    align-items: flex-start;
    gap: 15px;
    flex-direction: row;
    flex-wrap: nowrap;
}

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

.stat-text {
    font-weight: 600;
    font-size: 15px;
    color: #4B5563;
    line-height: 21.25px;
    vertical-align: middle;
    margin-bottom: 4px;
}

.stat-value {
    font-size: 25.5px;
    font-weight: 700;
    color: #111827;
    line-height: 34px;
    vertical-align: middle;
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    margin-bottom: 1rem;
}

.stat-number {
    font-size: 1.2rem;
    font-weight: bold;
    margin: 0;
}

.stat-label {
    color: #6c757d;
    font-size: 0.9rem;
    margin: 0;
}

.info-label {
	font-weight: bold;
}

/* Content Sections */
.content-section {
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
    margin-bottom: 2rem;
    min-height: 475px;
    margin-left: 1rem;
    margin-right: 1rem;
}

.section-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #495057;
}

.booking-item {
    padding: 1rem;
    border: 1px solid #e9ecef;
    border-radius: 0.5rem;
    margin-bottom: 0.75rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease;
    background-color: rgb(249 250 251 / var(--tw-bg-opacity, 1));
}

.booking-item:hover {
    background-color: #f8f9fa;
}

.notification-item {
    display: flex;
    align-items: start;
    gap: 1rem;
    padding: 1rem;
    border-bottom: 1px solid #e9ecef;
    transition: background-color 0.3s ease;
    background-color: rgb(249 250 251 / var(--tw-bg-opacity, 1));
    margin-bottom: 0.75rem;
    border: 0px solid #e9ecef;
    border-radius: 0.5rem;
}

.notification-item:hover {
    background-color: #f8f9fa;
}

.notification-item:last-child {
    border-bottom: none;
}

.notification-icon {
    width: 40px;
    height: 40px;
    background-color: #e3f2fd;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1976d2;
}

.notification-time {
    font-size: 0.85rem;
    color: #6c757d;
}

/* Responsive Design */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.show {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0;
    }

    .toggle-btn {
        display: block;
    }

    .main-header {
        padding: 1rem;
    }

    .container-fluid {
        padding: 1rem;
    }
}

/* Overlay for mobile */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
    display: none;
}

.overlay.show {
    display: block;
}

/* User Management Styles */
.user-management-section {
    display: block;
}

.user-management-section.active {
    display: block;
}

.management-header {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--card-shadow);
}

.management-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.management-subtitle {
    color: #6c757d;
    margin-bottom: 2rem;
}

.tab-navigation {
    display: flex;
    gap: 0;
    border-bottom: 2px solid #e9ecef;
    margin-bottom: 2rem;
}

.tab-btn {
    padding: 1rem 1.5rem;
    background: none;
    border: none;
    color: #6c757d;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
    position: relative;
}

.tab-btn.active {
    color: var(--primary-blue);
    border-bottom-color: var(--primary-blue);
}

.tab-btn:hover {
    color: var(--primary-blue);
    background-color: rgba(79, 70, 229, 0.05);
}

.controls-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    gap: 1rem;
    flex-wrap: wrap;
}

.search-controls {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex: 1;
}

.search-input {
    position: relative;
    flex: 1;
    max-width: 400px;
}

.search-input input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    border: 2px solid #e9ecef;
    border-radius: 0.75rem;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.search-input input:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.search-input i {
    position: absolute;
    margin-left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
}

.filter-select {
    padding: 0.75rem 1rem;
    border: 2px solid #e9ecef;
    border-radius: 0.75rem;
    background: white;
    color: #495057;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-select:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.action-buttons {
    display: flex;
    gap: 0.75rem;
}

.btn-custom {
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    font-weight: 500;
    font-size: 0.9rem;
    border: 2px solid;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.btn-primary-custom {
    background: var(--primary-blue);
    border-color: var(--primary-blue);
    color: white;
}

.btn-primary-custom:hover {
    background: #3730a3;
    border-color: #3730a3;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

.btn-outline-custom {
    background: #fff;
    border-color: #0F2A71;
    color: #fff;
}

.btn-outline-custom:hover {
    background: #0F2A71;
    border-color: #0F2A71;
    color: #ffffff;
}

/* User Table */
.user-table-container {
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--card-shadow);
}

.user-table {
    width: 100%;
    margin: 0;
}

.user-table thead {
    background: #f8f9fa;
}

.user-table th {
    padding: 1.25rem 1rem;
    font-weight: 600;
    color: #6B7280;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
}

.user-table td {
    padding: 1.25rem 1rem;
    border-top: 1px solid #e9ecef;
    vertical-align: middle;
}

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

.user-table tbody tr:hover {
    background-color: rgba(79, 70, 229, 0.02);
}

.user-info {
    display: flex;
    flex-direction: column;
}

.user-name {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.25rem;
}

.user-email {
    color: #6B7280;
    font-weight: 400;
    font-size: 15px;
}

.role-badge {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: capitalize;
}

.role-super-admin {
    background: rgba(79, 70, 229, 0.1);
    color: var(--primary-blue);
}

.approval-badge {
    background: #DCFCE7;
    color: #166534;
}

.pending-badge {
    background: #FEF9C3;
    color: #854D0E;
}

.rejected-badge { 
    background: #FEE2E2;
    color: #DC2626;
}

.role-manager {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success-green);
}

.role-support {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning-yellow);
}

.status-active {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success-green);
}

.status-inactive {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger-red);
}

.action-buttons-table {
    display: flex;
    gap: 0.5rem;
}

.action-btn {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.85rem;
}

.action-btn:hover {
    transform: translateY(-2px);
}

.vendor-action-btn {
    width: 80px;
}

.btn-view {
    /* background: rgba(79, 70, 229, 0.1); */
    background: transparent;
    color: #2563EB;
}

.btn-view:hover {
    background: rgba(79, 70, 229, 0.2);
}

.btn-edit {
    /* background: rgba(245, 158, 11, 0.1); */
    background: transparent;
    color: #4F46E5;
}

.btn-edit:hover {
    background: #c2c1d9;
}

.btn-success {
    /* background: rgba(245, 158, 11, 0.1); */
    background: transparent;
    color: #16A34A;
}

.vendor-action-btn.btn-success:hover {
    background: transparent;
}

.btn-delete {
    /* background: rgba(239, 68, 68, 0.1); */
    background: transparent;
    color: #DC2626;
}

.btn-delete:hover {
    background: rgba(239, 68, 68, 0.2);
}

.vendor-action-btn.btn-delete:hover {
    background: transparent;
}

.btn-maintenance-car {
    background: transparent;
    color: #f59e0b;
}

.btn-maintenance-car:hover {
    background: rgba(245, 158, 11, 0.2);
    color: #d97706;
}



/* Overlay for mobile */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
    display: none;
    backdrop-filter: blur(2px);
}

.overlay.show {
    display: block;
}

/* Custom scrollbar */
.sidebar::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
}

.sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

/* Animation classes */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-in {
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateX(-20px);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Hide dashboard content when user management is active */
.dashboard-content.hidden {
    display: none;
}

.tab-content {
    margin-top: 30px;
    display: none;
}

.tab-content.active {
    display: block;
}

.role-card {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    background-color: #fff;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    height: 100%;
}

.role-card h6 {
    font-weight: 600;
    margin-bottom: 5px;
    font-size: 17px;
    line-height: 26px;
    color: #111827;
}

.role-card small {
    color: #4B5563;
    font-size: 15px;
    line-height: 21px;
}

.role-footer {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
    font-size: 14px;
    color: #6b7280;
}

.role-actions {
    position: absolute;
    top: 15px;
    right: 15px;
    display: flex;
    gap: 8px;
}

.role-actions i {
    cursor: pointer;
}

.btn-create-role {
    float: right;
    border-radius: 8px;
}

.permission-box {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 20px;
    background-color: #fff;
    margin-bottom: 20px;
    ;
}

.permission-title {
    font-weight: 600;
    margin-bottom: 15px;
}

.form-check-label {
    color: #374151;
    font-size: 15px;
    line-height: 21.25px;
}

.form-check {
    margin-right: 30px;
    min-width: 230px;
}

.form-check-input {
    cursor: pointer;
}

h6.module-permission {
    font-weight: 600;
    font-size: 19px;
    color: #020817;
    line-height: 29.75px;
}

/****************CAR LISTING PAGE**********************/

.tab-newbtn {
    background: transparent;
    border: none;
    padding: 10px 20px;
    font-weight: 500;
    color: #374151;
}

.tab-newbtn.active {
    background-color: #0F2A71;
    color: white;
    border-radius: 6px;
}

.tab-container {
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    padding: 10px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 25px;
}

.section-title {
    font-weight: 600;
    font-size: 20px;
    margin-bottom: 20px;
}

.list-box {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #fff;
    padding: 20px;
    height: 100%;
}

.list-box h6 {
    font-weight: 600;
    margin-bottom: 15px;
}

.item-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px;
    border-bottom: 0px solid #f1f1f1;
    background: #F9FAFB;
    border-radius: 10px;
    margin-bottom: 0.75rem;
}

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

/* .icon-btns i {
    margin-left: 10px;
    cursor: pointer;
} */

.add-btn {
    width: 100%;
    margin-top: 15px;
    background-color: #3b82f6;
    color: white;
    font-weight: 500;
}

.export-btn {
    border-radius: 8px;
}

.btn-grey-custom {
    background: #9d9d9d24;
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    font-weight: 500;
    font-size: 0.9rem;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.badge-status {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
}

.badge-available {
    background-color: #d1fae5;
    color: #065f46;
}

.badge-not-available {
    background-color: #FEE2E2;
    color: #991B1B;
}

.badge-rented {
    background-color: #dbeafe;
    color: #1e40af;
}

.badge-maintenance {
    background-color: #fef3c7;
    color: #92400e;
}

#visibility-control span {
    font-size: 14px;
}

.switch-lg .form-check-input {
    width: 3rem;
    height: 1.5rem;
    border-radius: 1.5rem;
}

.switch-lg .form-check-input:checked {
    background-color: #0F2A71;
}

/****************CAR LISTING PAGE**********************/

/****************BOOKING MANAGEMENT PAGE**********************/

.summary-box {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.02);
}

.summary-text {
    color: #4b5563;
    font-size: 14px;
}

.summary-value {
    font-size: 22px;
    font-weight: 700;
    color: #111827;
}

.summary-icon {
    background-color: #e0e7ff;
    border-radius: 12px;
    padding: 10px;
    width: 50px;
    height: 50px;
    text-align: center;
}

.summary-icon i {
    color: #2563eb;
    font-size: 24px;
}

/*************** Analytics *********************/

.card-box {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: white;
    padding: 20px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}

.icon-box {
    padding: 10px;
    border-radius: 12px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
}

.card-label {
    color: #6b7280;
    font-size: 14px;
}

.card-value {
    font-size: 20px;
    font-weight: 700;
    color: #111827;
}

.card-change {
    font-size: 13px;
    color: #10b981;
}

.chart-card {
    padding: 20px;
    border-radius: 12px;
    background: white;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}

.bg-purple{
    --bs-bg-opacity: 1;
    background-color: #A855F7 !important;
}

/* Responsive Design */
@media (max-width: 1440px) {
    .form-check {
        min-width: 200px !important;
        margin-right: 25px !important;
    }
}

@media (max-width: 1200px) {
    .content-grid {
        grid-template-columns: 1fr;
    }

    .form-check {
        min-width: 200px;
    }
}

@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.show {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0;
    }

    .toggle-btn {
        display: block;
    }

    .main-header {
        padding: 1rem;
    }

    .container-fluid {
        padding: 1rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .header-title h1 {
        font-size: 1.5rem;
    }

    .stat-card-content {
        flex-direction: column;
        text-align: center;
    }

    .controls-section {
        flex-direction: column;
        align-items: stretch;
    }

    .search-controls {
        /*flex-direction: column;*/
    }

    .action-buttons {
        justify-content: stretch;
    }

    .btn-custom {
        justify-content: center;
    }

    .user-table-container {
        overflow-x: auto;
    }

    .user-table {
        min-width: 800px;
    }
}

@media (max-width: 576px) {
    .main-header {
        padding: 0.75rem;
    }

    .container-fluid {
        padding: 0.75rem;
    }

    .stat-card {
        padding: 1rem;
    }

    .content-section {
        padding: 1rem;
    }

    .management-header {
        padding: 1.5rem;
    }
}

.form-check.form-switch.m-0.switch-lg {
    padding-left: 200px;
}

.badge-status {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    text-align: center;
}

.badge-status.active {
    background-color: #D1FADF;
    color: #027A48;
}

.badge-status.draft {
    background-color: #FEF3C7;
    color: #92400E;
}

.badge-status.completed {
    border: 1px solid #4C6FFF;
    color: #4C6FFF;
    background-color: #DBEAFE;
}

/* Action buttons */
.action-buttons-table {
    display: flex;
    gap: 8px;
    align-items: center;
}

.action-btn {
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 14px;
}

.btn-edit i {
    color: #16A34A; /* Green */
}

.btn-delete i {
    color: #DC2626; /* Red */
}

.btn-edit-car-type i {
    color: #16A34A; /* Green */
}

.btn-delete-car-type i {
    color: #DC2626; /* Red */
} 

.btn-edit-car i {
    color: #16A34A; /* Green */
}

.btn-delete-car i {
    color: #DC2626; /* Red */
}

.price-btn-edit i {
    color: #16A34A; /* Green */
}

.price-btn-delete i {
    color: #DC2626; /* Red */
}

.btn-send {
    font-size: 14px;
    color: #000;
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
}

button.btn.btn-primary {
    background: #0F2A71;
    font-size: 14px;
}

button.btn.btn-secondary {
    font-size: 14px;
}

/**************** ACCOUNTS PAGE SPECIFIC STYLES ****************/

/* Revenue Cards Styling */
.revenue-card {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.revenue-label {
    font-size: 14px;
    color: #5f6368;
    margin-bottom: 8px;
}

.revenue-value {
    font-size: 28px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.revenue-change {
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.revenue-change.positive {
    color: #137333;
}

.revenue-change.negative {
    color: #d93025;
}

/* Transactions Section */
.transactions-section {
    margin-top: 32px;
}

.transactions-table-container {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.transactions-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.transactions-table thead {
    background-color: #f8f9fa;
}

.transactions-table th {
    padding: 16px 20px;
    text-align: left;
    font-weight: 600;
    color: #5f6368;
    border-bottom: 1px solid #e8eaed;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.transactions-table td {
    padding: 16px 20px;
    border-bottom: 1px solid #f1f3f4;
    color: #3c4043;
}

.transactions-table tbody tr:hover {
    background-color: #f8f9fa;
}

.transaction-id {
    font-family: 'Courier New', monospace;
    color: #1a73e8;
    font-weight: 500;
}

.amount {
    font-family: 'Courier New', monospace;
    font-weight: 500;
}

.status-badge.completed {
    background-color: #e8f5e8;
    color: #137333;
}

.status-badge.pending {
    background-color: #fef7e0;
    color: #f9ab00;
}

.status-badge.active {
    background-color: #e3f2fd;
    color: #1976d2;
}

.status-badge.overdue {
    background-color: #fce8e6;
    color: #d93025;
}

/* Commission & Earnings Styling */
.commission-earnings-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 16px;
}

.filter-controls {
    display: flex;
    gap: 12px;
    align-items: center;
}

.filter-select {
    min-width: 140px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 14px;
    background-color: #fff;
}

.filter-select:focus {
    border-color: #4285f4;
    box-shadow: 0 0 0 2px rgba(66, 133, 244, 0.1);
    outline: none;
}

.commission-table-container {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.commission-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.commission-table thead {
    background-color: #f8f9fa;
}

.commission-table th {
    padding: 16px 20px;
    text-align: left;
    font-weight: 600;
    color: #5f6368;
    border-bottom: 1px solid #e8eaed;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.commission-table td {
    padding: 16px 20px;
    border-bottom: 1px solid #f1f3f4;
    color: #3c4043;
}

.commission-table tbody tr:hover {
    background-color: #f8f9fa;
}

.period-cell {
    font-weight: 500;
    color: #1a73e8;
}

.amount-cell {
    font-family: 'Courier New', monospace;
    color: #5f6368;
}

.total-cell {
    font-weight: 600;
    color: #137333;
    font-family: 'Courier New', monospace;
}

.total-column {
    color: #137333 !important;
}

/* Promo Codes Styling */
.promo-codes-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 16px;
}

.create-promo-btn {
    background-color: #1a73e8;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
}

.create-promo-btn:hover {
    background-color: #1557b0;
}

.promo-codes-table-container {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.promo-codes-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.promo-codes-table thead {
    background-color: #f8f9fa;
}

.promo-codes-table th {
    padding: 16px 20px;
    text-align: left;
    font-weight: 600;
    color: #5f6368;
    border-bottom: 1px solid #e8eaed;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.promo-codes-table td {
    padding: 16px 20px;
    border-bottom: 1px solid #f1f3f4;
    color: #3c4043;
}

.promo-codes-table tbody tr:hover {
    background-color: #f8f9fa;
}

.promo-code {
    font-family: 'Courier New', monospace;
    font-weight: 600;
    color: #1a73e8;
}

.discount {
    font-weight: 500;
    color: #137333;
}

.usage-count {
    color: #5f6368;
}

.revenue-impact {
    font-family: 'Courier New', monospace;
    font-weight: 500;
    color: #137333;
}

/* Payment Dues Styling */
.payment-dues-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 16px;
}

.export-btn {
    border: 1px solid #0F2A71;
    color: #0F2A71;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
}

.export-btn:hover {
    background-color: #0F2A71;
    color: white;
}

.fill {
    background-color: #0F2A71;
    color: #FFF;
    border: 1px solid #0F2A71;
}

.payment-dues-table-container {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.payment-dues-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.payment-dues-table thead {
    background-color: #f8f9fa;
}

.payment-dues-table th {
    padding: 16px 20px;
    text-align: left;
    font-weight: 600;
    color: #5f6368;
    border-bottom: 1px solid #e8eaed;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.payment-dues-table td {
    padding: 16px 20px;
    border-bottom: 1px solid #f1f3f4;
    color: #3c4043;
}

.payment-dues-table tbody tr:hover {
    background-color: #f8f9fa;
}

.vendor-name {
    font-weight: 500;
    color: #1a73e8;
}

.payment-type {
    color: #5f6368;
}

.amount.receivable {
    color: #137333;
    font-family: 'Courier New', monospace;
    font-weight: 500;
}

.amount.payable {
    color: #d93025;
    font-family: 'Courier New', monospace;
    font-weight: 500;
}

.due-date {
    color: #5f6368;
}

/* Responsive Design for Accounts Page */
@media (max-width: 768px) {
    .commission-earnings-header,
    .promo-codes-header,
    .payment-dues-header {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-controls {
        justify-content: stretch;
    }

    .filter-select {
        flex: 1;
        min-width: auto;
    }

    .commission-table-container,
    .promo-codes-table-container,
    .payment-dues-table-container,
    .transactions-table-container {
        overflow-x: auto;
    }

    .commission-table,
    .promo-codes-table,
    .payment-dues-table,
    .transactions-table {
        min-width: 600px;
    }

    .commission-table th,
    .commission-table td,
    .promo-codes-table th,
    .promo-codes-table td,
    .payment-dues-table th,
    .payment-dues-table td,
    .transactions-table th,
    .transactions-table td {
        padding: 12px 16px;
        font-size: 13px;
    }

    .revenue-value {
        font-size: 24px;
    }
}

/**************** REPORTS PAGE SPECIFIC STYLES ****************/

/* Reports Management Section */
.reports-management-section {
    display: block;
}

/* Reports Header */
.reports-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 16px;
}

.reports-controls {
    display: flex;
    gap: 12px;
    align-items: center;
}

/* Reports Stat Cards */
.reports-stat-card {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.reports-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.stat-icon-wrapper {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.stat-icon-reports {
    color: white;
    font-size: 20px;
}

.stat-content {
    flex: 1;
}

.stat-content .stat-label {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 4px;
}

.stat-content .stat-value {
    font-size: 24px;
    font-weight: 700;
    color: #111827;
    margin: 0;
}

/* Reports Tables */
.reports-table-container {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.reports-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.reports-table thead {
    background-color: #f8f9fa;
}

.reports-table th {
    padding: 16px 20px;
    text-align: left;
    font-weight: 600;
    color: #5f6368;
    border-bottom: 1px solid #e8eaed;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.reports-table td {
    padding: 16px 20px;
    border-bottom: 1px solid #f1f3f4;
    color: #3c4043;
    vertical-align: middle;
}

.reports-table tbody tr:hover {
    background-color: #f8f9fa;
}

/* Promo Code Reports Specific */
.promo-code-cell {
    font-family: 'Courier New', monospace;
    font-weight: 600;
    color: #1a73e8;
}

.discount-amount {
    color: #d93025;
    font-family: 'Courier New', monospace;
    font-weight: 500;
}

.revenue-amount {
    color: #137333;
    font-family: 'Courier New', monospace;
    font-weight: 500;
}

.conversion-rate {
    font-weight: 500;
    color: #1a73e8;
}

/* Refund Reports Specific */
.refund-id {
    font-family: 'Courier New', monospace;
    color: #1a73e8;
    font-weight: 500;
}

.refund-amount {
    color: #d93025;
    font-family: 'Courier New', monospace;
    font-weight: 500;
}

/* Review Reports Specific */
.star-rating {
    display: flex;
    align-items: center;
    gap: 2px;
}

.star-rating i {
    color: #fbbf24;
    font-size: 14px;
}

.star-rating .rating-value {
    margin-left: 8px;
    font-size: 13px;
    color: #6b7280;
    font-weight: 500;
}

.comment-cell {
    max-width: 300px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Responsive Design for Reports Page */
@media (max-width: 768px) {
    .reports-header {
        flex-direction: column;
        align-items: stretch;
    }

    .reports-controls {
        justify-content: stretch;
    }

    .reports-controls .filter-select {
        flex: 1;
        min-width: auto;
    }

    .reports-table-container {
        overflow-x: auto;
    }

    .reports-table {
        min-width: 700px;
    }

    .reports-table th,
    .reports-table td {
        padding: 12px 16px;
        font-size: 13px;
    }

    .reports-stat-card {
        padding: 16px;
    }

    .stat-content .stat-value {
        font-size: 20px;
    }

    .comment-cell {
        max-width: 200px;
    }
}

@media (max-width: 576px) {
    .reports-stat-card {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }

    .stat-icon-wrapper {
        margin: 0 auto;
    }

    .reports-table {
        min-width: 600px;
    }

    .comment-cell {
        max-width: 150px;
    }
}
/**************** USER MANAGEMENT MODALS ****************/

/* Modal Styling */
.modal-content {
    border-radius: 12px;
    border: none;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.modal-header {
    border-bottom: 1px solid #e9ecef;
    padding: 20px 24px;
}

.modal-title {
    font-weight: 600;
    font-size: 18px;
    color: #1f2937;
}

.modal-body {
    padding: 24px;
}

.modal-footer {
    border-top: 1px solid #e9ecef;
    padding: 16px 24px;
    gap: 12px;
}

/* Form Styling in Modals */
.modal .form-label {
    font-weight: 500;
    color: #374151;
    margin-bottom: 8px;
}

.modal .form-control,
.modal .form-select {
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 14px;
    transition: all 0.2s ease;
}

.modal .form-control:focus,
.modal .form-select:focus {
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
    outline: none;
}

/* Permissions List in Create Role Modal */
.permissions-list {
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 12px;
    background-color: #f9fafb;
}

.permissions-list .form-check {
    margin-bottom: 8px;
    margin-right: 0;
    min-width: auto;
}

.permissions-list .form-check:last-child {
    margin-bottom: 0;
}

/* Module Access Sections in Assign Access Modal */
.module-access-section {
    margin-bottom: 20px;
    padding: 16px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background-color: #f9fafb;
}

.module-title {
    font-weight: 600;
    font-size: 14px;
    color: #1f2937;
    margin-bottom: 12px;
}

.module-access-section .form-check {
    margin-bottom: 8px;
    margin-right: 0;
    min-width: auto;
}

.module-access-section .form-check-label {
    font-size: 13px;
    color: #4b5563;
}

/* Modal Button Styling */
.modal-btn-primary {
    background-color: #0F2A71;
    border-color: #0F2A71;
    padding: 8px 20px;
    font-weight: 500;
    border-radius: 6px;
}

.modal-btn-primary:hover {
    background-color: #0a1f5c;
    border-color: #0a1f5c;
}

.modal .btn-secondary {
    background-color: #6b7280;
    border-color: #6b7280;
    padding: 8px 20px;
    font-weight: 500;
    border-radius: 6px;
}

.modal .btn-secondary:hover {
    background-color: #4b5563;
    border-color: #4b5563;
}

/* Close Button Styling */
.btn-close {
    background-size: 20px;
    opacity: 0.6;
}

.btn-close:hover {
    opacity: 1;
}

/* Responsive Modal Design */
@media (max-width: 768px) {
    .modal-dialog {
        margin: 1rem;
    }

    .modal-body {
        padding: 20px;
    }

    .modal-header,
    .modal-footer {
        padding: 16px 20px;
    }

    .permissions-list {
        max-height: 150px;
    }

    .module-access-section {
        padding: 12px;
    }
}

/**************** LOGIN PAGE STYLES ****************/

/* Login Body */
.login-body {
    margin: 0;
    padding: 0;
    height: 100vh;
    overflow: hidden;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

/* Login Container */
.login-container {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 80px;
}

/* Background Image */
.login-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.background-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.background-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(1px);
}

/* Logo */
.login-logo {
    position: absolute;
    top: 40px;
    left: 40px;
    z-index: 3;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.95);
    padding: 12px 20px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.logo-container i {
    font-size: 24px;
    color: #4f46e5;
}

.logo-container span {
    font-size: 18px;
    font-weight: 700;
    color: #1f2937;
    letter-spacing: 0.5px;
}

/* Login Form Container */
.login-form-container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 420px;
}

.login-form-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Login Header */
.login-header {
    margin-bottom: 32px;
    text-align: left;
}

.welcome-text {
    font-size: 16px;
    color: #6b7280;
    margin-bottom: 8px;
    font-weight: 400;
}

.brand-text {
    color: #4289F7;
    font-weight: 600;
}

.signin-title {
    font-size: 32px;
    font-weight: 700;
    color: #1f2937;
    margin: 0;
    line-height: 1.2;
}

/* Login Form */
.login-form {
    width: 100%;
}

.form-group {
    margin-bottom: 24px;
}

.login-form .form-label {
    font-weight: 500;
    color: #374151;
    margin-bottom: 8px;
    font-size: 14px;
    display: block;
}

.login-input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s ease;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
}

.login-input:focus {
    outline: none;
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
    background-color: rgba(255, 255, 255, 0.95);
}

.login-input::placeholder {
    color: #9ca3af;
    font-size: 14px;
}

/* Forgot Password */
.forgot-password-container {
    text-align: right;
    margin-bottom: 32px;
}

.forgot-password-link {
    color: #000;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.forgot-password-link:hover {
    color: #3730a3;
    text-decoration: underline;
}

/* Login Button */
.login-btn {
    width: 100%;
    background: #4289F7;
    border: none;
    color: white;
    padding: 16px 24px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.3);
}

.login-btn:hover {
    background: linear-gradient(135deg, #3730a3 0%, #6d28d9 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(79, 70, 229, 0.4);
    color: white;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
    .login-container {
        padding-right: 40px;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .login-container {
        padding: 20px;
        justify-content: center;
    }

    .login-logo {
        top: 20px;
        left: 20px;
    }

    .logo-container {
        padding: 10px 16px;
    }

    .logo-container i {
        font-size: 20px;
    }

    .logo-container span {
        font-size: 16px;
    }

    .login-form-card {
        padding: 32px 24px;
        margin-top: 80px;
    }

    .signin-title {
        font-size: 28px;
    }

    .login-input {
        padding: 12px 14px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .login-container {
        padding: 16px;
    }

    .login-form-card {
        padding: 24px 20px;
        border-radius: 16px;
    }

    .signin-title {
        font-size: 24px;
    }

    .welcome-text {
        font-size: 14px;
    }
}

/* Loading Animation */
.login-btn.loading {
    position: relative;
    color: transparent;
}

.login-btn.loading::after {
    content: '';
    position: absolute;
    top: 50%;

/* ========================================
   BRANCH MANAGEMENT STYLES
   ======================================== */

/* Branch Management Container */
.branch-management-container {
    background: #fff;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    margin-bottom: 2rem;

}
.branch-management-container-plus{
    background: white !important;
    margin: 1rem !important;
    padding: 2rem !important;
    box-shadow: black !important;
    border-radius: 1rem !important;
}

/* Branches Grid Container */
.branch-management-container .branches-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

/* Individual Branch Card */
.branch-management-container .branch-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid #e9ecef;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
}

.branch-management-container .branch-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

/* Branch Header Section */
.branch-management-container .branch-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 1.5rem;
    border-bottom: 1px solid #dee2e6;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.branch-management-container .branch-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 0;
}

.branch-management-container .branch-status {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.branch-management-container .branch-status.active {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
}

.branch-management-container .branch-status.inactive {
    background: linear-gradient(135deg, #6c757d, #adb5bd);
    color: white;
    box-shadow: 0 2px 8px rgba(108, 117, 125, 0.3);
}

.branch-management-container .branch-code {
    color: #6c757d;
    font-size: 0.875rem;
    font-weight: 500;
    margin-top: 0.25rem;
    display: block;
}

/* Branch Action Buttons */
.branch-management-container .branch-actions {
    display: flex;
    gap: 0.5rem;
}

.branch-management-container .action-btn {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.8);
    color: #6c757d;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    backdrop-filter: blur(10px);
}

.branch-management-container .action-btn:hover {
    background: #fff;
    color: #0d6efd;
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(13, 110, 253, 0.2);
}

.branch-management-container .action-btn:last-child:hover {
    color: #dc3545;
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.2);
}

/* Branch Information Section */
.branch-management-container .branch-info {
    padding: 1.5rem;
    border-bottom: 1px solid #f1f3f4;
}

.branch-management-container .info-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: #f8f9fa;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.branch-management-container .info-item:hover {
    background: #e9ecef;
    transform: translateX(4px);
}

.branch-management-container .info-item:last-child {
    margin-bottom: 0;
}

.branch-management-container .info-item i {
    width: 20px;
    color: #6c757d;
    font-size: 0.9rem;
}

.branch-management-container .info-item span {
    color: #495057;
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Working Hours Section */
.branch-management-container .working-hours {
    padding: 1.5rem;
}

.branch-management-container .working-hours h6 {
    font-size: 1rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.branch-management-container .working-hours h6::before {
    content: '';
    width: 4px;
    height: 20px;
    background: linear-gradient(135deg, #0d6efd, #6f42c1);
    border-radius: 2px;
}

.branch-management-container .hours-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.75rem;
}

.branch-management-container .hours-grid > div {
    padding: 0.5rem 0.75rem;
    background: #f8f9fa;
    border-radius: 6px;
    font-size: 0.85rem;
    line-height: 1.4;
    border-left: 3px solid #dee2e6;
    transition: all 0.2s ease;
}

.branch-management-container .hours-grid > div:hover {
    background: #e9ecef;
    border-left-color: #0d6efd;
}

.branch-management-container .hours-grid > div strong {
    color: #495057;
    font-weight: 600;
}

/* Branch Management Animations */
.branch-management-container .branch-card {
    animation: branchFadeInUp 0.6s ease-out;
}

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

/* Stagger animation for multiple branch cards */
.branch-management-container .branch-card:nth-child(1) { animation-delay: 0.1s; }
.branch-management-container .branch-card:nth-child(2) { animation-delay: 0.2s; }
.branch-management-container .branch-card:nth-child(3) { animation-delay: 0.3s; }
.branch-management-container .branch-card:nth-child(4) { animation-delay: 0.4s; }
.branch-management-container .branch-card:nth-child(5) { animation-delay: 0.5s; }

/* Branch Management Responsive Design */
@media (max-width: 768px) {
    .branch-management-container .branches-container {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .branch-management-container .branch-header {
        flex-direction: column;
        gap: 1rem;
    }

    .branch-management-container .branch-actions {
        align-self: flex-end;
    }

    .branch-management-container .hours-grid {
        grid-template-columns: 1fr;
    }

    .branch-management-container {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .branch-management-container .branch-card {
        margin: 0 -0.5rem;
    }

    .branch-management-container .branch-info,
    .branch-management-container .working-hours {
        padding: 1rem;
    }

    .branch-management-container .info-item {
        padding: 0.5rem;
    }
}
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/**************** CAR MANAGEMENT MODALS ****************/

/* Car Management Modal Specific Styling */
.car-management-modal .modal-content {
    border-radius: 12px;
    border: none;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.car-management-modal .modal-header {
    border-bottom: 1px solid #e9ecef;
    padding: 20px 24px;
    background-color: #f8f9fa;
}

.car-management-modal .modal-title {
    font-weight: 600;
    font-size: 18px;
    color: #1f2937;
}

.car-management-modal .modal-body {
    padding: 24px;
}

.car-management-modal .modal-footer {
    border-top: 1px solid #e9ecef;
    padding: 16px 24px;
    gap: 12px;
    background-color: #f8f9fa;
}

/* Car Management Form Styling */
.car-management-modal .form-label {
    font-weight: 500;
    color: #374151;
    margin-bottom: 8px;
    font-size: 14px;
}

.car-management-modal .form-control,
.car-management-modal .form-select {
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 14px;
    transition: all 0.2s ease;
    background-color: #fff;
}

.car-management-modal .form-control:focus,
.car-management-modal .form-select:focus {
    border-color: #0F2A71;
    box-shadow: 0 0 0 3px rgba(15, 42, 113, 0.1);
    outline: none;
}

.car-management-modal .form-control::placeholder {
    color: #9ca3af;
    font-size: 14px;
}

/* Car Management Modal Button Styling */
.car-management-modal .modal-btn-primary {
    background-color: #0F2A71;
    border-color: #0F2A71;
    padding: 10px 20px;
    font-weight: 500;
    border-radius: 8px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.car-management-modal .modal-btn-primary:hover {
    background-color: #0a1f5c;
    border-color: #0a1f5c;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(15, 42, 113, 0.3);
}

.car-management-modal .btn-secondary {
    background-color: #6b7280;
    border-color: #6b7280;
    padding: 10px 20px;
    font-weight: 500;
    border-radius: 8px;
    font-size: 14px;
}

.car-management-modal .btn-secondary:hover {
    background-color: #4b5563;
    border-color: #4b5563;
}

/* Icon buttons styling */
.icon-btns {
    display: flex;
    gap: 8px;
    align-items: center;
}

.icon-btns i {
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.icon-btns i:hover {
    background-color: rgba(0, 0, 0, 0.1);
}

/* Responsive Design for Car Management Modals */
@media (max-width: 768px) {
    .car-management-modal .modal-dialog {
        margin: 1rem;
    }

    .car-management-modal .modal-body {
        padding: 20px;
    }

    .car-management-modal .modal-header,
    .car-management-modal .modal-footer {
        padding: 16px 20px;
    }

    .car-management-modal .row .col-md-6 {
        margin-bottom: 1rem;
    }
}

/* Example styles */
.sidebar {
    transition: all 0.3s ease-in-out;
}

.sidebar.collapsed {
    margin-left: -250px; /* or set display: none; or width: 0 depending on layout */
    opacity: 0;
    visibility: hidden;
}
.main-content {
    transition: margin-left 0.3s;
    margin-left: 250px;
}
.sidebar.collapsed ~ .main-content {
    margin-left: 0;
}

/****************************************** Vendor Panel Styling ******************************************/


/* Stats Cards */

.stat-change {
    font-size: 12px;
    color: #10b981;
    display: flex;
    align-items: center;
    gap: 4px;
}

.stat-change.negative {
    color: #ef4444;
}

/* Fleet Status */
.fleet-status-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.fleet-status-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    border-radius: 0.5rem;
    background: #f8f9fa;
}

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

.status-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.status-dot.available { background-color: #10b981; }
.status-dot.rented { background-color: #3b82f6; }
.status-dot.maintenance { background-color: #f59e0b; }
.status-dot.out-of-service { background-color: #ef4444; }

.progress-bar-container {
    width: 100px;
    height: 6px;
    background: #e5e7eb;
    border-radius: 3px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    transition: width 0.3s ease;
}

.progress-bar.available { background-color: #10b981; }
.progress-bar.rented { background-color: #3b82f6; }
.progress-bar.maintenance { background-color: #f59e0b; }
.progress-bar.out-of-service { background-color: #ef4444; }

/* Recent Bookings */
.bookings-table {
    width: 100%;
    border-collapse: collapse;
}

.bookings-table thead {
    background-color: #f8f9fa;
}

.bookings-table th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: #6B7280;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
}

.bookings-table td {
    padding: 1rem;
    border-top: 1px solid #e9ecef;
    vertical-align: middle;
}

.bookings-table tbody tr:hover {
    background-color: rgba(79, 70, 229, 0.02);
}

.booking-id {
    color: #2563EB;
    font-weight: 500;
}

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

.status-active {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success-green);
}

.status-pending {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning-yellow);
}

.status-in-progress {
    background-color: #dbeafe;
    color: #1e40af;
}

.status-rented {
    background-color: #9fff9396;
    color: #3b701b;
}

.status-maintenance {
    background-color: #f9b2374f;
    color: #9f6400;
}

.status-cancelled {
    background-color: #fee2e2;
    color: #991b1b;
}

.status-completed {
    background: rgba(79, 70, 229, 0.1);
    color: var(--primary-blue);
}

.status-confirmed {
    background: rgba(79, 70, 229, 0.1);
    color: var(--primary-blue);
}

/* Chart Container */
.chart-container {
    position: relative;
    height: 300px;
    margin-top: 1rem;
}

/* Search Bar */
.search-container {
    position: relative;
    flex: 1;
    max-width: 400px;
}

.search-input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    border: 2px solid #e9ecef;
    border-radius: 0.75rem;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.search-icon {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
}

/* User Profile */
.user-profile {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #495057;
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
}

/* Tab Navigation */
.tab-navigation {
    display: flex;
    gap: 0;
    border-bottom: 2px solid #e9ecef;
    margin-bottom: 2rem;
}

.tab-btn {
    padding: 1rem 1.5rem;
    background: none;
    border: none;
    color: #6c757d;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
    position: relative;
}

.tab-btn.active {
    color: var(--primary-blue);
    border-bottom-color: var(--primary-blue);
}

.tab-btn:hover {
    color: var(--primary-blue);
    background-color: rgba(79, 70, 229, 0.05);
}

/* Tab Content */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Form Styling */
.form-label {
    font-weight: 500;
    color: #374151;
    margin-bottom: 8px;
    font-size: 14px;
}

.form-control,
.form-select {
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 14px;
    transition: all 0.2s ease;
    background-color: #fff;
}

.form-control:focus,
.form-select:focus {
    border-color: #0F2A71;
    box-shadow: 0 0 0 3px rgba(15, 42, 113, 0.1);
    outline: none;
}

/* Button Styling */
.btn-primary-custom {
    background-color: #0F2A71;
    border-color: #0F2A71;
    padding: 10px 20px;
    font-weight: 500;
    border-radius: 8px;
    font-size: 14px;
    color: white;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary-custom:hover {
    background-color: #0a1f5c;
    border-color: #0a1f5c;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(15, 42, 113, 0.3);
}

/* Reviews Section */
.reviews-stats {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    text-align: center;
}

.stat-item {
    flex: 1;
}

.review-item {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    background-color: #fff;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.star-rating {
    display: flex;
    gap: 2px;
    margin-bottom: 0.5rem;
}

.star {
    color: #fbbf24;
    font-size: 14px;
}

.review-date {
    color: #6b7280;
    font-size: 12px;
}

.review-text {
    color: #374151;
    margin-bottom: 0.5rem;
}

.reviewer-name {
    color: #6b7280;
    font-size: 12px;
}

/* Policies Section */
.policy-item {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    background-color: #fff;
}

.policy-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.policy-title {
    font-weight: 600;
    color: #111827;
}

.policy-status {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.policy-actions {
    display: flex;
    gap: 8px;
}

.action-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.action-btn:hover {
    background-color: rgba(0, 0, 0, 0.1);
}

/* Templates Section */
.template-item {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    background-color: #fff;
}

.template-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.template-title {
    font-weight: 600;
    color: #111827;
}

.template-type {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    background-color: #dbeafe;
    color: #1e40af;
}

.template-description {
    color: #6b7280;
    font-size: 14px;
    margin-bottom: 1rem;
}

/* Branch Management Styles */
.branch-card {
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
    margin-bottom: 1.5rem;
    margin-left: 1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.branch-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    
}

.branch-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 0.5rem;
}

.branch-code {
    background: #f3f4f6;
    color: #000000;
    padding: 0.25rem 0.5rem;
    border-radius: 0.375rem;
    font-size: 0.75rem;
    font-weight: 600;
}

.branch-status {
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 500;
}

.branch-status.active {
    background: rgb(0 0 0);
    color: #ffffff;
}

.branch-status.inactive {
    background: rgba(107, 114, 128, 0.1);
    color: #374151;
}

.branch-info {
    /* display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem; */
    margin-bottom: 1rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #6b7280;
    font-size: 0.9rem;
    padding: 0.2rem;
}

.working-hours {
    margin-top: 1rem;
    background: #EFF6FF;
    padding: 1.2rem;
    border-radius: 1rem;
}

.working-hours h6 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
}

.hours-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(285px, 1fr));
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #6b7280;
}

.branch-actions {
    display: flex;
    gap: 0.5rem;
}
.branch-actions .action-btn{
    font-size: 0.9rem;
    padding: 1rem;
    border-radius: 0.5rem;
    border:1px solid #E2E8F0;   
    background: #EFF6FF;
}

.branches-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
}

.modal-overlay.show {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.modal-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #111827;
}

.close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #6b7280;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.375rem;
    transition: all 0.2s ease;
}

.close-btn:hover {
    background-color: #f3f4f6;
    color: #374151;
}

.modal-subtitle {
    color: #6b7280;
    margin-bottom: 2rem;
    font-size: 0.875rem;
}

.working-hours-form {
    display: grid;
    gap: 1rem;
}

.day-row {
    display: grid;
    grid-template-columns: 100px 1fr 1fr;
    gap: 1rem;
    align-items: center;
}

.day-label {
    font-weight: 500;
    color: #374151;
}

.time-input {
    padding: 0.5rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    font-size: 0.875rem;
}

.modal-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
}

.btn-secondary {
    background: #f3f4f6;
    color: #374151;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-secondary:hover {
    background: #e5e7eb;
}

/* Switch Styling */
.form-switch .form-check-input {
    width: 3rem;
    height: 1.5rem;
    border-radius: 1.5rem;
}

.form-switch .form-check-input:checked {
    background-color: #0F2A71;
    border-color: #0F2A71;
}

/* User Management Styles */
.user-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.user-item {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.user-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: #d1d5db;
}

.user-info {
    display: flex;
    /* align-items: center; */
    gap: 1rem;
    margin-left: 2rem;
}

.user-avatar-large {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 16px;
}

.user-details {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.user-name {
    font-size: 16px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.user-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.user-role {
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    text-transform: capitalize;
}

.user-role.admin {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
}

.user-role.manager {
    background: rgba(59, 130, 246, 0.1);
    color: #2563eb;
}

.user-role.staff {
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
}

.user-status {
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    text-transform: capitalize;
}

.user-status.active {
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
}

.user-status.inactive {
    background: rgba(107, 114, 128, 0.1);
    color: #6b7280;
}

.user-contact {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    font-size: 13px;
    color: #6b7280;
}

.user-actions {
    display: flex;
    gap: 0.5rem;
}

/* Permissions Grid */
.permissions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.permissions-grid .form-check {
    margin-bottom: 0.5rem;
}

/* Module Access Grid */
.module-access-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.module-section {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1rem;
    background: #f9fafb;
}

.module-section h6 {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.75rem;
}

.access-options {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.access-options .form-check {
    margin-bottom: 0;
}

.access-options .form-check-label {
    font-size: 13px;
    color: #6b7280;
}

/* Responsive Design */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.show {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0;
    }

    .toggle-btn {
        display: block;
    }

    .main-header {
        padding: 1rem;
    }

    .container-fluid {
        padding: 1rem;
    }

    .fleet-status-grid {
        grid-template-columns: 1fr;
    }

    .reviews-stats {
        flex-direction: column;
        gap: 1rem;
    }

    .branch-info {
        /* grid-template-columns: 1fr; */
    }

    .hours-grid {
        grid-template-columns: 1fr;
    }

    .day-row {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .modal-content {
        width: 95%;
        padding: 1.5rem;
    }

    .user-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .user-info {
        width: 100%;
    }

    .user-actions {
        width: 100%;
        justify-content: flex-end;
    }

    .user-contact {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 1rem;
    }

    .permissions-grid {
        grid-template-columns: 1fr;
    }

    .module-access-grid {
        grid-template-columns: 1fr;
    }
}

/* Overlay for mobile */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
    display: none;
}

.overlay.show {
    display: block;
}

/* Animation classes */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

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


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Car Management Specific Styles */
.car-management-container {
    padding: 2rem;
}

.car-management-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.car-management-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.5rem;
}

.car-management-subtitle {
    color: #6b7280;
    font-size: 1rem;
}

.add-car-btn {
    background-color: #0F2A71;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
}

.add-car-btn:hover {
    background-color: #0a1f5c;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(15, 42, 113, 0.3);
}

/* Tab Navigation */
.tab-navigation {
    display: flex;
    gap: 0;
    border-bottom: 2px solid #e9ecef;
    margin-bottom: 2rem;
}

.tab-btn {
    padding: 1rem 1.5rem;
    background: none;
    border: none;
    color: #6c757d;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tab-btn.active {
    color: var(--primary-blue);
    border-bottom-color: var(--primary-blue);
}

.tab-btn:hover {
    color: var(--primary-blue);
    background-color: rgba(79, 70, 229, 0.05);
}

/* Tab Content */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Search and Filter Bar */
.search-filter-bar {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    align-items: center;
    flex-wrap: wrap;
}

.search-container {
    position: relative;
    flex: 1;
    max-width: 300px;
}

.search-input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    /* border: 2px solid #e9ecef; */
    /* border-radius: 0.75rem; */
    border: none !important;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    /* background: white; */
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.search-icon {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
}

.filter-select {
    padding: 0.75rem 1rem;
    border: 2px solid #e9ecef;
    border-radius: 0.75rem;
    font-size: 0.9rem;
    background-color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 140px;
}

.filter-select:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

/* Car Grid */
.car-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.car-card {
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

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

.car-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.car-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: -0.25rem;
}

.car-code {
    color: #6b7280;
    font-size: 0.875rem;
}

.car-status {
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: capitalize;
}

.car-status.available {
    background: rgba(16, 185, 129, 0.1);
    color: #065f46;
}

.car-status.rented {
    background: rgba(59, 130, 246, 0.1);
    color: #1e40af;
}

.car-status.maintenance {
    background: rgba(245, 158, 11, 0.1);
    color: #92400e;
}

.car-status.out-of-service {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
}

.car-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.car-info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
}

.car-info-label {
    color: #6b7280;
}

.car-info-value {
    color: #111827;
    font-weight: 500;
}

.car-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
}

.action-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 0.375rem;
    transition: all 0.2s ease;
    color: #6b7280;
}

.action-btn:hover {
    background-color: rgba(0, 0, 0, 0.1);
    color: #374151;
}

/* Calendar Styles */
.calendar-placeholder {
    padding: 2rem;
    text-align: center;
    background: white;
    border-radius: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
}

.calendar-grid {
    max-width: 800px;
    margin: 0 auto;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.calendar-nav-btn {
    background: #f3f4f6;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.calendar-nav-btn:hover {
    background: #e5e7eb;
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1rem;
}

.day-header {
    font-weight: 600;
    color: #6b7280;
    padding: 1rem;
    background: #f9fafb;
    border-radius: 0.375rem;
}

/* Maintenance Styles */
.maintenance-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.maintenance-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 0.5rem;
}

.maintenance-subtitle {
    color: #6b7280;
    font-size: 0.875rem;
}

.maintenance-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.maintenance-item {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.maintenance-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: #d1d5db;
}

.maintenance-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.maintenance-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
}

.maintenance-icon.oil-change {
    background-color: #f59e0b;
}

.maintenance-icon.inspection {
    background-color: #3b82f6;
}

.maintenance-icon.repair {
    background-color: #ef4444;
}

.maintenance-icon.general {
    background-color: #0F2A71;
}

.maintenance-details h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #111827;
    margin: 0 0 0.25rem 0;
}

.maintenance-details p {
    font-size: 0.875rem;
    color: #6b7280;
    margin: 0;
}

.maintenance-actions {
    display: flex;
    gap: 0.5rem;
}

.complete-btn {
    background-color: #10b981;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.complete-btn:hover {
    background-color: #059669;
}

.add-reminder-btn {
    background-color: #0F2A71;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.add-reminder-btn:hover {
    background-color: #0a1f5c;
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
}

.modal-overlay.show {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.modal-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #111827;
}

.close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #6b7280;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.375rem;
    transition: all 0.2s ease;
}

.close-btn:hover {
    background-color: #f3f4f6;
    color: #374151;
}

/* Form Styles */
.form-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-col {
    flex: 1;
}

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

.form-label {
    font-weight: 500;
    color: #374151;
    margin-bottom: 8px;
    font-size: 14px;
    display: block;
}

.form-control,
.form-select {
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 14px;
    transition: all 0.2s ease;
    background-color: #fff;
    width: 100%;
}

.form-control:focus,
.form-select:focus {
    border-color: #0F2A71;
    box-shadow: 0 0 0 3px rgba(15, 42, 113, 0.1);
    outline: none;
}

.form-switch {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.form-switch input[type="checkbox"] {
    width: 3rem;
    height: 1.5rem;
    border-radius: 1.5rem;
    appearance: none;
    background-color: #d1d5db;
    border: none;
    cursor: pointer;
    position: relative;
    transition: background-color 0.2s;
}

.form-switch input[type="checkbox"]:checked {
    background-color: #0F2A71;
}

.form-switch input[type="checkbox"]:before {
    content: '';
    position: absolute;
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 50%;
    background-color: white;
    top: 0.125rem;
    left: 0.125rem;
    transition: transform 0.2s;
}

.form-switch input[type="checkbox"]:checked:before {
    transform: translateX(1.5rem);
}

.modal-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
}

.btn-primary-custom {
    background-color: #0F2A71;
    border-color: #0F2A71;
    padding: 10px 20px;
    font-weight: 500;
    border-radius: 8px;
    font-size: 14px;
    color: white;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary-custom:hover {
    background-color: #0a1f5c;
    border-color: #0a1f5c;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(15, 42, 113, 0.3);
}

.btn-secondary {
    background: #f3f4f6;
    color: #374151;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-secondary:hover {
    background: #e5e7eb;
}

/* Add New Car Page Styles */
.add-car-container {
    padding: 2rem;
    width: 100%;
    max-width: none;
    margin: 0;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    font-size: 0.875rem;
    color: #6b7280;
}

.breadcrumb-link {
    color: #3b82f6;
    text-decoration: none;
}

.breadcrumb-link:hover {
    text-decoration: underline;
}

.breadcrumb-current {
    color: #374151;
    font-weight: 500;
}

.page-header {
    margin-bottom: 2rem;
}

.page-title {
    font-size: 2rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.5rem;
}

.page-subtitle {
    color: #6b7280;
    font-size: 1rem;
}

.form-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
    padding: 2rem;
    border: 1px solid #e5e7eb;
}

.add-car-form {
    max-width: 100%;
}

.form-section {
    margin-bottom: 2.5rem;
}

.form-section:last-child {
    margin-bottom: 0;
}

.form-section-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #f3f4f6;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-row:last-child {
    margin-bottom: 0;
}

.form-col {
    display: flex;
    flex-direction: column;
}

.form-label {
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.form-control,
.form-select {
    padding: 0.75rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    background-color: white;
}

.form-control:focus,
.form-select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-control.is-invalid,
.form-select.is-invalid {
    border-color: #ef4444;
}

.error-message {
    font-size: 0.75rem;
    margin-top: 0.25rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-switch {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.form-switch input[type="checkbox"] {
    width: 3rem;
    height: 1.5rem;
    appearance: none;
    background-color: #d1d5db;
    border-radius: 1rem;
    position: relative;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.form-switch input[type="checkbox"]:checked {
    background-color: #3b82f6;
}

.form-switch input[type="checkbox"]::before {
    content: '';
    position: absolute;
    top: 0.125rem;
    left: 0.125rem;
    width: 1.25rem;
    height: 1.25rem;
    background-color: white;
    border-radius: 50%;
    transition: transform 0.2s ease;
}

.form-switch input[type="checkbox"]:checked::before {
    transform: translateX(1.5rem);
}

.form-switch .form-label {
    margin-bottom: 0;
    cursor: pointer;
    font-weight: 500;
    color: #374151;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e5e7eb;
}

.btn-secondary {
    padding: 0.75rem 1.5rem;
    background-color: white;
    border: 1px solid #d1d5db;
    color: #374151;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-secondary:hover {
    background-color: #f9fafb;
    border-color: #9ca3af;
}

.btn-primary-custom {
    padding: 0.75rem 1.5rem;
    background-color: #3b82f6;
    border: none;
    color: white;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary-custom:hover {
    background-color: #2563eb;
    transform: translateY(-1px);
}

.btn-primary-custom:disabled {
    background-color: #9ca3af;
    cursor: not-allowed;
    transform: none;
}

/* Car Setup Details Styles */
.car-setup-details {
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1.5rem;
}

.car-setup-info {
    color: #374151;
}

.info-item {
    margin-bottom: 0.75rem;
    font-size: 0.875rem;
}

.info-item strong {
    color: #111827;
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 768px) {
    .add-car-container {
        padding: 1rem;
    }
    
    .form-container {
        padding: 1.5rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .btn-secondary,
    .btn-primary-custom {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .page-title {
        font-size: 1.5rem;
    }
    
    .form-section-title {
        font-size: 1.125rem;
    }
}

/* ===== BOOKING MANAGEMENT SPECIFIC STYLES ===== */

/* ===== ACCOUNT MANAGEMENT SPECIFIC STYLES ===== */

/* Account Management Container */
.account-management-container {
    padding: 2rem;
}

.account-management-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.account-management-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.5rem;
}

.account-management-subtitle {
    color: #6b7280;
    font-size: 1rem;
}

/* Pricing Categories */
.pricing-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
}

.pricing-category-card {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
    border: 1px solid #e5e7eb;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pricing-category-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.category-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #111827;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.edit-pricing-btn {
    background: none;
    border: none;
    color: #6b7280;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 0.375rem;
    transition: all 0.2s ease;
}

.edit-pricing-btn:hover {
    background-color: #f3f4f6;
    color: #374151;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
}

.pricing-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.pricing-item label {
    font-size: 0.875rem;
    color: #6b7280;
    font-weight: 500;
}

.pricing-value {
    font-size: 1.125rem;
    font-weight: 600;
    color: #111827;
}

.badge {
    font-size: 12.8px;
    border-radius: 9999px;
    height: 27px; 
    line-height: 17px;
    font-weight: 600;
    text-transform: unset;
}

.badge-new {
    background: rgba(16, 185, 129, 0.1);
    color: #065f46;
}

.badge-active {
    background: rgba(16, 185, 129, 0.1);
    color: #065f46;
}

.badge-inactive {
    background: rgba(107, 114, 128, 0.1);
    color: #6b7280;
}

/* Commission List */
.commission-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.commission-item {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.commission-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: #d1d5db;
}

.commission-info h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #111827;
    margin: 0 0 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.commission-details {
    font-size: 0.875rem;
    color: #6b7280;
    margin: 0;
}

.commission-actions {
    display: flex;
    gap: 0.5rem;
}

/* Discount List */
.discount-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.discount-item {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    transition: all 0.3s ease;
}

.discount-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: #d1d5db;
}

.discount-info h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #111827;
    margin: 0 0 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.discount-details {
    font-size: 0.875rem;
    color: #6b7280;
    margin: 0 0 0.25rem 0;
}

.discount-validity {
    font-size: 0.75rem;
    color: #9ca3af;
    margin: 0;
}

.discount-actions {
    display: flex;
    gap: 0.5rem;
}

/* Invoice Section */
.invoice-details {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
    border: 1px solid #e5e7eb;
}

.invoice-header-info h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 1.5rem;
}

.invoice-info-grid {
    margin-bottom: 2rem;
}

.invoice-info-section h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 1rem;
}

.invoice-info-section p {
    margin-bottom: 0.5rem;
    color: #374151;
}

.invoice-actions {
    display: flex;
    gap: 1rem;
}

/* ===== REPORTS SPECIFIC STYLES ===== */

/* Reports Container */
.reports-container {
    padding: 2rem;
}

.reports-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.reports-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.5rem;
}

.reports-subtitle {
    color: #6b7280;
    font-size: 1rem;
}

/* Metrics Grid */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.metric-card {
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
    border: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.metric-icon {
    width: 60px;
    height: 60px;
    border-radius: 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.metric-content {
    flex: 1;
}

.metric-title {
    font-size: 0.875rem;
    color: #6b7280;
    margin: 0 0 0.5rem 0;
    font-weight: 500;
}

.metric-value {
    font-size: 1.875rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.25rem;
}

.metric-change {
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.metric-change.positive {
    color: #10b981;
}

.metric-change.negative {
    color: #ef4444;
}

/* Charts Grid */
.charts-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.chart-card {
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
    border: 1px solid #e5e7eb;
}

.chart-header {
    margin-bottom: 1.5rem;
}

.chart-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #111827;
    margin: 0 0 0.5rem 0;
}

.chart-subtitle {
    font-size: 0.875rem;
    color: #6b7280;
    margin: 0;
}

.chart-container {
    position: relative;
    height: 300px;
}

/* Reviews List */
.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.review-item {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.review-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: #d1d5db;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.reviewer-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.reviewer-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 16px;
}

.reviewer-name {
    font-size: 1rem;
    font-weight: 600;
    color: #111827;
    margin: 0 0 0.25rem 0;
}

.review-rating {
    display: flex;
    gap: 2px;
}

.review-rating i {
    color: #fbbf24;
    font-size: 14px;
}

.review-date {
    font-size: 0.875rem;
    color: #6b7280;
}

.review-text {
    color: #374151;
    line-height: 1.5;
    margin: 0;
}

/* Responsive Design for Account Management and Reports */
@media (max-width: 768px) {
    .account-management-container,
    .reports-container {
        padding: 1rem;
    }

    .account-management-header,
    .reports-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }

    .pricing-categories {
        grid-template-columns: 1fr;
    }

    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .commission-item,
    .discount-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .commission-actions,
    .discount-actions {
        width: 100%;
        justify-content: flex-end;
    }

    .invoice-actions {
        flex-direction: column;
    }

    .metrics-grid {
        grid-template-columns: 1fr;
    }

    .charts-grid {
        grid-template-columns: 1fr;
    }

    .reviewer-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .review-header {
        flex-direction: column;
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    .account-management-title,
    .reports-title {
        font-size: 1.5rem;
    }

    .account-management-subtitle,
    .reports-subtitle {
        font-size: 0.875rem;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .metric-card {
        flex-direction: column;
        text-align: center;
    }

    .metric-icon {
        width: 48px;
        height: 48px;
        font-size: 1.25rem;
    }

    .metric-value {
        font-size: 1.5rem;
    }

    .chart-container {
        height: 250px;
    }
}

/* Header Styles */
.header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

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

.notification-icon {
    position: relative;
    cursor: pointer;
    color: #6b7280;
    font-size: 1.25rem;
}

.notification-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: #ef4444;
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 600;
}

/* Booking Management Container */
.booking-management-container {
    padding: 2rem;
}

.booking-management-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    margin-left: 10px;
}

.booking-management-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.5rem;
}

.booking-management-subtitle {
    color: #6b7280;
    font-size: 1rem;
}

.create-manual-booking-btn {
    background-color: #0F2A71;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    text-decoration: none;
}

.create-manual-booking-btn:hover {
    background-color: #0a1f5c;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(15, 42, 113, 0.3);
}

/* Section Header */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.section-header .section-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Booking Table Styles */
.bookings-table-container {
    overflow-x: auto;
}

.customer-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 14px;
}

.customer-name {
    font-weight: 500;
    color: #111827;
    font-size: 14px;
}

.customer-email {
    color: #6b7280;
    font-size: 12px;
}

.car-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.car-name {
    font-weight: 500;
    color: #111827;
    font-size: 14px;
}

.car-details {
    color: #6b7280;
    font-size: 12px;
}

.rental-period {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.rental-dates {
    font-weight: 500;
    color: #111827;
    font-size: 14px;
}

.rental-duration {
    color: #6b7280;
    font-size: 12px;
}

.amount {
    font-weight: 600;
    color: #111827;
    font-size: 14px;
}

.booking-actions {
    display: flex;
    gap: 0.5rem;
}

.view-btn {
    color: #10b981;
}

.edit-btn {
    color: #f59e0b;
}

.delete-btn {
    color: #ef4444;
}

/* Calendar Styles */
.calendar-container {
    padding: 2rem;
}

.calendar-month {
    font-size: 1.25rem;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.weekday {
    text-align: center;
    font-weight: 600;
    color: #6b7280;
    padding: 0.5rem;
    background: #f9fafb;
    border-radius: 0.375rem;
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.5rem;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.375rem;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    padding: 0.5rem;
}

.calendar-day:hover {
    background: #f9fafb;
    border-color: #0F2A71;
}

.calendar-day.booking-day {
    background: rgba(15, 42, 113, 0.1);
    border-color: #0F2A71;
}

.booking-indicator {
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    background: #0F2A71;
    color: white;
    font-size: 8px;
    padding: 1px 4px;
    border-radius: 2px;
}

/* Handover Styles */
.handover-container {
    padding: 2rem;
}

.handover-item {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
    border: 1px solid #e5e7eb;
}

.handover-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.handover-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #111827;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.handover-subtitle {
    color: #6b7280;
    margin-bottom: 2rem;
}

.close-handover-btn {
    background: none;
    border: none;
    font-size: 1.25rem;
    color: #6b7280;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 0.375rem;
    transition: all 0.2s ease;
}

.close-handover-btn:hover {
    background-color: #f3f4f6;
    color: #374151;
}

.handover-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #f9fafb;
    border-radius: 0.5rem;
}

.handover-info-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.handover-info-item label {
    font-weight: 500;
    color: #6b7280;
    font-size: 0.875rem;
}

.handover-info-item span {
    font-weight: 600;
    color: #111827;
}

.handover-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.handover-checklist {
    background: #f9fafb;
    padding: 1.5rem;
    border-radius: 0.5rem;
    border: 1px solid #e5e7eb;
}

.handover-checklist h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 1rem;
}

.checklist-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    padding: 0.5rem;
    border-radius: 0.375rem;
    transition: all 0.2s ease;
}

.checklist-item:hover {
    background: rgba(15, 42, 113, 0.05);
}

.checklist-item input[type="checkbox"] {
    margin-top: 0.125rem;
    cursor: pointer;
}

.checklist-item label {
    color: #374151;
    font-size: 0.875rem;
    cursor: pointer;
    line-height: 1.4;
}

.handover-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 1rem;
}

/* Manual Booking Styles */
.manual-booking-container {
    padding: 2rem;
}

.manual-booking-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    margin-left: 10px;
}

.manual-booking-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.5rem;
}

.manual-booking-subtitle {
    color: #6b7280;
    font-size: 1rem;
}

.close-manual-booking-btn {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #6b7280;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 0.375rem;
    transition: all 0.2s ease;
}

.close-manual-booking-btn:hover {
    background-color: #f3f4f6;
    color: #374151;
}

.manual-booking-form {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.form-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1rem;
}

.form-check {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-check-input {
    width: 1rem;
    height: 1rem;
    cursor: pointer;
}

.form-check-label {
    font-size: 0.875rem;
    color: #374151;
    cursor: pointer;
}

/* Responsive Design for Booking Management */
@media (max-width: 768px) {
    .booking-management-container,
    .manual-booking-container {
        padding: 1rem;
    }

    .booking-management-header,
    .manual-booking-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }

    .bookings-table-container {
        overflow-x: auto;
    }

    .calendar-container {
        padding: 1rem;
    }

    .calendar-header {
        flex-direction: column;
        gap: 1rem;
    }

    .calendar-weekdays,
    .calendar-days {
        grid-template-columns: repeat(7, 1fr);
        gap: 0.25rem;
    }

    .calendar-day {
        padding: 0.25rem;
        font-size: 0.75rem;
    }

    .booking-indicator {
        font-size: 6px;
        padding: 0px 2px;
    }

    .handover-container {
        padding: 1rem;
    }

    .handover-item {
        padding: 1.5rem;
    }

    .handover-info-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .handover-actions {
        flex-direction: column;
    }

    .form-row {
        flex-direction: column;
    }

    .section-header {
        flex-direction: column;
        justify-content: normal;
        align-items: flex-start;
        gap: 1rem;
    }

    .close-manual-booking-btn {
        position: static;
        align-self: flex-end;
    }
}

/* Additional Mobile Styles */
@media (max-width: 480px) {
    .main-header {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }

    .header-left,
    .header-right {
        justify-content: space-between;
    }

    .search-container {
        max-width: none;
        flex: 1;
    }

    .booking-management-title,
    .manual-booking-title {
        font-size: 1.5rem;
    }

    .booking-management-subtitle,
    .manual-booking-subtitle {
        font-size: 0.875rem;
    }

    .create-manual-booking-btn {
        width: 100%;
        justify-content: center;
    }

    .tab-navigation {
        flex-direction: column;
        gap: 0.5rem;
    }

    .tab-btn {
        justify-content: center;
    }

    .search-filter-bar {
        flex-direction: column;
        gap: 0.75rem;
    }

    .filter-select {
        min-width: auto;
    }

    .bookings-table th,
    .bookings-table td {
        padding: 0.5rem;
        font-size: 0.75rem;
    }

    .customer-avatar {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }

    .customer-name,
    .car-name,
    .rental-dates,
    .amount {
        font-size: 12px;
    }

    .customer-email,
    .car-details,
    .rental-duration {
        font-size: 10px;
    }

    .status-badge {
        font-size: 10px;
        padding: 0.25rem 0.5rem;
    }

    .booking-actions {
        flex-direction: column;
        gap: 0.25rem;
    }

    .action-btn {
        padding: 0.25rem;
    }

    .handover-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .handover-title {
        font-size: 1.125rem;
    }

    .handover-actions {
        flex-direction: column;
        gap: 0.5rem;
    }

    .form-actions {
        flex-direction: column;
        gap: 0.5rem;
    }

    .btn-primary-custom,
    .btn-secondary,
    .create-manual-booking-btn {
        width: 100%;
        justify-content: center;
    }
}

/* ===== TASK MANAGEMENT SPECIFIC STYLES ===== */

/* Task Management Container */
.task-management-container {
    padding: 2rem;
}

.task-management-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    margin-left: 10px;
}

.task-management-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.5rem;
}

.task-management-subtitle {
    color: #6b7280;
    font-size: 1rem;
}

/* Task Filters */
.task-filters {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    align-items: center;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-group label {
    font-weight: 500;
    color: #374151;
    font-size: 0.875rem;
}

/* Task List Styles */
.tasks-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.task-item {
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
    border: 1px solid #e5e7eb;
    display: flex;
    gap: 1rem;
    transition: all 0.3s ease;
}

.task-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.task-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.task-icon.contract-icon {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.task-icon.inspection-icon {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.task-icon.clearance-icon {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.task-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.task-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.task-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.task-badges {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

.task-status {
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: capitalize;
}

.task-status.pending {
    background: rgba(245, 158, 11, 0.1);
    color: #92400e;
}

.task-status.in-progress {
    background: rgba(59, 130, 246, 0.1);
    color: #1e40af;
}

.task-status.review {
    background: rgba(139, 92, 246, 0.1);
    color: #6b21a8;
}

.task-status.completed {
    background: rgba(16, 185, 129, 0.1);
    color: #065f46;
}

.task-status.cancelled {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
}

.task-priority {
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: capitalize;
}

.task-priority.high {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
}

.task-priority.medium {
    background: rgba(245, 158, 11, 0.1);
    color: #92400e;
}

.task-priority.low {
    background: rgba(16, 185, 129, 0.1);
    color: #065f46;
}

.task-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.task-info-item {
    display: flex;
    gap: 0.5rem;
    font-size: 0.875rem;
}

.task-info-item .label {
    color: #6b7280;
    font-weight: 500;
}

.task-info-item .value {
    color: #111827;
    font-weight: 500;
}

.task-meta {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
}

.task-dates {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    font-size: 0.875rem;
}

.due-date {
    color: #ef4444;
    font-weight: 500;
}

.created-date {
    color: #6b7280;
}

.task-description {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    font-size: 0.875rem;
}

.description-label {
    color: #6b7280;
    font-weight: 500;
}

.description-text {
    color: #111827;
}

.task-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex-shrink: 0;
}

/* Generator Styles */
.contract-generator,
.inspection-generator,
.clearance-generator {
    padding: 2rem;
}

.generator-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.generator-subtitle {
    color: #6b7280;
    margin-bottom: 2rem;
    font-size: 0.875rem;
}

.contract-form,
.inspection-form,
.clearance-form {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 3rem;
}

/* Document Preview Styles */
.contract-preview,
.inspection-preview,
.clearance-preview {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid #e5e7eb;
}

.preview-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 0.5rem;
}

.preview-subtitle {
    color: #6b7280;
    margin-bottom: 2rem;
    font-size: 0.875rem;
}

.contract-document,
.inspection-document,
.clearance-document {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
    font-family: 'Times New Roman', serif;
    line-height: 1.6;
}

.contract-header,
.inspection-header,
.clearance-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e5e7eb;
}

.contract-header h2,
.inspection-header h2,
.clearance-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.5rem;
}

.contract-content,
.inspection-content,
.clearance-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contract-section,
.inspection-info-section,
.clearance-info-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.section-column,
.info-column {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.section-column h4,
.info-column h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 1rem;
    text-decoration: underline;
}

.contract-signatures,
.inspection-signatures,
.clearance-signatures {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e5e7eb;
}

.signature-section {
    text-align: center;
}

.signature-section h4 {
    font-size: 0.875rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 1rem;
}

.signature-line {
    width: 100%;
    height: 1px;
    background: #000;
    margin-bottom: 0.5rem;
}

/* Inspection Specific Styles */

.checklist-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.checklist-group h5 {
    font-size: 1rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 0.5rem;
}

.checklist-items {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.checklist-column {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    min-width: 0;
    flex: 1;
}

.checklist-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #374151;
    cursor: pointer;
}

.checklist-item input[type="checkbox"] {
    cursor: pointer;
}

/* Inspection Preview Specific Styles */
.inspection-details-section {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e5e7eb;
}

.inspection-details-section h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 1rem;
    text-decoration: underline;
}

.inspection-details-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.detail-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.detail-row p {
    margin: 0;
    font-size: 0.875rem;
    color: #374151;
}

.inspection-notes-section {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e5e7eb;
}

.inspection-notes-section h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 1rem;
    text-decoration: underline;
}

.inspection-notes-section p {
    font-size: 0.875rem;
    color: #374151;
    line-height: 1.5;
    background: #f9fafb;
    padding: 1rem;
    border-radius: 0.5rem;
    border-left: 4px solid #3b82f6;
}

.photo-upload-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
}

.photo-upload-item {
    aspect-ratio: 1;
    border: 2px dashed #d1d5db;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #f9fafb;
}

.photo-upload-item:hover {
    border-color: #0F2A71;
    background: rgba(15, 42, 113, 0.05);
}

.upload-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: #6b7280;
    font-size: 0.75rem;
    text-align: center;
}

.upload-placeholder i {
    font-size: 1.5rem;
}

.inspection-checklist-section {
    margin: 2rem 0;
}

.checklist-results {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.checklist-column {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.checklist-column h5 {
    font-size: 1rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 1rem;
    text-decoration: underline;
}

.check-item {
    font-size: 0.875rem;
    color: #374151;
    padding: 0.25rem 0;
}

/* Clearance Specific Styles */
.clearance-checklist {
    background: #f9fafb;
    padding: 1.5rem;
    border-radius: 0.5rem;
    border: 1px solid #e5e7eb;
}

.clearance-checklist .checklist-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.rental-details-section {
    margin: 2rem 0;
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid #e5e7eb;
}

.detail-item .label {
    color: #6b7280;
    font-weight: 500;
}

.detail-item .value {
    color: #111827;
    font-weight: 600;
}

.financial-settlement {
    background: #f9fafb;
    padding: 1.5rem;
    border-radius: 0.5rem;
    margin: 2rem 0;
}

.settlement-details {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.settlement-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid #e5e7eb;
}

.settlement-item.total {
    border-top: 2px solid #111827;
    border-bottom: 2px solid #111827;
    font-weight: 600;
    font-size: 1.125rem;
}

.clearance-confirmation {
    margin: 2rem 0;
}

.confirmation-items {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.confirmation-item {
    font-size: 0.875rem;
    color: #059669;
    padding: 0.25rem 0;
}

.clearance-statement {
    background: #f0f9ff;
    padding: 1rem;
    border-radius: 0.5rem;
    border-left: 4px solid #0ea5e9;
    font-style: italic;
    color: #374151;
    margin-top: 1rem;
}

/* Responsive Design for Task Management */
@media (max-width: 768px) {
    .task-management-container {
        padding: 1rem;
    }

    .task-management-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }

    .task-filters {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }

    .filter-group {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }

    .task-item {
        flex-direction: column;
        gap: 1rem;
    }

    .task-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .task-badges {
        align-self: flex-start;
    }

    .task-info {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .task-meta {
        flex-direction: column;
        gap: 0.75rem;
    }

    .task-actions {
        flex-direction: row;
        justify-content: flex-end;
    }

    .contract-generator,
    .inspection-generator,
    .clearance-generator {
        padding: 1rem;
    }

    .contract-section,
    .inspection-info-section,
    .clearance-info-section {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .contract-signatures,
    .inspection-signatures,
    .clearance-signatures {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .inspection-checklist {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .checklist-column {
        gap: 0.5rem;
    }

    .photo-upload-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .checklist-results {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .details-grid {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .clearance-checklist .checklist-group {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
}

/* Additional Mobile Styles for Task Management */
@media (max-width: 480px) {
    .task-management-title {
        font-size: 1.5rem;
    }

    .task-management-subtitle {
        font-size: 0.875rem;
    }

    .task-title {
        font-size: 1rem;
    }

    .task-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .generator-title {
        font-size: 1.125rem;
    }

    .contract-document,
    .inspection-document,
    .clearance-document {
        padding: 1rem;
        font-size: 0.875rem;
    }

    .contract-header h2,
    .inspection-header h2,
    .clearance-header h2 {
        font-size: 1.25rem;
    }

    .photo-upload-grid {
        grid-template-columns: 1fr;
    }

    .form-actions {
        flex-direction: column;
        gap: 0.5rem;
    }

    .btn-primary-custom,
    .btn-secondary {
        width: 100%;
        justify-content: center;
    }
}

.back-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1001;
  }
  
  #loader {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1002;
  }
  
  .loader {
    border: 8px solid #f3f3f3;
    border-top: 8px solid #3498db;
    border-radius: 50%;
    width: 80px;
    height: 80px;
    animation: spin 1s linear infinite;
  }

  .error {
    color: red;
    font-size: 12px;
    margin-top: 5px;
  }


  /* Toaster */

  .custom-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgb(255, 255, 255);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    padding: 16px 20px;
    min-width: 300px;
    max-width: 400px;
    z-index: 9999;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    border-left: 4px solid;
}

.custom-toast.show {
    transform: translateX(0);
}

.custom-toast.success {
    border-left-color: #5ba035;
}

.custom-toast.error {
    border-left-color: #bf441d;
}

.custom-toast.warning {
    border-left-color: #da8609;
}

.custom-toast.info {
    border-left-color: #3b98b5;
}

.custom-toast .toast-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.custom-toast .toast-title {
    font-weight: 600;
    font-size: 16px;
    margin: 0;
}

.custom-toast .toast-close {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: #666;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.custom-toast .toast-message {
    font-size: 14px;
    color: #333;
    margin: 0;
    line-height: 1.4;
}

/* End Toaster */

/* ===== USER DETAILS VIEW PAGE STYLES ===== */

.user-details-section {
    background: #f8f9fa;
    min-height: 100vh;
}

.user-details-section .management-title {
    color: #2c3e50;
    font-weight: 600;
    margin: 0;
}

.user-details-section .management-subtitle {
    color: #6c757d;
    margin: 0;
}

.user-details-section .btn-custom {
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.user-details-section .btn-outline-custom {
    background: transparent;
    color: #007bff;
    border: 1px solid #007bff;
}

.user-details-section .btn-outline-custom:hover {
    background: #007bff;
    color: white;
}

.user-details-section .btn-danger-custom {
    background: #dc3545;
    color: white;
}

.user-details-section .btn-danger-custom:hover {
    background: #c82333;
}

.user-details-section .card {
    border: none;
    border-radius: 10px;
    overflow: hidden;
}

.user-details-section .card-header {
    border-bottom: none;
    padding: 1rem 1.5rem;
}

.user-details-section .info-group {
    margin-bottom: 1rem;
}

.user-details-section .info-label {
    font-weight: 600;
    color: #495057;
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}

.user-details-section .info-value {
    color: #212529;
    font-size: 1rem;
}

.user-details-section .status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
}

.user-details-section .status-active {
    background: #d4edda;
    color: #155724;
}

.user-details-section .role-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    margin: 0.125rem;
}

.user-details-section .role-super-admin {
    background: #fff3cd;
    color: #856404;
}

.user-details-section .permission-badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 15px;
    font-size: 0.7rem;
    background: #e9ecef;
    color: #495057;
    margin: 0.125rem;
}

.user-details-section .branch-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    background: #d1ecf1;
    color: #0c5460;
    margin: 0.125rem;
}

.user-details-section .timeline {
    position: relative;
    padding-left: 2rem;
}

.user-details-section .timeline-item {
    position: relative;
    margin-bottom: 1.5rem;
}

.user-details-section .timeline-marker {
    position: absolute;
    left: -2rem;
    top: 0.25rem;
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.user-details-section .timeline-content h6 {
    margin: 0;
    font-size: 0.875rem;
    font-weight: 600;
}

.user-details-section .timeline-content p {
    margin: 0;
    font-size: 0.75rem;
}

.user-details-section .stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.user-details-section .stat-item {
    display: flex;
    align-items: center;
    padding: 0.75rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.user-details-section .stat-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin-right: 0.75rem;
}

.user-details-section .stat-content {
    flex: 1;
}

.user-details-section .stat-number {
    font-weight: 600;
    font-size: 0.875rem;
    color: #212529;
}

.user-details-section .stat-label {
    font-size: 0.75rem;
    color: #6c757d;
}

.user-details-section .status-indicators {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.user-details-section .status-item {
    display: flex;
    align-items: center;
}

.user-details-section .status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 0.5rem;
}

.user-details-section .status-text {
    font-size: 0.875rem;
    color: #495057;
}

.user-details-section .permissions-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
}

.user-details-section .action-buttons {
    display: flex;
    gap: 0.5rem;
}

/* Responsive Design for User Details View */
@media (max-width: 768px) {
    .user-details-section .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .user-details-section .action-buttons {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* Enhanced Permissions Styling */
.permission-module {
    background: white;
    border-radius: 0.75rem;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    margin-bottom: 1.5rem;
    border: 1px solid #f1f3f4;
}

.module-title {
    font-weight: 700;
    color: #1f2937;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid #e5e7eb;
    padding-bottom: 0.5rem;
}

.permissions-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    align-items: center;
}

.permission-item {
    min-width: 140px;
}

.permission-item .form-check {
    margin: 0;
    padding: 0;
}

.permission-item .form-check-input {
    margin-right: 0.5rem;
    width: 1.1rem;
    height: 1.1rem;
    border: 2px solid #d1d5db;
    border-radius: 0.25rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.permission-item .form-check-input:checked {
    background-color: #4f46e5;
    border-color: #4f46e5;
}

.permission-item .form-check-input:focus {
    box-shadow: 0 0 0 0.2rem rgba(79, 70, 229, 0.25);
}

.permission-item .form-check-label {
    font-size: 0.9rem;
    font-weight: 500;
    color: #374151;
    cursor: pointer;
    user-select: none;
    margin-left: 0.25rem;
}

.permission-item .form-check-label:hover {
    color: #1f2937;
}

/* Save button styling */
#save-permissions-btn {
    background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%);
    border: none;
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(79, 70, 229, 0.2);
}

#save-permissions-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(79, 70, 229, 0.3);
    background: linear-gradient(135deg, #4338ca 0%, #5b21b6 100%);
}

#save-permissions-btn:active {
    transform: translateY(0);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .permissions-row {
        gap: 1rem;
    }
    
    .permission-item {
        min-width: 120px;
    }
    
    .permission-item .form-check-label {
        font-size: 0.85rem;
    }
}

@media (max-width: 576px) {
    .permission-module {
        padding: 1rem;
    }
    
    .permissions-row {
        gap: 0.75rem;
    }
    
    .permission-item {
        min-width: 100px;
    }
}

/* Assign Access Modal Styling */
#assignAccessModal .modal-content {
    border-radius: 1rem;
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

#assignAccessModal .modal-title {
    font-weight: 600;
    font-size: 1.25rem;
}

#assignAccessModal .form-label {
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
}

#assignAccessModal .form-select {
    border: 2px solid #e5e7eb;
    border-radius: 0.5rem;
    padding: 0.75rem;
    transition: all 0.3s ease;
}

#assignAccessModal .form-select:focus {
    border-color: #4f46e5;
    box-shadow: 0 0 0 0.2rem rgba(79, 70, 229, 0.25);
}

#assignAccessModal .module-access-section {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

#assignAccessModal .module-title {
    font-weight: 700;
    color: #1f2937;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid #e5e7eb;
    padding-bottom: 0.5rem;
}

#assignAccessModal .user-permission-checkbox {
    margin-right: 0.5rem;
    width: 1.1rem;
    height: 1.1rem;
    border: 2px solid #d1d5db;
    border-radius: 0.25rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

#assignAccessModal .user-permission-checkbox:checked {
    background-color: #4f46e5;
    border-color: #4f46e5;
}

#assignAccessModal .user-permission-checkbox:focus {
    box-shadow: 0 0 0 0.2rem rgba(79, 70, 229, 0.25);
}

#assignAccessModal .form-check-label {
    font-size: 0.9rem;
    font-weight: 500;
    color: #374151;
    cursor: pointer;
    user-select: none;
}

#assignAccessModal .form-check-label:hover {
    color: #1f2937;
}

#assignAccessModal .modal-footer {
    border-top: 1px solid #e5e7eb;
    padding: 1.5rem;
}

#assignAccessModal .btn-secondary {
    background: #6b7280;
    border: none;
    /* padding: 0.75rem 1.5rem; */
    font-weight: 600;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

#assignAccessModal .btn-secondary:hover {
    background: #4b5563;
    transform: translateY(-1px);
}

#assignAccessModal .modal-btn-primary {
    background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%);
    border: none;
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(79, 70, 229, 0.2);
}

#assignAccessModal .modal-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(79, 70, 229, 0.3);
    background: linear-gradient(135deg, #4338ca 0%, #5b21b6 100%);
}

/* Responsive adjustments for assign access modal */
@media (max-width: 768px) {
    #assignAccessModal .modal-dialog {
        margin: 1rem;
    }
    
    #assignAccessModal .module-access-section {
        padding: 1rem;
    }
    
    #assignAccessModal .form-check {
        margin-bottom: 0.5rem;
    }
}

/* Permission Section Styling for View User Page */
.permissions-section {
    margin-bottom: 1.5rem;
}

.permission-section-title {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
}

.permission-section-title i {
    margin-right: 0.5rem;
}

/* Permission Badge Styling */
.permission-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.375rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: 0.375rem;
    background-color: #f3f4f6;
    color: #374151;
    border: 1px solid #d1d5db;
    transition: all 0.2s ease;
    margin: 0.125rem;
}

.permission-badge:hover {
    background-color: #e5e7eb;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.permission-badge i {
    margin-right: 0.25rem;
    font-size: 0.7rem;
}

/* Role-based permission badges */
.permission-badge.role-permission {
    background-color: #dbeafe;
    color: #1e40af;
    border-color: #93c5fd;
}

.permission-badge.role-permission:hover {
    background-color: #bfdbfe;
}

/* Direct user permission badges */
.permission-badge.direct-permission {
    background-color: #dcfce7;
    color: #166534;
    border-color: #86efac;
}

.permission-badge.direct-permission:hover {
    background-color: #bbf7d0;
}

.bulk-operations-section {
    background-color: #EFF6FF !important;
    margin-bottom: 1rem;
}

.selected-count {
    font-weight: 600;
    color: #000;
}

button#activateCarsBtn {
    background-color: #28a745;
    color: white;
    border: none;
    height: 35px;
}

button#deactivateCarsBtn{ 
    background-color: #ffc107;
    color: white;
    border: none;
    height: 35px;
}

button#deleteCarsBtn{
    background-color: #dc3545;
    color: white;
    border: none;
    height: 35px;
}

/* File input hiding for banner upload */
.file-input-hidden {

/* Social Link Toggle Switch Styles */
.social-link-toggle {
    width: 3rem !important;
    height: 1.5rem !important;
    margin: 0 !important;
}

.social-link-toggle:checked {
    background-color: #10b981 !important;
    border-color: #10b981 !important;
}

.social-link-toggle:focus {
    box-shadow: 0 0 0 0.2rem rgba(16, 185, 129, 0.25) !important;
}

/* Social Links Management Styles */
.social-links-container {
    background: white;
    border-radius: 0.5rem;
    box-shadow: var(--card-shadow);
    overflow: hidden;
}

.social-link-item {
    border-bottom: 1px solid #e5e7eb;
    padding: 1rem;
    transition: background-color 0.2s ease;
}

.social-link-item:hover {
    background-color: #f9fafb;
}

.social-link-item:last-child {
    border-bottom: none;
}

.social-link-info {
    flex: 1;
}

.social-link-title {
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.25rem;
}

.social-link-url {
    color: #6b7280;
    font-size: 0.875rem;
    word-break: break-all;
}

.social-link-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.social-link-toggle-container {
    margin-right: 0.5rem;
}
    position: absolute !important;
    left: -9999px !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.btn-send{
    background-color: #0F2A71;
    color: white;
    border: none;
    height: 30px;
    width: 60px;
}

.btn-send:hover{
    background-color: #0F2A71;
    color: white;
}

button#exportPromoCodeReport, button#exportRefundReport, button#exportCustomerReviewReport, button#exportVendorReviewReport {
    width: 100%;
}

/* span.badge.badge-status.badge-available {
    border-radius: 9999px;
    height: 27px;
    line-height: 17px;
    font-weight: 600;
    text-transform: unset;
}

span.badge.badge-status.badge-not-available {
    border-radius: 9999px;
    height: 27px; 
    line-height: 17px;
    font-weight: 600;
} */

/* Vendor Profile Form Validation Styles */
.form-control.is-invalid {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.form-control.is-invalid:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.invalid-feedback {
    display: block;
    width: 100%;
    margin-top: 0.25rem;
    font-size: 0.875em;
    color: #dc3545;
}

/* Vendor Profile Alert Styles */
.alert {
    border-radius: 0.5rem;
    border: none;
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
}

.alert-success {
    background-color: #d1fae5;
    color: #065f46;
}

.alert-danger {
    background-color: #fee2e2;
    color: #991b1b;
}

/* Vendor Profile Validation Styles */
.form-control.is-valid {
    border-color: #28a745;
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);
}

.form-control.is-valid:focus {
    border-color: #28a745;
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);
}

.error-message {
    display: block;
    width: 100%;
    margin-top: 0.25rem;
    font-size: 0.875em;
    color: #dc3545;
}

/* File upload preview styles */
.file-preview-container {
    margin-top: 0.5rem;
}

.file-preview-container img {
    max-width: 200px;
    max-height: 200px;
    border-radius: 8px;
    border: 1px solid #ddd;
    object-fit: cover;
}

/* Loading spinner for submit button */
.btn-primary-custom:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.fa-spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.policy-status-active {
    background: #0F172A;
    color: #F8FAFC;
}

.policy-status-inactive {
    background: #0F172A;
    color: #F8FAFC;
}

.policy-type-status {
    background: #E2E8F0;
    color: #020817;
}
/* ========================================
   USER MANAGEMENT STYLES
   ======================================== */
.user-management-container {
    max-width: 100%;
    margin: 0 auto;
}

.user-management-container .management-header {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--card-shadow);
    border: 1px solid #e5e7eb;
}

.user-management-container .management-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.user-management-container .management-subtitle {
    color: #6b7280;
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

.user-management-container .tab-container {
    display: flex;
    gap: 0.5rem;
    border-bottom: 2px solid #f3f4f6;
    padding-bottom: 0;
}

.user-management-container .tab-btn {
    background: none;
    border: none;
    padding: 1rem 1.5rem;
    font-weight: 600;
    color: #6b7280;
    border-radius: 8px 8px 0 0;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.user-management-container .tab-btn:hover {
    color: #374151;
    background-color: #f9fafb;
}

.user-management-container .tab-btn.active {
    color: #4f46e5;
    background-color: #f8fafc;
    border-bottom: 3px solid #4f46e5;
}

.user-management-container .tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 3px;
    background-color: #4f46e5;
    border-radius: 2px 2px 0 0;
}

.user-management-container .management-content {
    display: none;
    animation: fadeIn 0.3s ease-in-out;
}

.user-management-container .management-content.active {
    display: block;
}

.user-management-container .content-section {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: var(--card-shadow);
    border: 1px solid #e5e7eb;
}

/* User List Styles */
.user-management-container .user-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.user-management-container .user-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    background: #f9fafb;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
}

.user-management-container .user-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--card-shadow-hover);
    border-color: #d1d5db;
}

.user-management-container .user-info {
    flex: 1;
}

.user-management-container .user-details {
    flex: 1;
}

.user-management-container .user-details {
    flex: 1;
}

.user-management-container .user-name {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.user-management-container .user-meta {
    margin-bottom: 0.75rem;
}

.user-management-container .role-status-group {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.user-management-container .user-role-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0.75rem;
    background: #4289F733;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 500;
    color: #000000;
}

.user-management-container .user-role-badge i {
    font-size: 0.5rem;
    color: #6c757d;
}

.user-management-container .user-status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.user-management-container .user-status-badge.active {
    background: #4289F7;
    color: #fff;
}

.user-management-container .user-status-badge.inactive {
    background: #EF4444;
    color: #fff;
}

.user-management-container .user-contact {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.user-management-container .contact-item {
    font-size: 0.875rem;
    color: #6c757d;
}

.user-management-container .user-actions {
    display: flex;
    gap: 0.5rem;
}

.user-management-container .action-btn {
    padding: 1.5rem;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    background: #f8f9fa;
    color: #000000;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.875rem;
    min-width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 400;
}



.user-management-container .action-btn:hover {
    background: #e9ecef;
    /* color: #495057; */
    transform: translateY(-1px);
}

.user-management-container .action-btn.activate {
    /* background: #d1fae5; */
    /* color: #065f46; */
    min-width: 100px;
}

.user-management-container .action-btn.activate:hover {
    /* background: #a7f3d0; */
    min-width: 100px;
}

.user-management-container .action-btn.deactivate {
    /* background: #fef3c7; */
    /* color: #92400e; */
    min-width: 100px;
}

.user-management-container .action-btn.deactivate:hover {
    /* background: #fde68a; */
    min-width: 100px;
}



/* Role List Styles */
.user-management-container .role-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.user-management-container .role-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    background: #f9fafb;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
}

.user-management-container .role-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--card-shadow-hover);
    border-color: #d1d5db;
}

.user-management-container .role-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
}

.user-management-container .role-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.user-management-container .role-details {
    flex: 1;
}

.user-management-container .role-name {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.user-management-container .role-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.user-management-container .role-users,
.user-management-container .role-permissions {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
    background-color: #e0e7ff;
    color: #3730a3;
}

.user-management-container .role-description {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.875rem;
    color: #6b7280;
}

.user-management-container .role-actions {
    display: flex;
    gap: 0.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .user-management-container .tab-container {
        flex-direction: column;
        gap: 0.25rem;
    }
    
    .user-management-container .tab-btn {
        border-radius: 8px;
        text-align: left;
    }
    
    .user-management-container .tab-btn.active::after {
        display: none;
    }
    
    .user-management-container .user-item,
    .user-management-container .role-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .user-management-container .user-info,
    .user-management-container .role-info {
        width: 100%;
    }
    
    .user-management-container .user-actions,
    .user-management-container .role-actions {
        width: 100%;
        justify-content: flex-end;
    }
    
    .user-management-container .user-contact,
    .user-management-container .role-description {
        flex-direction: column;
        gap: 0.5rem;
    }
}

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

.fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

/* Edit User Tab Styles */
.tab-navigation {
    display: flex;
    gap: 0.5rem;
    border-bottom: 2px solid #e9ecef;
    margin-bottom: 2rem;
}

.tab-navigation .tab-btn {
    background: none;
    border: none;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    color: #6c757d;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    cursor: pointer;
}

.tab-navigation .tab-btn:hover {
    color: #4f46e5;
    background-color: rgba(79, 70, 229, 0.05);
}

.tab-navigation .tab-btn.active {
    color: #4f46e5;
    border-bottom-color: #4f46e5;
    background-color: rgba(79, 70, 229, 0.05);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* User Permissions Styles */
.user-permissions-list {
    max-height: 500px;
    overflow-y: auto;
}

.module-access-section {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1.5rem;
    border: 1px solid #e9ecef;
}

.module-title {
    font-size: 1rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.permission-checkbox {
    margin-right: 0.5rem;
}

.form-check-label {
    font-size: 0.875rem;
    color: #495057;
    cursor: pointer;
}

.select-module-permissions {
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
}

.select-module-permissions.active {
    background-color: #4f46e5;
    color: white;
    border-color: #4f46e5;
}

#selectAllPermissions.active {
    background-color: #4f46e5;
    color: white;
    border-color: #4f46e5;
}

/* Responsive Design for Edit User */
@media (max-width: 768px) {
    .tab-navigation {
        flex-direction: column;
        gap: 0.25rem;
    }
    
    .tab-navigation .tab-btn {
        border-radius: 8px;
        text-align: left;
        border-bottom: none;
    }
    
    .tab-navigation .tab-btn.active {
        border-bottom: none;
        background-color: #4f46e5;
        color: white;
    }
    
    .module-access-section {
        padding: 1rem;
    }
    
    .module-access-section .row {
        margin: 0;
    }
    
    .module-access-section .col-md-6 {
        padding: 0.25rem;
    }
}

.required-field::after {
    content: " *";
    color: #dc3545;
    font-weight: bold;
}

.form-label.required::after {
    content: " *";
    color: #dc3545;
    font-weight: bold;
}
.form-control.is-invalid {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

/* Car Setup Section Styles */
.car-setup-section {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.car-setup-section:last-child {
    margin-bottom: 0;
}

.section-header {
    background: #e9ecef;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #dee2e6;
    display: flex;
    justify-content: normal;
    align-items: center;
    gap: 0.75rem;
}

.section-icon {
    color: #6c757d;
    font-size: 1.125rem;
    width: 20px;
    text-align: center;
}

.section-title {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 600;
    color: #495057;
}

.section-content {
    padding: 1.5rem;
    background: white;
}

/* Radio Group Styles */
.radio-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.radio-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.radio-item input[type="radio"] {
    width: 16px;
    height: 16px;
    margin: 0;
    cursor: pointer;
}

.radio-item input[type="radio"]:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

.radio-item label {
    margin: 0;
    font-size: 0.875rem;
    color: #374151;
    cursor: pointer;
}

.radio-item input[type="radio"]:disabled + label {
    cursor: not-allowed;
    opacity: 0.6;
}

/* Feature Item Styles */
.feature-item {
    margin-bottom: 1rem;
}

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

.feature-item .form-label {
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.5rem;
}

/* Protection Card Styles */
.protection-card {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 1.25rem;
    height: 100%;
}

.protection-title {
    font-size: 1rem;
    font-weight: 600;
    color: #495057;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e9ecef;
}

.protection-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.protection-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.protection-item input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin: 0;
    cursor: pointer;
}

.protection-item input[type="checkbox"]:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

.protection-item label {
    margin: 0;
    font-size: 0.875rem;
    color: #374151;
    cursor: pointer;
}

.protection-item input[type="checkbox"]:disabled + label {
    cursor: not-allowed;
    opacity: 0.6;
}

/* Disabled Form Control Styles */
.form-control:disabled {
    background-color: #f8f9fa;
    color: #6c757d;
    cursor: not-allowed;
    opacity: 0.8;
}

.form-control:disabled::placeholder {
    color: #adb5bd;
}

/* Responsive adjustments for car setup sections */
@media (max-width: 768px) {
    .car-setup-section {
        margin-bottom: 1rem;
    }
    
    .section-header {
        padding: 0.75rem 1rem;
    }
    
    .section-content {
        padding: 1rem;
    }
    
    .protection-card {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    .radio-group {
        gap: 0.25rem;
    }
    
    .protection-options {
        gap: 0.5rem;
    }
}

/* Small amount note under inputs */
.amount-note {
    margin-top: 6px;
    font-size: 0.8rem;
    color: #0F2A71;
    background: #EEF3FF;
    display: inline-block;
    padding: 4px 8px;
    border-radius: 6px;
    border: 1px solid #DFE8FF;
}

/* Car Management Styles */
.car-management-container {
    background: white;
    border-radius: 1rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    overflow: hidden;
}

.car-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.car-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 0.75rem;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.car-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.car-info {
    flex: 1;
}

.car-details {
    display: flex;
    flex-direction: column;
}

.car-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.car-status-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.car-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
    margin: 15.5px 0px 0px 0px;
}

.car-category-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0.75rem;
    background: #e3f2fd;
    color: #1976d2;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
}

.car-status-badge {
    padding: 0.375rem 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
}

.car-status-badge.available {
    background: #d4edda;
    color: #155724;
}

.car-status-badge.not-available {
    background: #f8d7da;
    color: #721c24;
}

.car-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.spec-item {
    font-size: 0.875rem;
    color: #6c757d;
    background: white;
    padding: 0.25rem 0.5rem;
    border-radius: 0.375rem;
    border: 1px solid #dee2e6;
}

.car-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

/* .car-actions .action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border: none;
    border-radius: 0.5rem;
    background: #f8f9fa;
    color: #6c757d;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
} */

.car-actions .action-btn:hover {
    background: #e9ecef;
    color: #495057;
    transform: translateY(-1px);
}

.car-actions .action-btn:active {
    transform: translateY(0);
}

/* Maintenance Styles */
.maintenance-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.maintenance-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 0.75rem;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.maintenance-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.maintenance-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
}

.maintenance-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: 0.75rem;
    font-size: 1.25rem;
    color: white;
}

.maintenance-icon.oil-change {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.maintenance-icon.inspection {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.maintenance-icon.repair {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.maintenance-details {
    flex: 1;
}

.maintenance-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
    margin: 0 0 0.5rem 0;
}

.maintenance-meta {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.maintenance-car {
    font-size: 0.875rem;
    color: #6c757d;
}

.maintenance-date {
    font-size: 0.875rem;
    color: #dc3545;
    font-weight: 500;
}

.maintenance-actions {
    display: flex;
    gap: 0.5rem;
}

.maintenance-actions .action-btn {
    background-color: #0F172A;
    color: white;
    height: 44px;
    width: 94px;
    border-radius: 6px;
}

/* Calendar Styles */
.calendar-placeholder {
    background: #f8f9fa;
    border-radius: 0.75rem;
    padding: 2rem;
    text-align: center;
}

.calendar-grid {
    max-width: 600px;
    margin: 0 auto;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.calendar-nav-btn {
    background: none;
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    padding: 0.5rem 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.calendar-nav-btn:hover {
    background: #e9ecef;
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.5rem;
}

.day-header {
    padding: 0.75rem;
    background: #e9ecef;
    border-radius: 0.5rem;
    font-weight: 600;
    text-align: center;
}

/* Responsive Design */
@media (max-width: 768px) {
    .car-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .car-actions {
        align-self: flex-end;
    }
    
    .car-specs {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .maintenance-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .maintenance-actions {
        align-self: flex-end;
    }
    
    .car-status-group {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

/* Tab Content Styles */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.tab-navigation {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid #dee2e6;
    padding-bottom: 1rem;
}

/* Car Management Styles - Table Format */
.car-management-container {
    background: white;
    border-radius: 1rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    overflow: hidden;
}

/* Badge styles for car status */
.badge-status {
    padding: 0.375rem 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.65rem;
    font-weight: 500;
}

.badge-available {
    background: #d4edda;
    color: #155724;
}

.badge-not-available {
    background: #f8d7da;
    color: #721c24;
}

/* Task Management Styles */

/* Contract Generator Styles */
.contract-generator {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    margin-bottom: 2rem;
}

.generator-title {
    color: #2c3e50;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.generator-subtitle {
    color: #7f8c8d;
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

.contract-form {
    margin-bottom: 2rem;
}

.form-section {
    margin-bottom: 2rem;
}

.form-section-title {
    color: #34495e;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #ecf0f1;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.form-col {
    display: flex;
    flex-direction: column;
}

.form-label {
    color: #2c3e50;
    font-weight: 500;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.form-select,
.form-control {
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 0.75rem;
    font-size: 0.9rem;
    transition: border-color 0.3s ease;
}

.form-select:focus,
.form-control:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

.form-select.is-invalid,
.form-control.is-invalid {
    border-color: #e74c3c;
}

.form-select.is-valid,
.form-control.is-valid {
    border-color: #27ae60;
}

.error-message {
    color: #e74c3c;
    font-size: 0.8rem;
    margin-top: 0.25rem;
}

.form-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.btn-primary-custom,
.btn-secondary {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    font-size: 0.9rem;
}

.btn-primary-custom {
    background: #3498db;
    color: white;
}

.btn-primary-custom:hover {
    background: #2980b9;
    transform: translateY(-1px);
}

.btn-primary-custom:disabled {
    background: #bdc3c7;
    cursor: not-allowed;
    transform: none;
}

.btn-secondary {
    background: #ecf0f1;
    color: #2c3e50;
}

.btn-secondary:hover {
    background: #d5dbdb;
    transform: translateY(-1px);
}

/* Contract Preview Styles */
.contract-preview {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 2rem;
    margin-top: 2rem;
}

.preview-title {
    color: #2c3e50;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.preview-subtitle {
    color: #7f8c8d;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.contract-document {
    background: white;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.contract-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #ecf0f1;
}

.contract-header h2 {
    color: #2c3e50;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.contract-header p {
    color: #7f8c8d;
    font-size: 1rem;
}

.contract-content {
    line-height: 1.6;
}

.contract-section {
    margin-bottom: 2rem;
}

.contract-section h4 {
    color: #2c3e50;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #ecf0f1;
}

.section-column {
    margin-bottom: 1.5rem;
}

.contract-section p {
    margin-bottom: 0.5rem;
    color: #34495e;
}

.contract-section strong {
    color: #2c3e50;
    font-weight: 600;
}

.contract-section ul {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.contract-section li {
    margin-bottom: 0.5rem;
    color: #34495e;
}

.contract-signatures {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid #ecf0f1;
}

.signature-section {
    text-align: center;
}

.signature-section h4 {
    color: #2c3e50;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.signature-line {
    height: 2px;
    background: #34495e;
    margin: 1rem 0;
}

.signature-section p {
    color: #7f8c8d;
    background: #E2E8F0;
    color: #020817;
}

/* Car Cards Styles */
.car-cards-container {
    margin-top: 2rem;
}

.car-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.car-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.car-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.car-title h5 {
    color: #1e293b;
    font-weight: 600;
    margin: 0;
    font-size: 17px;
}

.car-code {
    color: #64748b;
    font-size: 0.85rem;
    font-weight: 500;
}


.car-card-body {
    flex-grow: 1;
}
.detail-row {
    align-items: center;
  
}

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

.detail-label {
    color: #64748b;
    font-weight: 500;
    font-size: 14.9px;
}

.detail-value {
    font-size: 14.9px;
    text-align: right;
}

.car-card-footer {
    padding-top: 0.5rem;
}

.car-actions {
    display: flex;
    justify-content: start;
    gap: 0.75rem;
}

.car-actions .action-btn {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.car-actions .action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Status Badge Styles */
.badge-status {
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-available {
    background: #0F172A;
    color: #ffffff;
}

.badge-rented {
    background: #F1F5F9;
    color: #0F172A;
}

.badge-maintenance {
    background: #EF4444;
    color: #ffffff;
}

.badge-not-available {
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #d1d5db;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .car-card-header {
        padding: 1rem;
    }
    
    .car-card-body {
        padding: 0.75rem 1rem;
    }
    
    .car-card-footer {
        padding: 0.75rem 1rem;
    }
    
    .detail-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
    
    .detail-value {
        text-align: left;
    }
}

/* Account Management Styles */
.account-management-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.management-content {
    padding: 2rem;
}

/* Pricing Rules Styles */
.pricing-header {
    margin-bottom: 2rem;
}

.pricing-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.pricing-subtitle {
    color: #64748b;
    margin-bottom: 0;
}

.pricing-categories {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 1rem;
}

.pricing-category-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    overflow: hidden;
    border: 1px solid #e2e8f0;
}

.pricing-category-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.category-title {
    color: #1e293b;
    font-weight: 700;
    margin: 0;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.category-actions {
    display: flex;
    gap: 0.5rem;
}

.edit-pricing-btn,
.delete-pricing-btn {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    background: #f8fafc;
    color: #64748b;
}

.edit-pricing-btn:hover {
    background: #e2e8f0;
    color: #4f46e5;
}

.delete-pricing-btn:hover {
    background: #fef2f2;
    color: #dc2626;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.pricing-item {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem;
    border-radius: 8px;
}

.pricing-item label {
    color: #64748b;
    font-weight: 500;
    font-size: 0.9rem;
    margin: 0;
}

/* Loader Styles */
.loader-small {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #7f8c8d;
    font-size: 0.8rem;
    margin-top: 0.5rem;
}

.loader-small i {
    color: #3498db;
}

/* Responsive Design */
@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .form-actions {
        flex-direction: column;
    }

    .btn-primary-custom,
    .btn-secondary {
        width: 100%;
        justify-content: center;
    }

    .contract-signatures {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .contract-generator {
        padding: 1rem;
    }

    .contract-preview {
        padding: 1rem;
    }

    .contract-document {
        padding: 1rem;
    }
}

/* Tab Content Styles */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Additional Utility Classes */
.text-center {
    text-align: center;
}

.text-danger {
    color: #e74c3c;
}

.text-success {
    color: #27ae60;
}

.mt-1 {
    margin-top: 0.25rem;
}

.mb-2 {
    margin-bottom: 0.5rem;
}

.p-4 {
    padding: 1rem;
}

/* Animation for loading states */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.fa-spin {
    animation: spin 1s linear infinite;
}

/* Inspection Form Styles */
.inspection-checklist {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 1rem;
}

.checklist-group h5 {
    color: #2c3e50;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #ecf0f1;
}

.checklist-items {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.checklist-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.checklist-item:hover {
    background-color: #f8f9fa;
}

.checklist-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.checklist-item span {
    color: #34495e;
    font-size: 0.9rem;
}

/* Photo Upload Styles */
.photo-upload-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 1rem;
}

.photo-upload-item {
    position: relative;
    border: 2px dashed #e0e0e0;
    border-radius: 12px;
    padding: 30px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
}

.photo-upload-item:hover {
    border-color: #007bff;
    background: #f8f9ff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.15);
}

.photo-upload-item.drag-over {
    border-color: #007bff;
    background: #e3f2fd;
}

.photo-upload-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}

.upload-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: #6c757d;
    transition: all 0.3s ease;
    pointer-events: none;
}

.upload-placeholder i {
    font-size: 2.5rem;
    color: #6c757d;
    margin-bottom: 8px;
}

.upload-placeholder span {
    font-size: 0.95rem;
    font-weight: 500;
    color: #495057;
    text-align: center;
}

.photo-upload-item.has-image .upload-placeholder {
    color: #28a745;
}

.photo-upload-item.has-image .upload-placeholder i {
    color: #28a745;
}

.photo-preview-img {
    max-width: 100%;
    max-height: 120px;
    border-radius: 4px;
    object-fit: cover;
}

.photo-preview {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
}

/* Responsive Design for Inspection */
@media (max-width: 768px) {
    .inspection-checklist {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .photo-upload-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .photo-upload-item {
        min-height: 100px;
        padding: 20px 15px;
    }

    .upload-placeholder i {
        font-size: 2rem;
    }

    .upload-placeholder span {
        font-size: 0.85rem;
    }
}

/* Force three-column layout for inspection checklist */
.inspection-checklist {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 2rem;
    margin-bottom: 2rem;
    width: 100%;
}

.inspection-checklist .checklist-column {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.75rem;
    min-width: 0;
    flex: 1;
}

/* Additional specificity to override any conflicting styles */
.form-section .inspection-checklist {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
}

.form-section .inspection-checklist .checklist-column {
    display: flex !important;
    flex-direction: column !important;
}

/* Task View and Edit Page Styles */
.task-type-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-weight: 500;
    font-size: 0.875rem;
}

.task-type-badge.contract-icon {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.task-type-badge.inspection-icon {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
}

.task-type-badge.clearance-icon {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
}

.info-group {
    margin-bottom: 1rem;
}

.info-label {
    display: block;
    font-weight: 600;
    color: #6b7280;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.info-value {
    color: #111827;
    font-weight: 500;
    font-size: 1rem;
}

.status-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status-badge.pending {
    background: #fef3c7;
    color: #92400e;
}

.status-badge.completed {
    background: #d1fae5;
    color: #065f46;
}

.status-badge.in-progress {
    background: rgba(79, 70, 229, 0.1);
    color: var(--primary-blue);
}

.status-badge.danger {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger-red);
}

.status-badge.secondary {
    background: rgba(107, 114, 128, 0.1);
    color: #6b7280;
}
.pricing-value {
    color: #1e293b;
    font-weight: 700;
    font-size: 1rem;
    margin: 0;
}

/* Badge Styles */
.badge {
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-active {
    background: #0F172A;
    color: #F8FAFC;
}

.badge-inactive {
    background: #fef2f2;
    color: #991b1b;
}

.badge-new {
    background: #dbeafe;
    color: #1e40af;
}

.priority-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.priority-badge.low {
    background: #d1fae5;
    color: #065f46;
}

.priority-badge.medium {
    background: #fef3c7;
    color: #92400e;
}

.priority-badge.high {
    background: #fee2e2;
    color: #991b1b;
}

.timeline {
    position: relative;
    padding-left: 2rem;
}

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

.timeline-marker {
    position: absolute;
    left: -2rem;
    top: 0.25rem;
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 50%;
}

.timeline-content h6 {
    margin: 0;
    font-weight: 600;
    color: #111827;
}

.timeline-content p {
    margin: 0.25rem 0 0 0;
}

.stats-grid {
    display: grid;
    gap: 1rem;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #f9fafb;
    border-radius: 0.5rem;
}

.stat-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
}

.stat-content {
    flex: 1;
}

.stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
    line-height: 1;
}

.stat-label {
    font-size: 0.875rem;
    color: #6b7280;
    margin-top: 0.25rem;
}

.checklist-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    background: #f9fafb;
    border-radius: 0.375rem;
}

.checklist-item i {
    font-size: 1rem;
}

.inspection-photo {
    text-align: center;
}

.inspection-photo img {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.photo-caption {
    text-align: center;
}

.task-summary {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid #e5e7eb;
}

.summary-item:last-child {
    border-bottom: none;
}

.summary-label {
    font-weight: 600;
    color: #6b7280;
    font-size: 0.875rem;
}

.summary-value {
    font-weight: 500;
    color: #111827;
}

.status-display {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.status-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid #e5e7eb;
}

.status-item:last-child {
    border-bottom: none;
}

.status-label {
    font-weight: 600;
}

/* Modal Styles for Pricing */
.pricing-form {
    padding: 1rem;
}

.pricing-form .form-group {
    margin-bottom: 1rem;
}

.pricing-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.pricing-form .form-col {
    display: flex;
    flex-direction: column;
}

.pricing-form .form-label {
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.5rem;
}

.pricing-form .form-control,
.pricing-form .form-select {
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    font-size: 0.9rem;
    transition: border-color 0.3s ease;
}

.pricing-form .form-control:focus,
.pricing-form .form-select:focus {
    outline: none;
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

/* Pagination Styles */
.pagination-container {
    margin-top: 2rem;
    padding: 1rem 0;
    border-top: 1px solid #e2e8f0;
}

.pagination {
    margin: 0;
    display: flex;
    list-style: none;
    gap: 0.5rem;
}

.page-item {
    margin: 0;
}

.page-link {
    padding: 0.5rem 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    color: #374151;
    text-decoration: none;
    transition: all 0.2s;
}

.page-link:hover {
    background-color: #f3f4f6;
    border-color: #9ca3af;
}

.page-item.active .page-link {
    background-color: #4f46e5;
    border-color: #4f46e5;
    color: white;
}

/* Form Validation Styles */
.form-control.is-invalid,
.form-select.is-invalid {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.invalid-feedback {
    display: block;
    width: 100%;
    margin-top: 0.25rem;
    font-size: 0.875rem;
    color: #dc3545;
}

.form-control.is-valid,
.form-select.is-valid {
    border-color: #198754;
    box-shadow: 0 0 0 0.2rem rgba(25, 135, 84, 0.25);
}

.valid-feedback {
    display: block;
    width: 100%;
    margin-top: 0.25rem;
    font-size: 0.875rem;
    color: #198754;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .pricing-categories {
        grid-template-columns: 1fr;
    }
    
    .pricing-form .form-row {
        grid-template-columns: 1fr;
    }
    
    .category-header {
        padding: 1rem;
    }
    
    .pricing-grid {
        padding: 1rem;
    }
}

/* Discount Management Styles */
.discount-list {
    padding: 0 16px;
}

.discount-item {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: box-shadow 0.2s ease;
}

.discount-item:hover {
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.discount-item h4 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
}

.discount-item .badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    margin-left: 8px;
}

.discount-item .badge-code {
    background: #f3f4f6;
    color: #6b7280;
}

.discount-item .badge-active {
    background: #dbeafe;
    color: #1d4ed8;
}

.discount-item .badge-inactive {
    background: #f3f4f6;
    color: #6b7280;
}

.discount-item .discount-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin: 12px 0;
}

.discount-item .discount-info span {
    color: #6b7280;
    font-size: 14px;
}

.discount-item .discount-info strong {
    color: #1f2937;
    font-weight: 600;
    margin-left: 8px;
}

.discount-item .discount-description {
    color: #6b7280;
    font-size: 14px;
    margin: 0;
    line-height: 1.5;
}

.discount-item .discount-actions {
    display: flex;
    gap: 8px;
    margin-left: 16px;
}

.discount-item .action-btn {
    background: white;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    padding: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
}

.discount-item .action-btn:hover {
    border-color: #9ca3af;
    background-color: #f9fafb;
}

.discount-item .action-btn.delete-btn {
    border-color: #fecaca;
}

.discount-item .action-btn.delete-btn:hover {
    border-color: #f87171;
    background-color: #fef2f2;
}

.discount-item .action-btn i {
    font-size: 14px;
}

.discount-item .action-btn.edit-btn i {
    color: #6b7280;
}

.discount-item .action-btn.delete-btn i {
    color: #ef4444;
}

/* Invoice Management Styles */
.invoice-search-container {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.invoice-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    overflow: hidden;
    max-width: 800px;
}

.invoice-header {
    background: #f8f9fa;
    padding: 20px;
    border-bottom: 1px solid #e9ecef;
}

.invoice-title {
    color: #1f2937;
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
}

.invoice-content {
    padding: 20px;
}

.invoice-details {
    margin-bottom: 20px;
}

.invoice-details p {
    margin-bottom: 8px;
    color: #6b7280;
    font-size: 14px;
}

.invoice-details strong {
    color: #1f2937;
    font-weight: 600;
}

.invoice-total {
    font-size: 16px !important;
    color: #1f2937 !important;
    font-weight: 600;
    margin-top: 15px !important;
    padding-top: 15px;
    border-top: 1px solid #e9ecef;
}

.invoice-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-start;
}

.invoice-actions .btn {
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 6px;
}

.invoice-actions .btn-primary {
    background-color: #0F2A71;
    border-color: #0F2A71;
}

.invoice-actions .btn-primary:hover {
    background-color: #0a1f5a;
    border-color: #0a1f5a;
}

.invoice-actions .btn-outline-primary {
    color: #0F2A71;
    border-color: #0F2A71;
}

.invoice-actions .btn-outline-primary:hover {
    background-color: #0F2A71;
    border-color: #0F2A71;
}

/* Loading and Error States */
#invoiceLoading,
#invoiceError {
    background: white;
    border-radius: 8px;
    padding: 40px 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    max-width: 800px;
    margin: 0 auto;
}

#invoiceError i {
    color: #f59e0b;
}

#invoiceError h5 {
    color: #f59e0b;
    margin-top: 15px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .invoice-actions {
        flex-direction: column;
    }
    
    .invoice-actions .btn {
        width: 100%;
    }
}

/* Reports & Analytics Styles */
.reports-container {
    margin: 0 10px;
}

.reports-header {
    margin-bottom: 30px;
}

.reports-title {
    font-size: 2rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 8px;
}

.reports-subtitle {
    color: #6b7280;
    font-size: 1rem;
}

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

.metric-card {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.metric-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.metric-card .metric-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.metric-card .metric-icon i {
    color: white;
    font-size: 20px;
}

.metric-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: #6b7280;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.metric-value {
    font-size: 2rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 8px;
}

.metric-change {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.metric-change.positive {
    color: #059669;
}

.metric-change.negative {
    color: #dc2626;
}

.metric-breakdown {
    margin-top: 8px;
}

.metric-breakdown small {
    font-size: 0.75rem;
    color: #9ca3af;
}

.charts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.chart-card {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
}

.chart-header {
    margin-bottom: 20px;
}

.chart-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 4px;
}

.chart-subtitle {
    color: #6b7280;
    font-size: 0.875rem;
}

.chart-container {
    height: 300px;
    position: relative;
}

.content-section {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
    margin-bottom: 24px;
}

.section-header {
    margin-bottom: 24px;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-subtitle {
    color: #6b7280;
    font-size: 1rem;
}

.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.review-item {
    background: #f9fafb;
    border-radius: 8px;
    padding: 16px;
    border: 1px solid #e5e7eb;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.reviewer-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.reviewer-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.875rem;
}

.reviewer-name {
    font-size: 1rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 4px;
}

.review-rating {
    display: flex;
    gap: 2px;
}

.review-rating i {
    color: #fbbf24;
    font-size: 0.875rem;
}

.review-date {
    color: #6b7280;
    font-size: 0.875rem;
}

.status-value {
    font-weight: 500;
    color: #111827;
}
.review-text {
    color: #374151;
    line-height: 1.5;
    margin: 0;
}

/* Responsive Design for Reports */
@media (max-width: 768px) {
    .reports-container {
        padding: 16px;
    }
    
    .metrics-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .charts-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .chart-container {
        height: 250px;
    }
    
    .review-header {
        flex-direction: column;
        gap: 8px;
    }
}

/* Status Badge Styles */
.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-pending {
    background-color: #fef3c7;
    color: #92400e;
}

.status-confirmed {
    background-color: #dbeafe;
    color: #1e40af;
}

.status-active {
    background-color: #d1fae5;
    color: #065f46;
}

.status-in-progress {
    background-color: #dbeafe;
    color: #1e40af;
}

.status-completed {
    background-color: #d1fae5;
    color: #065f46;
}

.status-cancelled {
    background-color: #fee2e2;
    color: #991b1b;
}

/* Chart Styles for No Data */
.chart-no-data {
    opacity: 0.6;
}

.chart-no-data .chart-container {
    background-color: #f8fafc;
}

/* Chart Container Styles */
.chart-container {
    position: relative;
    height: 300px;
    width: 100%;
}

.chart-container canvas {
    width: 100% !important;
    height: 100% !important;
}

.form-check-input.is-valid, .was-validated .form-check-input:valid {
    border-color: #0d6efd !important;
}

.form-check-input.is-valid:checked, .was-validated .form-check-input:valid:checked {
    background-color: #0d6efd !important;
    border-color: #0d6efd !important;
}

.form-check-input.is-valid~.form-check-label, .was-validated .form-check-input:valid~.form-check-label {
    color: #374151 !important;
}

span.task-status.task-type-badge {
    background: linear-gradient(135deg, #6c757d, #adb5bd); /* soft gradient */
    border-radius: 20px; /* pill shape */
    font-size: 12px;
    font-weight: 600;
    color: #fff; /* white text for contrast */
    padding: 5px 15px; /* spacing inside */
    display: inline-block;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1); /* subtle shadow */
    letter-spacing: 0.3px; /* improves readability */
    text-transform: capitalize; /* neat text style */
    transition: all 0.3s ease; /* smooth hover */
}

span.task-status.task-type-badge:hover {
    background: linear-gradient(135deg, #495057, #868e96); /* darker on hover */
    transform: scale(1.05); /* slight zoom */
}

.no-tasks-message {
    text-align: center;
    padding: 40px 20px;
    background: #f8f9fa;
    border: 2px dashed #ced4da;
    border-radius: 16px;
    color: #495057;
    max-width: 500px;
    margin: 40px auto;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.no-tasks-message:hover {
    border-color: #6c63ff; /* subtle hover effect */
    box-shadow: 0 6px 16px rgba(108, 99, 255, 0.15);
}

.no-tasks-icon {
    font-size: 50px;
    color: #6c63ff; /* accent color */
    margin-bottom: 15px;
    animation: bounce 1.5s infinite;
}

.no-tasks-message h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #343a40;
}

.no-tasks-message p {
    font-size: 14px;
    color: #6c757d;
    margin: 0;
}

/* Simple bounce animation for the icon */
@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-6px);
    }
}

.document-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
    margin-top: 20px;
}

.doc-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    background: transparent;
    color: #212529;
    padding: 10px 18px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    min-width: 400px; /* slightly wider for spacing */
    border: 1px solid #a9a8a8a6;
    background: linear-gradient(135deg, rgba(200,200,200,0.35), rgba(250,250,250,0.15));
}

.doc-btn i.fa-file-pdf {
    font-size: 18px;
    color: #dc3545; /* red PDF icon */
}

.doc-btn span {
    flex: 1;
    text-align: center; /* centers text between icons */
}

.doc-btn .download-icon {
    font-size: 16px;
    color: #6c757d; /* neutral gray */
}

.doc-btn:hover {
    background: rgba(220, 53, 69, 0.05);
    border-color: #dc3545;
    transform: translateY(-2px);
    box-shadow: 0 3px 6px rgba(0,0,0,0.08);
}

/* Empty state */
.no-documents {
    background: #f8f9fa;
    border: 1px dashed #ced4da;
    padding: 12px 16px;
    text-align: center;
    font-size: 14px;
    border-radius: 8px;
    color: #6c757d;
}

.readonly-field {
    background-color: #f5f5f5; /* light gray */
    color: #6c757d;           /* gray text */
    cursor: not-allowed;
}

.readonly-field:focus {
    background-color: #f5f5f5; /* keep gray on focus */
    color: #6c757d;
    box-shadow: none;           /* remove focus outline */
}

tr.car-listing-table-row td {
    font-size:14px
}



