:root {
    --primary: #4361ee;
    --primary-light: #4895ef;
    --secondary: #3f37c9;
    --accent: #f72585;
    --light: #f8f9fa;
    --light-gray: #e9ecef;
    --medium-gray: #adb5bd;
    --dark: #212529;
    --success: #4cc9f0;
    --warning: #f8961e;
    --danger: #f94144;
    --border-radius: 12px;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f5f7fb;
    color: var(--dark);
    display: flex;
    min-height: 100vh;
}

/* Side Panel */
.side-panel {
    width: 260px;
    background: white;
    box-shadow: var(--shadow);
    padding: 1.5rem 1rem;
    display: flex;
    flex-direction: column;
    z-index: 10;
    transition: var(--transition);
}

.logo {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
    padding: 0 0.5rem;
}

.logo i {
    font-size: 1.8rem;
    color: var(--primary);
    margin-right: 0.75rem;
}

.logo h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark);
}

.nav-menu {
    flex: 1;
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    margin-bottom: 0.5rem;
    border-radius: var(--border-radius);
    color: var(--dark);
    text-decoration: none;
    transition: var(--transition);
}

.nav-item:hover, .nav-item.active {
    background-color: var(--primary-light);
    color: white;
}

.nav-item i {
    margin-right: 0.75rem;
    font-size: 1.1rem;
}

.user-profile {
    display: flex;
    align-items: center;
    padding: 1rem 0.5rem;
    border-top: 1px solid var(--light-gray);
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    margin-right: 0.75rem;
}

/* Main Content */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Header */
.header {
    background: white;
    padding: 1rem 2rem;
    box-shadow: var(--shadow);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.search-bar {
    display: flex;
    align-items: center;
    background: var(--light);
    border-radius: 50px;
    padding: 0.5rem 1rem;
    width: 300px;
}

.search-bar input {
    border: none;
    background: transparent;
    margin-left: 0.5rem;
    width: 100%;
    outline: none;
}

.header-actions {
    display: flex;
    align-items: center;
}

.header-action {
    margin-left: 1.5rem;
    font-size: 1.2rem;
    color: var(--medium-gray);
    cursor: pointer;
    transition: var(--transition);
}

.header-action:hover {
    color: var(--primary);
}

/* Dashboard Content */
.dashboard-content {
    flex: 1;
    padding: 1.5rem;
    overflow-y: auto;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.metric-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

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

.metric-title {
    font-size: 0.9rem;
    color: var(--medium-gray);
    margin-bottom: 0.5rem;
}

.metric-value {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

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

.metric-change.positive {
    color: var(--success);
}

.metric-change.negative {
    color: var(--danger);
}

/* Analytics Section */
.analytics-section {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.chart-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
}

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

.chart-title {
    font-size: 1.2rem;
    font-weight: 600;
}

.chart-actions {
    display: flex;
}

.chart-action {
    margin-left: 1rem;
    color: var(--medium-gray);
    cursor: pointer;
    transition: var(--transition);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

.chart-action.active {
    background: var(--primary);
    color: white;
}

.chart-action:hover {
    color: var(--primary);
}

.chart-container {
    height: 300px;
}

/* Booking Cards Section */
.booking-section {
    background: white;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    margin-bottom: 1.5rem;
}

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

.section-title {
    font-size: 1.2rem;
    font-weight: 600;
}

.filter-tabs {
    display: flex;
    background: var(--light);
    border-radius: 50px;
    padding: 0.25rem;
}

.filter-tab {
    padding: 0.5rem 1rem;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.9rem;
}

.filter-tab.active {
    background: var(--primary);
    color: white;
}

.date-filter {
    display: flex;
    align-items: center;
    background: var(--light);
    border-radius: var(--border-radius);
    padding: 0.5rem 1rem;
    cursor: pointer;
}

.date-filter i {
    margin-right: 0.5rem;
    color: var(--medium-gray);
}

/* Booking Cards */
.booking-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

.booking-card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: var(--transition);
    animation: fadeIn 0.5s ease;
    border-left: 4px solid var(--primary);
}

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

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

.booking-card-header {
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--light-gray);
    cursor: pointer;
}

.booking-id {
    font-weight: 600;
    color: var(--dark);
}

.booking-status {
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 500;
}

.status-pending {
    background: rgba(248, 150, 30, 0.1);
    color: var(--warning);
}

.status-confirmed {
    background: rgba(76, 201, 240, 0.1);
    color: var(--success);
}

.status-cancelled {
    background: rgba(249, 65, 68, 0.1);
    color: var(--danger);
}

.booking-card-content {
    padding: 1.5rem;
    max-height: 300px;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.booking-card-content.collapsed {
    max-height: 0;
    padding: 0 1.5rem;
}

.booking-info {
    display: flex;
    margin-bottom: 1rem;
}

.booking-info-item {
    flex: 1;
}

.info-label {
    font-size: 0.8rem;
    color: var(--medium-gray);
    margin-bottom: 0.25rem;
}

.info-value {
    font-weight: 500;
}

.booking-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 1rem;
}

.btn {
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    border: none;
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn i {
    margin-right: 0.5rem;
}

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

.btn-outline {
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
}

/* Driver Pickup List */
.driver-pickup-list {
    background: white;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    margin-bottom: 1.5rem;
}

.driver-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid var(--light-gray);
}

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

.driver-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    margin-right: 1rem;
}

.driver-info {
    flex: 1;
}

.driver-name {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.driver-details {
    font-size: 0.85rem;
    color: var(--medium-gray);
}

.driver-status {
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 500;
}

.status-available {
    background: rgba(76, 201, 240, 0.1);
    color: var(--success);
}

.status-busy {
    background: rgba(248, 150, 30, 0.1);
    color: var(--warning);
}

/* Footer */
.footer {
    background: white;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    text-align: center;
    color: var(--medium-gray);
    font-size: 0.9rem;
}

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

@media (max-width: 768px) {
    .side-panel {
        width: 70px;
        padding: 1rem 0.5rem;
    }
    
    .logo h1, .nav-item span, .user-info {
        display: none;
    }
    
    .nav-item {
        justify-content: center;
        padding: 0.75rem;
    }
    
    .nav-item i {
        margin-right: 0;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}
/* Bookings Section Specific Styles */
.booking-actions-bar {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.no-bookings {
    text-align: center;
    padding: 3rem;
    color: var(--medium-gray);
}

.no-bookings i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--light-gray);
}

.booking-details {
    border-top: 1px solid var(--light-gray);
    padding-top: 1rem;
    margin-top: 1rem;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 0;
    border-radius: var(--border-radius);
    width: 90%;
    max-width: 500px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--light-gray);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    color: var(--dark);
}

.close {
    color: var(--medium-gray);
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: var(--dark);
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--light-gray);
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

/* Calendar Styles */
.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.calendar-header button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    color: var(--primary);
    font-size: 1rem;
}

.calendar-grid {
    border: 1px solid var(--light-gray);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    background: var(--light);
    font-weight: 600;
    font-size: 0.8rem;
}

.calendar-weekdays div {
    padding: 0.75rem;
    text-align: center;
    border-right: 1px solid var(--light-gray);
}

.calendar-weekdays div:last-child {
    border-right: none;
}

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

.calendar-day {
    padding: 0.75rem;
    text-align: center;
    border-right: 1px solid var(--light-gray);
    border-bottom: 1px solid var(--light-gray);
    cursor: pointer;
    transition: var(--transition);
}

.calendar-day:hover {
    background: var(--light);
}

.calendar-day.empty {
    background: var(--light-gray);
    cursor: default;
}

.calendar-day.today {
    background: var(--primary-light);
    color: white;
}

.calendar-day.selected {
    background: var(--primary);
    color: white;
}

.calendar-day:nth-child(7n) {
    border-right: none;
}

.calendar-day:nth-child(n+29) {
    border-bottom: none;
}

/* Notification Styles */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    padding: 1rem 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    border-left: 4px solid var(--primary);
    z-index: 1001;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

.notification-success {
    border-left-color: var(--success);
}

.notification-error {
    border-left-color: var(--danger);
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.notification-content i {
    font-size: 1.2rem;
}

.notification-success .notification-content i {
    color: var(--success);
}

.notification-error .notification-content i {
    color: var(--danger);
}
/* Analytics Section Specific Styles */
.analytics-charts-row {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.analytics-tables {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.analytics-table-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
}

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

.analytics-table {
    width: 100%;
    border-collapse: collapse;
}

.analytics-table th,
.analytics-table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid var(--light-gray);
}

.analytics-table th {
    font-weight: 600;
    color: var(--medium-gray);
    font-size: 0.85rem;
    text-transform: uppercase;
}

.analytics-table tr:hover {
    background-color: var(--light);
}

.tour-name {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.tour-meta {
    font-size: 0.8rem;
    color: var(--medium-gray);
}

.rating-display {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: #f8961e;
    font-weight: 600;
}

.occupancy-bar {
    position: relative;
    background: var(--light-gray);
    border-radius: 10px;
    height: 20px;
    width: 100%;
    overflow: hidden;
}

.occupancy-fill {
    height: 100%;
    background: linear-gradient(90deg, #4cc9f0, #4361ee);
    border-radius: 10px;
    transition: width 0.3s ease;
}

.occupancy-bar span {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 0.7rem;
    font-weight: 600;
    color: white;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.trend {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0.5rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    width: fit-content;
}

.trend.positive {
    background: rgba(76, 201, 240, 0.1);
    color: var(--success);
}

.trend.negative {
    background: rgba(249, 65, 68, 0.1);
    color: var(--danger);
}

.trend.neutral {
    background: rgba(248, 150, 30, 0.1);
    color: var(--warning);
}

.growth {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-weight: 500;
}

.growth.positive {
    color: var(--success);
}

.growth.negative {
    color: var(--danger);
}

.target {
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
    width: fit-content;
}

.target.positive {
    background: rgba(76, 201, 240, 0.1);
    color: var(--success);
}

.target.negative {
    background: rgba(249, 65, 68, 0.1);
    color: var(--danger);
}

/* KPI Summary */
.kpi-summary {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.kpi-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.kpi-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4361ee, #4cc9f0);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

.kpi-content {
    flex: 1;
}

.kpi-value {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.kpi-label {
    font-size: 0.9rem;
    color: var(--medium-gray);
}

/* Date Range Modal Styles */
.date-range-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.date-option {
    padding: 1rem;
    border: 2px solid var(--light-gray);
    border-radius: var(--border-radius);
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
}

.date-option:hover {
    border-color: var(--primary-light);
}

.date-option.active {
    border-color: var(--primary);
    background: rgba(67, 97, 238, 0.05);
}

.custom-range {
    margin-top: 1rem;
}

.date-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.input-group {
    display: flex;
    flex-direction: column;
}

.input-group label {
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--dark);
}

.date-input {
    padding: 0.75rem;
    border: 1px solid var(--light-gray);
    border-radius: var(--border-radius);
    font-size: 1rem;
}

.date-input:focus {
    outline: none;
    border-color: var(--primary);
}

.btn-sm {
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
}

/* Responsive Design for Analytics */
@media (max-width: 1200px) {
    .analytics-charts-row,
    .analytics-tables,
    .kpi-summary {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .date-range-options {
        grid-template-columns: 1fr;
    }
    
    .date-inputs {
        grid-template-columns: 1fr;
    }
    
    .kpi-card {
        flex-direction: column;
        text-align: center;
    }
}
/* Customers Section Specific Styles */
.customer-actions-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

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

.customer-filters {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.search-filter {
    display: flex;
    align-items: center;
    background: var(--light);
    border-radius: 50px;
    padding: 0.5rem 1rem;
    width: 250px;
}

.search-filter input {
    border: none;
    background: transparent;
    margin-left: 0.5rem;
    width: 100%;
    outline: none;
}

.filter-select {
    padding: 0.5rem 1rem;
    border: 1px solid var(--light-gray);
    border-radius: var(--border-radius);
    background: white;
    color: var(--dark);
    outline: none;
}

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

/* Customers Table */
.customers-table-section {
    background: white;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    margin-bottom: 1.5rem;
}

.table-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.view-toggle {
    display: flex;
    background: var(--light);
    border-radius: var(--border-radius);
    padding: 0.25rem;
}

.view-btn {
    padding: 0.5rem;
    border: none;
    background: transparent;
    border-radius: 4px;
    cursor: pointer;
    color: var(--medium-gray);
}

.view-btn.active {
    background: var(--primary);
    color: white;
}

.customers-table {
    width: 100%;
    border-collapse: collapse;
}

.customers-table th,
.customers-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--light-gray);
}

.customers-table th {
    font-weight: 600;
    color: var(--medium-gray);
    font-size: 0.85rem;
    text-transform: uppercase;
}

.customers-table tr:hover {
    background-color: var(--light);
}

.select-col {
    width: 40px;
}

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

.customer-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4361ee, #4cc9f0);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 0.9rem;
}

.customer-avatar.large {
    width: 60px;
    height: 60px;
    font-size: 1.2rem;
}

.customer-name {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.customer-id {
    font-size: 0.8rem;
    color: var(--medium-gray);
}

.contact-email {
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.contact-phone {
    font-size: 0.8rem;
    color: var(--medium-gray);
}

.booking-count,
.total-spent {
    font-weight: 600;
}

.status-badge,
.source-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 500;
    display: inline-block;
    margin-right: 0.5rem;
}

.status-active {
    background: rgba(76, 201, 240, 0.1);
    color: var(--success);
}

.status-inactive {
    background: rgba(248, 150, 30, 0.1);
    color: var(--warning);
}

.source-website {
    background: rgba(67, 97, 238, 0.1);
    color: var(--primary);
}

.source-referral {
    background: rgba(247, 37, 133, 0.1);
    color: var(--accent);
}

.source-partner {
    background: rgba(63, 55, 201, 0.1);
    color: var(--secondary);
}

.source-social {
    background: rgba(248, 150, 30, 0.1);
    color: var(--warning);
}

.vip-badge {
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #b8860b;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    display: inline-block;
}

.last-activity {
    font-size: 0.85rem;
    color: var(--medium-gray);
}

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

.action-btn {
    padding: 0.5rem;
    border: none;
    background: transparent;
    border-radius: 4px;
    cursor: pointer;
    color: var(--medium-gray);
    transition: var(--transition);
}

.action-btn:hover {
    background: var(--light);
    color: var(--primary);
}

/* Customer Cards View */
.customer-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.customer-card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: var(--transition);
}

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

.card-header {
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    background: linear-gradient(135deg, #4361ee, #4cc9f0);
}

.card-body {
    padding: 1.5rem;
}

.card-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--light-gray);
    display: flex;
    gap: 0.5rem;
}

.customer-status {
    display: flex;
    gap: 0.5rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.contact-item i {
    width: 16px;
    color: var(--medium-gray);
}

.customer-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin: 1rem 0;
    padding: 1rem 0;
    border-top: 1px solid var(--light-gray);
    border-bottom: 1px solid var(--light-gray);
}

.stat {
    text-align: center;
}

.stat-value {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--medium-gray);
}

.source-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--light-gray);
}

.pagination-info {
    color: var(--medium-gray);
    font-size: 0.9rem;
}

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

.pagination-btn {
    padding: 0.5rem;
    border: 1px solid var(--light-gray);
    background: white;
    border-radius: 4px;
    cursor: pointer;
    color: var(--dark);
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-pages {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.page-btn {
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--light-gray);
    background: white;
    border-radius: 4px;
    cursor: pointer;
    color: var(--dark);
    font-size: 0.9rem;
}

.page-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* Customer Detail Modal */
.modal-content.large {
    max-width: 800px;
}

.customer-detail-tabs {
    margin-top: 1rem;
}

.tab-headers {
    display: flex;
    border-bottom: 1px solid var(--light-gray);
    margin-bottom: 1.5rem;
}

.tab-header {
    padding: 1rem 1.5rem;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: var(--transition);
}

.tab-header.active {
    border-bottom-color: var(--primary);
    color: var(--primary);
    font-weight: 600;
}

.tab-content {
    display: none;
}

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

.profile-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--light-gray);
}

.profile-info h3 {
    margin-bottom: 0.5rem;
}

.profile-badges {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.profile-details {
    margin-bottom: 2rem;
}

.detail-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.detail-group label {
    display: block;
    font-weight: 600;
    color: var(--medium-gray);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.detail-value {
    font-weight: 500;
}

.customer-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.stat-card {
    background: var(--light);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    text-align: center;
}

.stat-card .stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stat-card .stat-label {
    font-size: 0.9rem;
    color: var(--medium-gray);
}

/* Activity Timeline */
.activity-timeline {
    position: relative;
    padding-left: 2rem;
}

.timeline-item {
    position: relative;
    margin-bottom: 2rem;
}

.timeline-marker {
    position: absolute;
    left: -2rem;
    top: 0;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--primary);
    border: 2px solid white;
    box-shadow: 0 0 0 3px var(--primary-light);
}

.timeline-content {
    background: var(--light);
    padding: 1rem;
    border-radius: var(--border-radius);
}

.timeline-title {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.timeline-date {
    font-size: 0.8rem;
    color: var(--medium-gray);
    margin-bottom: 0.5rem;
}

.timeline-description {
    font-size: 0.9rem;
}

/* Forms */
.customer-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

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

.form-group label {
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--dark);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.75rem;
    border: 1px solid var(--light-gray);
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
}

/* No Data States */
.no-data,
.no-customers {
    text-align: center;
    padding: 3rem;
    color: var(--medium-gray);
}

.no-data i,
.no-customers i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--light-gray);
}

.no-customers h3 {
    margin-bottom: 0.5rem;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .customer-actions-bar {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    
    .customer-filters {
        justify-content: space-between;
    }
    
    .customer-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .customer-filters {
        flex-direction: column;
        gap: 1rem;
    }
    
    .search-filter {
        width: 100%;
    }
    
    .detail-row {
        grid-template-columns: 1fr;
    }
    
    .customer-stats-grid {
        grid-template-columns: 1fr;
    }
    
    .pagination {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .customer-cards {
        grid-template-columns: 1fr;
    }
}
/* Drivers Section Specific Styles */
.driver-actions-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.driver-filters {
    display: flex;
    gap: 1rem;
    align-items: center;
}

/* Drivers Table */
.drivers-table {
    width: 100%;
    border-collapse: collapse;
}

.drivers-table th,
.drivers-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--light-gray);
}

.drivers-table th {
    font-weight: 600;
    color: var(--medium-gray);
    font-size: 0.85rem;
    text-transform: uppercase;
}

.driver-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.driver-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4361ee, #4cc9f0);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 0.9rem;
}

.driver-avatar.large {
    width: 60px;
    height: 60px;
    font-size: 1.2rem;
}

.driver-avatar.tiny {
    width: 30px;
    height: 30px;
    font-size: 0.8rem;
}

.vehicle-info {
    font-weight: 500;
}

.vehicle-number {
    font-size: 0.8rem;
    color: var(--medium-gray);
}

.location-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.location-info i {
    color: var(--primary);
}

.trips-info .today-trips {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.trips-info .next-trip {
    font-size: 0.8rem;
    color: var(--medium-gray);
}

.rating-display {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: #f8961e;
    font-weight: 600;
}

.total-trips {
    font-size: 0.8rem;
    color: var(--medium-gray);
    margin-top: 0.25rem;
}

/* Driver Cards View */
.driver-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

.driver-card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: var(--transition);
}

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

.driver-card .card-header {
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    background: linear-gradient(135deg, #4361ee, #4cc9f0);
}

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

.driver-card .card-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--light-gray);
    display: flex;
    gap: 0.5rem;
}

.vehicle-display {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 1rem 0;
    padding: 0.75rem;
    background: var(--light);
    border-radius: var(--border-radius);
    font-weight: 500;
}

.vehicle-display i {
    color: var(--primary);
}

.next-trip-info {
    margin-top: 1rem;
    padding: 0.75rem;
    background: var(--light);
    border-radius: var(--border-radius);
    font-size: 0.9rem;
}

/* Map View */
.map-view {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.map-placeholder {
    padding: 3rem;
    text-align: center;
    color: var(--medium-gray);
}

.map-placeholder i {
    font-size: 4rem;
    margin-bottom: 1rem;
    color: var(--light-gray);
}

.map-legend {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.legend-color {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.legend-color.available {
    background: var(--success);
}

.legend-color.on-trip {
    background: var(--warning);
}

.legend-color.offline {
    background: var(--medium-gray);
}

/* Schedule Timeline */
.schedule-container {
    padding: 1rem 0;
}

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

.timeline-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--light);
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.timeline-item:hover {
    background: #e9ecef;
}

.timeline-time {
    min-width: 120px;
    font-weight: 600;
    color: var(--primary);
}

.timeline-content {
    flex: 1;
}

.driver-info-small {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.schedule-details {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.shift-type {
    padding: 0.25rem 0.75rem;
    background: var(--primary);
    color: white;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.assigned-tours {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tour-badge {
    padding: 0.2rem 0.5rem;
    background: white;
    border: 1px solid var(--light-gray);
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 500;
}

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

/* Quick Actions Panel */
.quick-actions-panel {
    background: white;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    margin-bottom: 1.5rem;
}

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

.action-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--light);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
}

.action-card:hover {
    background: #e9ecef;
    transform: translateY(-2px);
}

.action-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4361ee, #4cc9f0);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

.action-content h4 {
    margin-bottom: 0.25rem;
    font-weight: 600;
}

.action-content p {
    font-size: 0.85rem;
    color: var(--medium-gray);
    margin: 0;
}

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

.performance-metric {
    background: var(--light);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    text-align: center;
}

.metric-value {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.metric-label {
    font-size: 0.9rem;
    color: var(--medium-gray);
    margin-bottom: 1rem;
}

.metric-bar {
    height: 8px;
    background: var(--light-gray);
    border-radius: 4px;
    overflow: hidden;
}

.metric-fill {
    height: 100%;
    background: linear-gradient(90deg, #4cc9f0, #4361ee);
    border-radius: 4px;
    transition: width 0.5s ease;
}

/* Documents */
.documents-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.document-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--light);
    border-radius: var(--border-radius);
    border-left: 4px solid var(--success);
}

.document-item.expiring-soon {
    border-left-color: var(--warning);
}

.document-item.expired {
    border-left-color: var(--danger);
}

.document-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.document-details {
    flex: 1;
}

.document-name {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.document-type {
    font-size: 0.8rem;
    color: var(--medium-gray);
    margin-bottom: 0.25rem;
}

.document-expiry {
    font-size: 0.8rem;
    color: var(--medium-gray);
}

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

/* Schedule Items */
.schedule-items {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.schedule-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--light);
    border-radius: var(--border-radius);
}

.schedule-date {
    min-width: 120px;
    font-weight: 600;
}

.schedule-shift {
    padding: 0.25rem 0.75rem;
    background: var(--primary);
    color: white;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.schedule-tours {
    flex: 1;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.schedule-time {
    font-size: 0.9rem;
    color: var(--medium-gray);
}

/* Status Badges for Drivers */
.status-on-duty {
    background: rgba(76, 201, 240, 0.1);
    color: var(--success);
}

.status-off-duty {
    background: rgba(248, 150, 30, 0.1);
    color: var(--warning);
}

.status-active {
    background: rgba(67, 97, 238, 0.1);
    color: var(--primary);
}

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

.vehicle-badge {
    padding: 0.25rem 0.75rem;
    background: rgba(63, 55, 201, 0.1);
    color: var(--secondary);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .driver-actions-bar {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    
    .driver-filters {
        justify-content: space-between;
    }
    
    .action-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .driver-filters {
        flex-direction: column;
        gap: 1rem;
    }
    
    .search-filter {
        width: 100%;
    }
    
    .timeline-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .timeline-time {
        min-width: auto;
    }
    
    .schedule-details {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .action-cards {
        grid-template-columns: 1fr;
    }
    
    .performance-stats {
        grid-template-columns: 1fr;
    }
    
    .driver-cards {
        grid-template-columns: 1fr;
    }
    
    .schedule-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
}
/* Invoicing Section Specific Styles */
.invoice-actions-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.invoice-filters {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.date-range-filter {
    display: flex;
    align-items: center;
    background: var(--light);
    border-radius: var(--border-radius);
    padding: 0.5rem 1rem;
    cursor: pointer;
    transition: var(--transition);
}

.date-range-filter:hover {
    background: #e9ecef;
}

.date-range-filter i {
    margin-right: 0.5rem;
    color: var(--medium-gray);
}

/* Invoices Table */
.invoices-table {
    width: 100%;
    border-collapse: collapse;
}

.invoices-table th,
.invoices-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--light-gray);
}

.invoices-table th {
    font-weight: 600;
    color: var(--medium-gray);
    font-size: 0.85rem;
    text-transform: uppercase;
}

.invoice-number {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.draft-badge {
    background: var(--light-gray);
    color: var(--medium-gray);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 500;
}

.customer-name {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.customer-email {
    font-size: 0.8rem;
    color: var(--medium-gray);
}

.due-date.overdue {
    color: var(--danger);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.invoice-amount {
    font-weight: 600;
}

.balance {
    font-size: 0.8rem;
    color: var(--medium-gray);
    margin-top: 0.25rem;
}

.payment-method {
    font-size: 0.9rem;
    color: var(--medium-gray);
}

/* Invoice Cards View */
.invoice-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
}

.invoice-card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: var(--transition);
}

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

.invoice-card .card-header {
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #4361ee, #4cc9f0);
    color: white;
}

.invoice-number {
    font-weight: 700;
    font-size: 1.1rem;
}

.invoice-status {
    display: flex;
    gap: 0.5rem;
}

.overdue-badge {
    background: var(--danger);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
}

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

.invoice-dates {
    margin: 1rem 0;
    padding: 1rem 0;
    border-top: 1px solid var(--light-gray);
    border-bottom: 1px solid var(--light-gray);
}

.date-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

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

.date-label {
    color: var(--medium-gray);
    font-size: 0.9rem;
}

.date-value {
    font-weight: 500;
}

.date-item.overdue .date-value {
    color: var(--danger);
    font-weight: 600;
}

.invoice-amounts {
    margin: 1rem 0;
}

.total-amount {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.balance-amount,
.paid-amount {
    font-size: 0.9rem;
    color: var(--medium-gray);
}

.balance-amount {
    color: var(--warning);
}

.paid-amount {
    color: var(--success);
}

.payment-info {
    background: var(--light);
    padding: 1rem;
    border-radius: var(--border-radius);
    margin-top: 1rem;
}

.payment-date {
    font-size: 0.8rem;
    color: var(--medium-gray);
    margin-top: 0.25rem;
}

.invoice-card .card-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--light-gray);
    display: flex;
    gap: 0.5rem;
}

/* Bulk Actions */
.bulk-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.bulk-select {
    padding: 0.5rem;
    border: 1px solid var(--light-gray);
    border-radius: 4px;
    background: white;
}

/* Quick Stats */
.quick-stats-panel {
    background: white;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    margin-bottom: 1.5rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--light);
    border-radius: var(--border-radius);
}

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4361ee, #4cc9f0);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

.stat-value {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--medium-gray);
}

/* Recent Activity */
.recent-activity-panel {
    background: white;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    margin-bottom: 1.5rem;
}

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

.activity-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: var(--light);
    border-radius: var(--border-radius);
}

.activity-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.activity-content {
    flex: 1;
}

.activity-title {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.activity-details {
    font-size: 0.9rem;
    color: var(--medium-gray);
    margin-bottom: 0.25rem;
}

.activity-time {
    font-size: 0.8rem;
    color: var(--medium-gray);
}

/* Invoice Form */
.invoice-form {
    max-height: 70vh;
    overflow-y: auto;
    padding-right: 1rem;
}

.form-section {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--light-gray);
}

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

.form-section h4 {
    margin-bottom: 1rem;
    color: var(--primary);
}

.invoice-items {
    border: 1px solid var(--light-gray);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.items-header {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 60px;
    gap: 1rem;
    padding: 1rem;
    background: var(--light);
    font-weight: 600;
    font-size: 0.9rem;
}

.items-list {
    max-height: 300px;
    overflow-y: auto;
}

.invoice-item {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 60px;
    gap: 1rem;
    padding: 1rem;
    border-bottom: 1px solid var(--light-gray);
    align-items: center;
}

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

.item-description input,
.item-quantity input,
.item-price input {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid var(--light-gray);
    border-radius: 4px;
    font-size: 0.9rem;
}

.item-total-value {
    font-weight: 600;
    color: var(--primary);
}

.btn-remove-item {
    padding: 0.5rem;
    border: none;
    background: transparent;
    color: var(--danger);
    cursor: pointer;
    border-radius: 4px;
    transition: var(--transition);
}

.btn-remove-item:hover:not(:disabled) {
    background: var(--light);
}

.btn-remove-item:disabled {
    color: var(--light-gray);
    cursor: not-allowed;
}

.invoice-totals {
    background: var(--light);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    margin-top: 1rem;
}

.total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

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

.total-label {
    font-weight: 500;
}

.total-value {
    font-weight: 600;
}

.total-row.grand-total {
    border-top: 2px solid var(--primary);
    padding-top: 0.75rem;
    margin-top: 0.75rem;
    font-size: 1.1rem;
}

.total-row.grand-total .total-value {
    color: var(--primary);
    font-size: 1.2rem;
}

/* Invoice Preview */
.modal-content.xlarge {
    max-width: 900px;
}

.invoice-preview {
    background: white;
    border: 1px solid var(--light-gray);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.invoice-preview-content {
    padding: 2rem;
}

.invoice-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--primary);
}

.company-info h2 {
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.invoice-info h1 {
    color: var(--dark);
    margin-bottom: 1rem;
    text-align: right;
}

.invoice-meta {
    text-align: right;
}

.invoice-meta td {
    padding: 0.25rem 0.5rem;
}

.invoice-meta td:first-child {
    text-align: right;
    color: var(--medium-gray);
}

.billing-info {
    margin-bottom: 2rem;
}

.bill-to h3 {
    margin-bottom: 0.5rem;
    color: var(--dark);
}

.invoice-items-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 2rem;
}

.invoice-items-table th,
.invoice-items-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--light-gray);
}

.invoice-items-table th {
    background: var(--light);
    font-weight: 600;
}

.invoice-totals-preview {
    background: var(--light);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    margin-bottom: 2rem;
}

.totals-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.totals-row.grand-total {
    border-top: 2px solid var(--primary);
    padding-top: 0.75rem;
    margin-top: 0.75rem;
    font-size: 1.1rem;
    font-weight: 700;
}

.invoice-notes,
.invoice-terms {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: var(--light);
    border-radius: var(--border-radius);
}

.invoice-notes h4,
.invoice-terms h4 {
    margin-bottom: 0.5rem;
    color: var(--dark);
}

.invoice-footer {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid var(--light-gray);
    color: var(--medium-gray);
    font-style: italic;
}

/* Payment Form */
.payment-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Status Badges for Invoices */
.status-draft {
    background: rgba(248, 150, 30, 0.1);
    color: var(--warning);
}

.status-sent {
    background: rgba(67, 97, 238, 0.1);
    color: var(--primary);
}

.status-paid {
    background: rgba(76, 201, 240, 0.1);
    color: var(--success);
}

.status-overdue {
    background: rgba(249, 65, 68, 0.1);
    color: var(--danger);
}

.status-cancelled {
    background: rgba(108, 117, 125, 0.1);
    color: var(--medium-gray);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .invoice-actions-bar {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    
    .invoice-filters {
        justify-content: space-between;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .invoice-filters {
        flex-direction: column;
        gap: 1rem;
    }
    
    .search-filter {
        width: 100%;
    }
    
    .invoice-cards {
        grid-template-columns: 1fr;
    }
    
    .items-header,
    .invoice-item {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .items-header {
        display: none;
    }
    
    .invoice-item {
        padding: 1rem;
        border: 1px solid var(--light-gray);
        border-radius: var(--border-radius);
        margin-bottom: 1rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .invoice-header {
        flex-direction: column;
        gap: 1rem;
    }
    
    .invoice-info {
        text-align: left;
    }
    
    .invoice-meta {
        text-align: left;
    }
}
/* Messaging Section Specific Styles */
.messaging-interface {
    display: grid;
    grid-template-columns: 350px 1fr 300px;
    gap: 0;
    height: 600px;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    margin-bottom: 1.5rem;
    overflow: hidden;
}

/* Conversations Sidebar */
.conversations-sidebar {
    border-right: 1px solid var(--light-gray);
    display: flex;
    flex-direction: column;
}

.sidebar-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--light-gray);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sidebar-title {
    font-size: 1.2rem;
    font-weight: 600;
}

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

.conversation-filters {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--light-gray);
}

.conversation-filters .search-filter {
    width: 100%;
    margin-bottom: 1rem;
}

.filter-tabs {
    display: flex;
    background: var(--light);
    border-radius: 50px;
    padding: 0.25rem;
}

.filter-tab {
    padding: 0.5rem 1rem;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.8rem;
    flex: 1;
    text-align: center;
}

.filter-tab.active {
    background: var(--primary);
    color: white;
}

.conversations-list {
    flex: 1;
    overflow-y: auto;
}

.conversation-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--light-gray);
    cursor: pointer;
    transition: var(--transition);
}

.conversation-item:hover {
    background: var(--light);
}

.conversation-item.active {
    background: rgba(67, 97, 238, 0.05);
    border-right: 3px solid var(--primary);
}

.conversation-item.unread {
    background: rgba(67, 97, 238, 0.08);
}

.conversation-avatar {
    position: relative;
    flex-shrink: 0;
}

.avatar-fallback {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4361ee, #4cc9f0);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 0.9rem;
}

.online-status {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid white;
}

.online-status.online {
    background: var(--success);
}

.online-status.offline {
    background: var(--medium-gray);
}

.conversation-content {
    flex: 1;
    min-width: 0;
}

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

.conversation-name {
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.conversation-time {
    font-size: 0.8rem;
    color: var(--medium-gray);
    flex-shrink: 0;
}

.conversation-preview {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.25rem;
}

.message-preview {
    font-size: 0.9rem;
    color: var(--medium-gray);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
}

.unread-badge {
    background: var(--primary);
    color: white;
    border-radius: 10px;
    padding: 0.2rem 0.5rem;
    font-size: 0.7rem;
    font-weight: 600;
    min-width: 18px;
    text-align: center;
    flex-shrink: 0;
}

.conversation-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.conversation-type {
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 500;
    text-transform: uppercase;
}

.conversation-type.customer {
    background: rgba(76, 201, 240, 0.1);
    color: var(--success);
}

.conversation-type.driver {
    background: rgba(248, 150, 30, 0.1);
    color: var(--warning);
}

/* Chat Area */
.chat-area {
    display: flex;
    flex-direction: column;
    position: relative;
}

.no-conversation {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    background: var(--light);
}

.no-conversation-content {
    text-align: center;
    color: var(--medium-gray);
}

.no-conversation-content i {
    font-size: 4rem;
    margin-bottom: 1rem;
    color: var(--light-gray);
}

.no-conversation-content h3 {
    margin-bottom: 0.5rem;
    color: var(--dark);
}

.no-conversation-content p {
    margin-bottom: 1.5rem;
}

.active-conversation {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Chat Header */
.chat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--light-gray);
    background: white;
}

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

.partner-avatar {
    position: relative;
}

.partner-avatar img {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
}

.partner-details {
    display: flex;
    flex-direction: column;
}

.partner-name {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.partner-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: var(--medium-gray);
}

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

.status-dot.online {
    background: var(--success);
}

.status-dot.offline {
    background: var(--medium-gray);
}

.chat-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.action-btn {
    padding: 0.5rem;
    border: none;
    background: transparent;
    border-radius: 4px;
    cursor: pointer;
    color: var(--medium-gray);
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.action-btn:hover {
    background: var(--light);
    color: var(--primary);
}

/* Dropdown Menu */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border: 1px solid var(--light-gray);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    min-width: 200px;
    z-index: 1000;
    display: none;
}

.dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border: none;
    background: transparent;
    width: 100%;
    text-align: left;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.9rem;
    color: var(--dark);
}

.dropdown-item:hover {
    background: var(--light);
    color: var(--primary);
}

.dropdown-item i {
    width: 16px;
    color: var(--medium-gray);
}

/* Messages Container */
.messages-container {
    flex: 1;
    overflow: hidden;
    background: var(--light);
}

.messages-scroll {
    height: 100%;
    overflow-y: auto;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.no-messages {
    text-align: center;
    color: var(--medium-gray);
    padding: 2rem;
}

.no-messages i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--light-gray);
}

/* Messages */
.message {
    display: flex;
    max-width: 70%;
}

.message.sent {
    align-self: flex-end;
}

.message.received {
    align-self: flex-start;
}

.message-content {
    padding: 0.75rem 1rem;
    border-radius: 18px;
    position: relative;
}

.message.sent .message-content {
    background: var(--primary);
    color: white;
    border-bottom-right-radius: 4px;
}

.message.received .message-content {
    background: white;
    color: var(--dark);
    border: 1px solid var(--light-gray);
    border-bottom-left-radius: 4px;
}

.message-text {
    margin-bottom: 0.25rem;
    line-height: 1.4;
}

.message-time {
    font-size: 0.7rem;
    opacity: 0.8;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* Message Input */
.message-input-container {
    display: flex;
    align-items: flex-end;
    gap: 1rem;
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--light-gray);
    background: white;
}

.message-input-actions,
.message-send-actions {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

.message-input-wrapper {
    flex: 1;
}

.message-input-wrapper textarea {
    width: 100%;
    border: 1px solid var(--light-gray);
    border-radius: 20px;
    padding: 0.75rem 1rem;
    resize: none;
    font-family: inherit;
    font-size: 0.9rem;
    line-height: 1.4;
    max-height: 120px;
    outline: none;
    transition: var(--transition);
}

.message-input-wrapper textarea:focus {
    border-color: var(--primary);
}

/* Conversation Info Sidebar */
.conversation-info-sidebar {
    border-left: 1px solid var(--light-gray);
    background: white;
    display: flex;
    flex-direction: column;
}

.info-sidebar-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--light-gray);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.info-sidebar-header h4 {
    margin: 0;
}

.info-sidebar-content {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
}

.info-section {
    margin-bottom: 2rem;
}

.info-section h5 {
    margin-bottom: 1rem;
    color: var(--primary);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--light-gray);
}

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

.info-item label {
    font-weight: 500;
    color: var(--medium-gray);
    font-size: 0.9rem;
}

.info-item span {
    text-align: right;
}

.status-indicator {
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
}

.status-indicator.online {
    background: rgba(76, 201, 240, 0.1);
    color: var(--success);
}

.status-indicator.offline {
    background: rgba(108, 117, 125, 0.1);
    color: var(--medium-gray);
}

.info-actions {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* Quick Actions Panel */
.messaging-quick-actions {
    background: white;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    margin-bottom: 1.5rem;
}

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

.template-card {
    background: white;
    border: 1px solid var(--light-gray);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    transition: var(--transition);
}

.template-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow);
}

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

.template-name {
    margin: 0;
    font-size: 1.1rem;
    color: var(--dark);
}

.template-category {
    background: var(--light);
    color: var(--medium-gray);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 500;
    text-transform: uppercase;
}

.template-content {
    margin-bottom: 1rem;
    line-height: 1.5;
    color: var(--dark);
}

.template-variables {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.variable-tag {
    background: rgba(67, 97, 238, 0.1);
    color: var(--primary);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 500;
}

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

/* Auto-Response Rules */
.rule-item {
    background: white;
    border: 1px solid var(--light-gray);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin-bottom: 1rem;
}

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

.rule-info h5 {
    margin: 0 0 0.25rem 0;
    color: var(--dark);
}

.rule-trigger {
    background: var(--light);
    color: var(--medium-gray);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 500;
    text-transform: capitalize;
}

.rule-content {
    margin-bottom: 1rem;
    line-height: 1.5;
    color: var(--dark);
}

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

.response-template-item {
    background: white;
    border: 1px solid var(--light-gray);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin-bottom: 1rem;
}

/* Switch Toggle */
.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--light-gray);
    transition: .4s;
    border-radius: 24px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: var(--primary);
}

input:checked + .slider:before {
    transform: translateX(26px);
}

.switch-label {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Form Styles for Messaging */
.new-message-form,
.broadcast-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.recipient-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.recipient-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    font-weight: 500;
}

.radiomark {
    width: 18px;
    height: 18px;
    border: 2px solid var(--light-gray);
    border-radius: 50%;
    position: relative;
    transition: var(--transition);
}

.radiomark:after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary);
    opacity: 0;
    transition: var(--transition);
}

input[type="radio"]:checked + .radiomark {
    border-color: var(--primary);
}

input[type="radio"]:checked + .radiomark:after {
    opacity: 1;
}

input[type="radio"] {
    display: none;
}

.recipient-selector select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--light-gray);
    border-radius: var(--border-radius);
    font-size: 0.9rem;
    height: 120px;
}

/* Checkbox Styles */
.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    font-weight: 500;
}

.checkmark {
    width: 18px;
    height: 18px;
    border: 2px solid var(--light-gray);
    border-radius: 4px;
    position: relative;
    transition: var(--transition);
}

.checkmark:after {
    content: "";
    position: absolute;
    left: 5px;
    top: 2px;
    width: 4px;
    height: 8px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    opacity: 0;
    transition: var(--transition);
}

input[type="checkbox"]:checked + .checkmark {
    background: var(--primary);
    border-color: var(--primary);
}

input[type="checkbox"]:checked + .checkmark:after {
    opacity: 1;
}

input[type="checkbox"] {
    display: none;
}

/* Templates Header */
.templates-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.templates-search {
    display: flex;
    align-items: center;
    background: var(--light);
    border-radius: 50px;
    padding: 0.5rem 1rem;
    width: 300px;
}

.templates-search input {
    border: none;
    background: transparent;
    margin-left: 0.5rem;
    width: 100%;
    outline: none;
}

.templates-categories {
    margin-bottom: 1.5rem;
}

.category-tabs {
    display: flex;
    background: var(--light);
    border-radius: 50px;
    padding: 0.25rem;
}

.category-tab {
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.9rem;
    text-align: center;
    flex: 1;
}

.category-tab.active {
    background: var(--primary);
    color: white;
}

/* Auto-Response Header */
.auto-response-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--light-gray);
}

.auto-response-status {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.switch-text {
    font-weight: 600;
    color: var(--dark);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .messaging-interface {
        grid-template-columns: 300px 1fr;
    }
    
    .conversation-info-sidebar {
        position: absolute;
        right: 0;
        top: 0;
        bottom: 0;
        width: 300px;
        z-index: 10;
        box-shadow: -2px 0 10px rgba(0,0,0,0.1);
    }
}

@media (max-width: 768px) {
    .messaging-interface {
        grid-template-columns: 1fr;
        height: 500px;
    }
    
    .conversations-sidebar {
        display: none;
    }
    
    .message {
        max-width: 85%;
    }
    
    .templates-grid {
        grid-template-columns: 1fr;
    }
    
    .templates-header {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    
    .templates-search {
        width: 100%;
    }
    
    .category-tabs {
        flex-wrap: wrap;
    }
    
    .category-tab {
        flex: 1 0 calc(50% - 0.5rem);
        margin-bottom: 0.5rem;
    }
}
/* ===== SETTINGS STYLES ===== */
.settings-content {
    padding: 1.5rem;
    height: 100%;
    overflow-y: auto;
}

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

.settings-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.25rem;
}

.settings-subtitle {
    color: var(--medium-gray);
    font-size: 0.9rem;
}

.settings-container {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 1.5rem;
    min-height: 600px;
}

.settings-sidebar {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 1rem;
    height: fit-content;
}

.settings-category {
    padding: 0.75rem 1rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 0.25rem;
    display: flex;
    align-items: center;
    font-size: 0.9rem;
}

.settings-category:hover {
    background: var(--light);
}

.settings-category.active {
    background: var(--primary-light);
    color: white;
}

.settings-category i {
    margin-right: 0.5rem;
    font-size: 1rem;
    width: 16px;
    text-align: center;
}

.settings-panels {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 1.5rem;
    overflow-y: auto;
}

.settings-panel {
    display: none;
}

.settings-panel.active {
    display: block;
}

.panel-header {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--light-gray);
}

.panel-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.panel-description {
    color: var(--medium-gray);
    font-size: 0.9rem;
}

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

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

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

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    font-size: 0.9rem;
}

.form-control {
    width: 100%;
    padding: 0.6rem 0.75rem;
    border: 1px solid var(--light-gray);
    border-radius: var(--border-radius);
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(67, 97, 238, 0.1);
}

.form-text {
    font-size: 0.8rem;
    color: var(--medium-gray);
    margin-top: 0.25rem;
}

.toggle-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--light-gray);
    transition: .3s;
    border-radius: 24px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .3s;
    border-radius: 50%;
}

input:checked + .toggle-slider {
    background-color: var(--primary);
}

input:checked + .toggle-slider:before {
    transform: translateX(20px);
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--light-gray);
}

.avatar-section {
    text-align: center;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: var(--light);
    border-radius: var(--border-radius);
}

.user-avatar-large {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0 auto 1rem;
}

/* Settings Responsive */
@media (max-width: 768px) {
    .settings-container {
        grid-template-columns: 1fr;
    }
    
    .settings-sidebar {
        display: flex;
        overflow-x: auto;
        padding: 0.75rem;
    }
    
    .settings-category {
        flex: 0 0 auto;
        white-space: nowrap;
    }
    
    .settings-category span {
        display: none;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
}