/* Delivery System Custom Styles */

:root {
    --primary-color: #1A4BA0;
    --primary-dark: #0d2d66;
    --primary-light: #2563eb;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #0dcaf0;
}

body {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #f8f9fa;
}

.navbar-brand {
    font-weight: bold;
    font-size: 1.25rem;
}

.card {
    border: none;
    margin-bottom: 1.5rem;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

.card-header {
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    border-bottom: 2px solid #e8f0fc;
    font-weight: 600;
    padding: 1rem 1.25rem;
}

.status-badge {
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
}

.delivery-card {
    transition: transform 0.2s;
}

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

.delivery-card-item {
    display: block;
}

#deliveries-grid {
    display: flex;
    flex-wrap: wrap;
}

#deliveries-grid .col-md-2 {
    flex: 0 0 20%;
    max-width: 20%;
}

@media (max-width: 1200px) {
    #deliveries-grid .col-md-2 {
        flex: 0 0 25%;
        max-width: 25%;
    }
}

@media (max-width: 992px) {
    #deliveries-grid .col-md-2 {
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
    }
}

@media (max-width: 768px) {
    #deliveries-grid .col-md-2 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

@media (max-width: 576px) {
    #deliveries-grid .col-md-2 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* Courier Delivery Cards */
.delivery-card-courier {
    transition: transform 0.2s;
    border: 2px solid #dee2e6 !important;
}

.delivery-card-courier:hover {
    transform: translateY(-2px);
    border-color: #1A4BA0 !important;
}

#courier-deliveries-grid {
    display: flex;
    flex-wrap: wrap;
}

#courier-deliveries-grid .col-md-4 {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
}

@media (max-width: 992px) {
    #courier-deliveries-grid .col-md-4 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

@media (max-width: 768px) {
    #courier-deliveries-grid .col-md-4 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

.courier-column {
    min-height: 400px;
    background-color: #f8f9fa;
    border-radius: 0.5rem;
    padding: 1rem;
    border: 2px dashed #dee2e6;
}

.courier-column.drag-over {
    border-color: #1A4BA0;
    background-color: #e8f0fc;
}

.stats-card {
    text-align: center;
    padding: 1.5rem;
}

.stats-card .stat-value {
    font-size: 2rem;
    font-weight: bold;
    color: #1A4BA0;
}

.stats-card .stat-label {
    color: var(--secondary-color);
    font-size: 0.875rem;
    text-transform: uppercase;
}

/* Modern Stats Cards */
.stats-card-modern {
    border: none;
    border-radius: 20px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    position: relative;
    background: #ffffff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.stats-card-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--card-accent, #1A4BA0), var(--card-accent-light, #2563eb));
    opacity: 1;
    transition: height 0.3s ease;
}

.stats-card-modern:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

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

.stats-card-modern .stat-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    border-radius: 16px;
    background: var(--card-icon-bg, linear-gradient(135deg, #e8f0fc 0%, #d1e2f9 100%));
    margin-left: auto;
    margin-right: auto;
    transition: all 0.3s ease;
}

.stats-card-modern:hover .stat-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.stats-card-modern .stat-value {
    font-size: 2.75rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    line-height: 1.1;
    letter-spacing: -0.03em;
    background: var(--card-value-gradient, linear-gradient(135deg, #1A4BA0 0%, #2563eb 100%));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: all 0.3s ease;
}

.stats-card-modern:hover .stat-value {
    transform: scale(1.05);
}

.stats-card-modern .stat-label {
    color: #64748b;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0;
    transition: color 0.3s ease;
}

.stats-card-modern:hover .stat-label {
    color: #475569;
}

/* Clickable Stats Cards */
.stats-card-modern.clickable-card {
    cursor: pointer;
    position: relative;
}

.stats-card-modern.clickable-card::after {
    content: '';
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 3px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 2px;
    opacity: 0;
    transition: all 0.3s ease;
}

.stats-card-modern.clickable-card:hover::after {
    opacity: 1;
}

.stats-card-modern.clickable-card.active {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(26, 75, 160, 0.2);
}

.stats-card-modern.clickable-card.active::after {
    opacity: 1;
    background: var(--card-accent, #1A4BA0);
    width: 50px;
}

.stats-card-modern.clickable-card.active::before {
    height: 6px !important;
}

/* Animation for filtered items */
.delivery-item {
    transition: all 0.3s ease;
}

.delivery-item[style*="display: none"] {
    opacity: 0;
    transform: scale(0.9);
}

/* Soft Color Stats Cards */
/* Blue Card - Toplam Teslimat */
.stats-card-blue {
    --card-accent: #1A4BA0;
    --card-accent-light: #3b82f6;
    --card-icon-bg: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    --card-value-gradient: linear-gradient(135deg, #1A4BA0 0%, #3b82f6 100%);
    background: linear-gradient(135deg, #ffffff 0%, #f0f7ff 100%);
}

.stats-card-blue .stat-icon {
    background: var(--card-icon-bg);
    color: #1A4BA0;
}


/* Orange Card - Bekleyen Teslimat */
.stats-card-orange {
    --card-accent: #f97316;
    --card-accent-light: #fb923c;
    --card-icon-bg: linear-gradient(135deg, #ffedd5 0%, #fed7aa 100%);
    --card-value-gradient: linear-gradient(135deg, #c2410c 0%, #f97316 100%);
    background: linear-gradient(135deg, #ffffff 0%, #fff7ed 100%);
}

.stats-card-orange .stat-icon {
    background: var(--card-icon-bg);
    color: #f97316;
}

/* Purple Card - Aktif Kurye */
.stats-card-purple {
    --card-accent: #a855f7;
    --card-accent-light: #c084fc;
    --card-icon-bg: linear-gradient(135deg, #f3e8ff 0%, #e9d5ff 100%);
    --card-value-gradient: linear-gradient(135deg, #7e22ce 0%, #a855f7 100%);
    background: linear-gradient(135deg, #ffffff 0%, #faf5ff 100%);
}

.stats-card-purple .stat-icon {
    background: var(--card-icon-bg);
    color: #a855f7;
}

/* Green Card - Müşteri */
.stats-card-green {
    --card-accent: #22c55e;
    --card-accent-light: #4ade80;
    --card-icon-bg: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
    --card-value-gradient: linear-gradient(135deg, #15803d 0%, #22c55e 100%);
    background: linear-gradient(135deg, #ffffff 0%, #f0fdf4 100%);
}

.stats-card-green .stat-icon {
    background: var(--card-icon-bg);
    color: #22c55e;
}

/* Teal Card - Kredi Durumu */
.stats-card-teal {
    --card-accent: #14b8a6;
    --card-accent-light: #2dd4bf;
    --card-icon-bg: linear-gradient(135deg, #ccfbf1 0%, #99f6e4 100%);
    --card-value-gradient: linear-gradient(135deg, #0f766e 0%, #14b8a6 100%);
    background: linear-gradient(135deg, #ffffff 0%, #f0fdfa 100%);
}

.stats-card-teal .stat-icon {
    background: var(--card-icon-bg);
    color: #14b8a6;
}

.stats-card-teal .credit-balance {
    background: var(--card-value-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Emerald Card - Toplam Kazanç */
.stats-card-emerald {
    --card-accent: #10b981;
    --card-accent-light: #34d399;
    --card-icon-bg: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    --card-value-gradient: linear-gradient(135deg, #047857 0%, #10b981 100%);
    background: linear-gradient(135deg, #ffffff 0%, #ecfdf5 100%);
}

.stats-card-emerald .stat-icon {
    background: var(--card-icon-bg);
    color: #10b981;
}

.stats-card-emerald .credit-balance {
    background: var(--card-value-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Amber Card - Bekleyen Ödeme */
.stats-card-amber {
    --card-accent: #f59e0b;
    --card-accent-light: #fbbf24;
    --card-icon-bg: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    --card-value-gradient: linear-gradient(135deg, #b45309 0%, #f59e0b 100%);
    background: linear-gradient(135deg, #ffffff 0%, #fffbeb 100%);
}

.stats-card-amber .stat-icon {
    background: var(--card-icon-bg);
    color: #f59e0b;
}

.stats-card-amber .stat-value-modern {
    background: var(--card-value-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Indigo Card - Aktif Teslimatlar */
.stats-card-indigo {
    --card-accent: #6366f1;
    --card-accent-light: #818cf8;
    --card-icon-bg: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%);
    --card-value-gradient: linear-gradient(135deg, #4338ca 0%, #6366f1 100%);
    background: linear-gradient(135deg, #ffffff 0%, #eef2ff 100%);
}

.stats-card-indigo .stat-icon {
    background: var(--card-icon-bg);
    color: #6366f1;
}

.stats-card-indigo .stat-value-modern {
    background: var(--card-value-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Red Card - Acil Durum */
.stats-card-red {
    --card-accent: #ef4444;
    --card-accent-light: #f87171;
    --card-icon-bg: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    --card-value-gradient: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
    background: linear-gradient(135deg, #ffffff 0%, #fef2f2 100%);
    animation: pulse-border 2s infinite;
}

@keyframes pulse-border {
    0%, 100% {
        box-shadow: 0 4px 20px rgba(239, 68, 68, 0.15);
    }
    50% {
        box-shadow: 0 4px 30px rgba(239, 68, 68, 0.3);
    }
}

.stats-card-red .stat-icon {
    background: var(--card-icon-bg);
    color: #ef4444;
    animation: shake 0.5s ease-in-out infinite;
}

@keyframes shake {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-5deg); }
    75% { transform: rotate(5deg); }
}

.stats-card-red:hover .stat-icon {
    animation: none;
    transform: scale(1.1);
}

.stats-card-red .btn-danger {
    background-color: #dc2626;
    border-color: #dc2626;
    font-weight: 600;
}

.stats-card-red .btn-danger:hover {
    background-color: #b91c1c;
    border-color: #b91c1c;
}

.stats-card-modern .card-body {
    padding: 1.75rem 1.5rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    position: relative;
    z-index: 1;
}

/* Mobil için liste görünümü */
@media (max-width: 768px) {
    .stats-card-modern {
        margin-bottom: 0.75rem;
        border-radius: 16px;
    }
    
    .stats-card-modern .card-body {
        padding: 1rem 1.25rem;
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
        text-align: left;
        min-height: auto;
        gap: 1rem;
    }
    
    .stats-card-modern .stat-icon {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
        margin-bottom: 0;
        margin-right: 0;
        flex-shrink: 0;
        border-radius: 12px;
    }
    
    .stats-card-modern .stat-value {
        font-size: 1.75rem;
        margin-bottom: 0;
        margin-left: auto;
        font-weight: 700;
    }
    
    .stats-card-modern .stat-label {
        font-size: 0.7rem;
        margin-bottom: 0;
        flex: 1;
        text-align: left;
        font-weight: 600;
    }
    
    .stats-card-modern:hover .stat-icon {
        transform: scale(1.05);
    }
}

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

.stat-label-small {
    font-size: 0.75rem;
    margin-top: 0.5rem;
}

.table-responsive {
    border-radius: 12px;
    overflow: hidden;
}

/* Modern Table Styles */
.table {
    margin-bottom: 0;
}

.table thead {
    background: linear-gradient(135deg, #1A4BA0 0%, #2563eb 100%);
}

.table thead th {
    color: #fff;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 1rem 1rem;
    border: none;
    white-space: nowrap;
}

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

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

.table tbody td {
    padding: 1rem;
    vertical-align: middle;
    border-bottom: 1px solid #e8f0fc;
}

.table tbody tr:last-child td {
    border-bottom: none;
}

/* Page Header Styles */
.page-header-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: none;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(26, 75, 160, 0.1);
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.page-header-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #1A4BA0, #2563eb);
}

.page-header-card .card-header {
    background: transparent;
    border-bottom: none;
    padding: 1.5rem;
    position: relative;
}

.page-header-card .card-header h5 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1A4BA0;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.page-header-card .card-header h5 i {
    font-size: 1.5rem;
    opacity: 0.8;
}

/* Filter Card Styles */
.filter-card {
    background: #ffffff;
    border: none;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    margin-bottom: 1.5rem;
}

.filter-card .card-body {
    padding: 1.25rem;
}

.filter-card .form-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.filter-card .form-select {
    border-radius: 10px;
    border: 2px solid #e5e7eb;
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.filter-card .form-select:focus {
    border-color: #1A4BA0;
    box-shadow: 0 0 0 4px rgba(26, 75, 160, 0.1);
}

/* Content Card Styles */
.content-card {
    background: #ffffff;
    border: none;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

.content-card .card-header {
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    border-bottom: 2px solid #e8f0fc;
    padding: 1.25rem 1.5rem;
}

.content-card .card-header h5 {
    color: #1A4BA0;
    font-weight: 700;
    font-size: 1.1rem;
    margin: 0;
}

.content-card .card-header h5 i {
    margin-right: 0.5rem;
}

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

/* Badge Improvements */
.badge {
    font-weight: 600;
    padding: 0.5em 0.85em;
    border-radius: 8px;
    font-size: 0.75rem;
    letter-spacing: 0.3px;
}

.badge.bg-success {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%) !important;
}

.badge.bg-warning {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
    color: #fff !important;
}

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

.badge.bg-info {
    background: linear-gradient(135deg, #1A4BA0 0%, #2563eb 100%) !important;
}

.badge.bg-secondary {
    background: linear-gradient(135deg, #64748b 0%, #475569 100%) !important;
}

/* Button Group Improvements */
.btn-group .btn {
    border-radius: 8px !important;
}

.btn-group .btn:not(:last-child) {
    margin-right: 4px;
}

/* Modal Improvements */
.modal-content {
    border: none;
    border-radius: 16px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
    overflow: hidden;
}

.modal-header {
    background: linear-gradient(135deg, #1A4BA0 0%, #2563eb 100%);
    color: #fff;
    border-bottom: none;
    padding: 1.25rem 1.5rem;
}

.modal-header .modal-title {
    font-weight: 700;
    font-size: 1.1rem;
}

.modal-header .btn-close {
    filter: brightness(0) invert(1);
    opacity: 0.8;
}

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

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    background: #f8fafc;
    border-top: 1px solid #e8f0fc;
    padding: 1rem 1.5rem;
}

/* Form Control Improvements */
.form-control, .form-select {
    border-radius: 10px;
    border: 2px solid #e5e7eb;
    padding: 0.65rem 1rem;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.form-control:focus, .form-select:focus {
    border-color: #1A4BA0;
    box-shadow: 0 0 0 4px rgba(26, 75, 160, 0.1);
}

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

/* Input Group Improvements */
.input-group .form-control {
    border-right: none;
}

.input-group .input-group-text {
    background: #f8fafc;
    border: 2px solid #e5e7eb;
    border-left: none;
    border-radius: 0 10px 10px 0;
    color: #64748b;
    font-weight: 600;
}

/* Stats Badge in Cards */
.stats-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.85rem;
}

.stats-badge.primary {
    background: linear-gradient(135deg, #e8f0fc 0%, #d1e2f9 100%);
    color: #1A4BA0;
}

.stats-badge.warning {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #b45309;
}

.stats-badge.success {
    background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
    color: #15803d;
}

/* District Card Improvements */
.district-card {
    background: #ffffff;
    border: none !important;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    overflow: hidden;
}

.district-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #1A4BA0, #2563eb);
}

.district-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(26, 75, 160, 0.15);
}

.district-card.border-secondary {
    opacity: 0.7;
}

.district-card.border-secondary::before {
    background: linear-gradient(90deg, #94a3b8, #64748b);
}

.district-card .card-body {
    padding: 1rem;
    position: relative;
}

.district-card h6 {
    color: #1e293b;
    font-weight: 700;
    font-size: 0.9rem;
}

/* Settings Page Improvements */
.settings-section {
    background: #ffffff;
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.settings-section h6 {
    color: #1A4BA0;
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #e8f0fc;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.settings-section h6 i {
    font-size: 1.1rem;
}

.logo-preview {
    background: linear-gradient(135deg, #f8fafc 0%, #e8f0fc 100%);
    border: 2px dashed #cbd5e1;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.logo-preview:hover {
    border-color: #1A4BA0;
    background: linear-gradient(135deg, #ffffff 0%, #f0f7ff 100%);
}

.logo-preview img {
    max-height: 80px;
    max-width: 200px;
    object-fit: contain;
}

/* Avatar Circle */
.avatar-circle {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: linear-gradient(135deg, #e8f0fc 0%, #d1e2f9 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1A4BA0;
    font-size: 1rem;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.avatar-circle.active {
    background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
    color: #15803d;
}

.avatar-circle.inactive {
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    color: #64748b;
}

tr:hover .avatar-circle {
    transform: scale(1.1);
}

/* Alert Improvements */
.alert {
    border: none;
    border-radius: 12px;
    padding: 1rem 1.25rem;
}

.alert-success {
    background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
    color: #15803d;
}

.alert-danger {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    color: #991b1b;
}

.alert-info {
    background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
    color: #0369a1;
}

.alert-warning {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #92400e;
}

/* Empty State Improvements */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: #64748b;
}

.empty-state i {
    font-size: 5rem;
    margin-bottom: 1.5rem;
    opacity: 0.2;
    color: #1A4BA0;
}

.empty-state p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

/* Dropdown Menu Improvements */
.dropdown-menu {
    border: none;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    padding: 0.5rem;
}

.dropdown-item {
    border-radius: 8px;
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background: linear-gradient(135deg, #e8f0fc 0%, #d1e2f9 100%);
    color: #1A4BA0;
}

.dropdown-item i {
    width: 20px;
    margin-right: 8px;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .page-header-card .card-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start !important;
    }
    
    .page-header-card .card-header .d-flex {
        flex-wrap: wrap;
        gap: 0.5rem !important;
    }
    
    .stats-badge {
        font-size: 0.75rem;
        padding: 0.4rem 0.75rem;
    }
    
    .filter-card .row {
        gap: 1rem;
    }
    
    .table thead th {
        font-size: 0.75rem;
        padding: 0.75rem 0.5rem;
    }
    
    .table tbody td {
        padding: 0.75rem 0.5rem;
        font-size: 0.85rem;
    }
    
    .avatar-circle {
        width: 36px;
        height: 36px;
        font-size: 0.85rem;
    }
}

.badge {
    font-size: 0.75rem;
    padding: 0.35em 0.65em;
}

.form-label {
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.btn {
    border-radius: 0.375rem;
}

/* Override Bootstrap Primary Color */
.btn-primary {
    background-color: #1A4BA0;
    border-color: #1A4BA0;
}

.btn-primary:hover, .btn-primary:focus {
    background-color: #0d2d66;
    border-color: #0d2d66;
}

.btn-primary:active {
    background-color: #0d2d66 !important;
    border-color: #0d2d66 !important;
}

.btn-outline-primary {
    color: #1A4BA0;
    border-color: #1A4BA0;
}

.btn-outline-primary:hover, .btn-outline-primary:focus {
    background-color: #1A4BA0;
    border-color: #1A4BA0;
    color: #fff;
}

.bg-primary {
    background-color: #1A4BA0 !important;
}

.text-primary {
    color: #1A4BA0 !important;
}

.border-primary {
    border-color: #1A4BA0 !important;
}

a {
    color: #1A4BA0;
}

a:hover {
    color: #0d2d66;
}

/* Card Header with Brand Color */
.card-header {
    background-color: #fff;
    border-bottom: 2px solid #e8f0fc;
}

.card-header h5, .card-header h6 {
    color: #1A4BA0;
}

.card-header i {
    color: #1A4BA0;
}

.credit-balance {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--success-color);
}

.empty-state {
    text-align: center;
    padding: 3rem;
    color: var(--secondary-color);
}

.empty-state i {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.3;
}

/* District Status Styles */
.card.border-secondary.opacity-75 {
    background-color: #f8f9fa;
}

.card.border-secondary.opacity-75 h6 {
    color: #6c757d;
}

.fee-btn {
    min-width: 120px;
    transition: all 0.2s;
}

.fee-btn:hover:not(.disabled) {
    transform: scale(1.05);
}

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

/* Districts Grid - 5 cards per row */
.districts-grid {
    display: flex;
    flex-wrap: wrap;
}

.districts-grid > div {
    flex: 0 0 20%;
    max-width: 20%;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
}

@media (max-width: 1200px) {
    .districts-grid > div {
        flex: 0 0 25%;
        max-width: 25%;
    }
}

@media (max-width: 992px) {
    .districts-grid > div {
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
    }
}

@media (max-width: 768px) {
    .districts-grid > div {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

@media (max-width: 576px) {
    .districts-grid > div {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

.district-card {
    height: 100%;
}

.district-card .card-body {
    padding: 1rem;
}

.district-card h6 {
    font-size: 0.875rem;
    line-height: 1.2;
}

.badge-sm {
    font-size: 0.65rem;
    padding: 0.25em 0.5em;
}

.toggle-status-btn {
    min-width: 28px;
    height: 28px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.fee-btn {
    font-size: 0.8rem;
    padding: 0.375rem 0.5rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .courier-column {
        min-height: 200px;
        margin-bottom: 1rem;
    }
    
    .stats-card-modern {
        margin-bottom: 1rem;
    }
}

/* =============================================
   NEW DELIVERY CARDS - Modern Design
   ============================================= */
.delivery-card-new {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.delivery-card-new::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #1A4BA0, #3b82f6);
    transition: height 0.3s ease;
}

.delivery-card-new:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(26, 75, 160, 0.2);
}

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

/* Status Colors */
.delivery-card-new.status-planned::before {
    background: linear-gradient(90deg, #f59e0b, #fbbf24);
}

.delivery-card-new.status-assigned::before {
    background: linear-gradient(90deg, #8b5cf6, #a78bfa);
}

.delivery-card-new.status-pickup::before {
    background: linear-gradient(90deg, #3b82f6, #60a5fa);
}

.delivery-card-new.status-delivery::before {
    background: linear-gradient(90deg, #06b6d4, #22d3ee);
}

.delivery-card-new.status-delivered::before {
    background: linear-gradient(90deg, #22c55e, #4ade80);
}

.delivery-card-new.status-cancelled::before {
    background: linear-gradient(90deg, #ef4444, #f87171);
}

/* Urgent Card */
.delivery-card-new.urgent {
    background: linear-gradient(135deg, #fff 0%, #fef2f2 100%);
    animation: urgentPulse 2s ease-in-out infinite;
}

.delivery-card-new.urgent::before {
    background: linear-gradient(90deg, #ef4444, #dc2626);
    height: 6px;
}

@keyframes urgentPulse {
    0%, 100% { box-shadow: 0 4px 20px rgba(239, 68, 68, 0.15); }
    50% { box-shadow: 0 8px 30px rgba(239, 68, 68, 0.3); }
}

/* Card Header */
.delivery-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-bottom: 1px solid #e2e8f0;
}

.delivery-id {
    font-size: 0.8rem;
    font-weight: 700;
    color: #64748b;
    background: #fff;
    padding: 4px 10px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

/* Customer Section */
.delivery-card-customer {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #f1f5f9;
}

.customer-avatar {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: linear-gradient(135deg, #e8f0fc 0%, #d1e2f9 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1A4BA0;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.customer-info h6 {
    margin: 0 0 4px 0;
    font-size: 1rem;
    font-weight: 700;
    color: #1e293b;
}

.delivery-date {
    font-size: 0.75rem;
    color: #94a3b8;
}

.delivery-date i {
    margin-right: 4px;
}

/* Details Section */
.delivery-card-details {
    padding: 1rem 1.25rem;
    flex-grow: 1;
}

.detail-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
}

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

.detail-icon {
    font-size: 1.25rem;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    border-radius: 8px;
    flex-shrink: 0;
}

.detail-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.detail-label {
    font-size: 0.7rem;
    font-weight: 600;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.detail-value {
    font-size: 0.9rem;
    font-weight: 600;
    color: #334155;
}

.detail-value.price {
    color: #059669;
    font-size: 1rem;
}

.detail-value.courier-assigned {
    color: #1A4BA0;
}

.detail-value.courier-unassigned {
    color: #f59e0b;
    font-style: italic;
}

/* Urgent Badge */
.urgent-badge {
    margin: 0 1.25rem;
    padding: 8px 12px;
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    border: 1px solid #fecaca;
    border-radius: 10px;
    color: #dc2626;
    font-size: 0.75rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.urgent-badge i {
    animation: shake 0.5s ease-in-out infinite;
}

/* Actions Section */
.delivery-card-actions {
    padding: 1rem 1.25rem;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: auto;
}

.action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    border: none;
    width: 100%;
}

.action-btn.assign-btn {
    background: linear-gradient(135deg, #1A4BA0 0%, #2563eb 100%);
    color: #fff;
}

.action-btn.assign-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(26, 75, 160, 0.3);
}

.action-btn.detail-btn {
    background: #fff;
    color: #1A4BA0;
    border: 2px solid #e2e8f0;
}

.action-btn.detail-btn:hover {
    border-color: #1A4BA0;
    background: #f0f7ff;
}

.action-row {
    display: flex;
    gap: 8px;
}

.status-select {
    flex: 1;
    padding: 8px 12px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #334155;
    background: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
}

.status-select:focus {
    border-color: #1A4BA0;
    outline: none;
    box-shadow: 0 0 0 3px rgba(26, 75, 160, 0.1);
}

.action-btn-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    border: 2px solid #fee2e2;
    background: #fff;
    color: #ef4444;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.action-btn-icon.unassign-btn:hover {
    background: #ef4444;
    color: #fff;
    border-color: #ef4444;
}

.delivered-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
    color: #15803d;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 700;
}

.delivered-badge i {
    font-size: 1rem;
}

/* =============================================
   DISTRICT CARDS - Modern Design
   ============================================= */

/* Page Header */
.district-page-header {
    background: linear-gradient(135deg, #1A4BA0 0%, #2563eb 50%, #3b82f6 100%);
    border-radius: 24px;
    padding: 2rem 2.5rem;
    margin-bottom: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    box-shadow: 0 10px 40px rgba(26, 75, 160, 0.3);
    position: relative;
    overflow: hidden;
}

.district-page-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 60%;
    height: 200%;
    background: radial-gradient(ellipse, rgba(255,255,255,0.1) 0%, transparent 70%);
    pointer-events: none;
}

.header-content {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    z-index: 1;
}

.header-icon {
    width: 64px;
    height: 64px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: #fff;
    backdrop-filter: blur(10px);
}

.header-text h2 {
    color: #fff;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 0.25rem 0;
}

.header-text p {
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    font-size: 0.9rem;
}

.header-stats {
    display: flex;
    gap: 1rem;
    z-index: 1;
}

.header-stat {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 1rem 1.5rem;
    text-align: center;
    min-width: 100px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.header-stat .stat-number {
    display: block;
    font-size: 1.75rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
}

.header-stat .stat-text {
    display: block;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.header-stat.active-stat {
    background: rgba(34, 197, 94, 0.3);
    border-color: rgba(34, 197, 94, 0.5);
}

.header-stat.europe-stat {
    background: rgba(59, 130, 246, 0.3);
    border-color: rgba(59, 130, 246, 0.5);
}

.header-stat.asia-stat {
    background: rgba(168, 85, 247, 0.3);
    border-color: rgba(168, 85, 247, 0.5);
}

/* District List View */
.district-list-card {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.district-list-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    color: #fff;
}

.district-list-card.europe .district-list-header {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
}

.district-list-card.asia .district-list-header {
    background: linear-gradient(135deg, #a855f7 0%, #7c3aed 100%);
}

.list-header-icon {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.list-header-info h4 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
}

.list-header-info span {
    font-size: 0.8rem;
    opacity: 0.9;
}

.district-list-body {
    padding: 0.5rem;
    max-height: 600px;
    overflow-y: auto;
}

.district-list-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 12px;
    transition: all 0.2s ease;
    margin-bottom: 4px;
}

.district-list-item:hover {
    background: #f8fafc;
}

.district-list-item.inactive {
    opacity: 0.6;
}

.district-list-status {
    flex-shrink: 0;
}

.status-indicator {
    display: block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #cbd5e1;
}

.status-indicator.active {
    background: #22c55e;
    box-shadow: 0 0 8px rgba(34, 197, 94, 0.5);
    animation: pulse 2s infinite;
}

.district-list-name {
    flex: 1;
    font-weight: 600;
    color: #1e293b;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.district-list-name .status-badge {
    font-size: 0.65rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 6px;
    background: #dcfce7;
    color: #15803d;
}

.district-list-item.inactive .status-badge {
    background: #f1f5f9;
    color: #64748b;
}

.district-list-fee {
    font-weight: 700;
    font-size: 0.95rem;
    min-width: 80px;
    text-align: right;
}

.district-list-card.europe .district-list-fee {
    color: #1d4ed8;
}

.district-list-card.asia .district-list-fee {
    color: #7c3aed;
}

.district-list-actions {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}

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

.list-action-btn.edit {
    background: #eff6ff;
    color: #3b82f6;
}

.list-action-btn.edit:hover:not(.disabled) {
    background: #3b82f6;
    color: #fff;
}

.list-action-btn.edit.disabled {
    background: #f1f5f9;
    color: #cbd5e1;
    cursor: not-allowed;
}

.list-action-btn.toggle.pause {
    background: #fef3c7;
    color: #d97706;
}

.list-action-btn.toggle.pause:hover {
    background: #d97706;
    color: #fff;
}

.list-action-btn.toggle.play {
    background: #dcfce7;
    color: #16a34a;
}

.list-action-btn.toggle.play:hover {
    background: #16a34a;
    color: #fff;
}

/* Scrollbar styling */
.district-list-body::-webkit-scrollbar {
    width: 6px;
}

.district-list-body::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 3px;
}

.district-list-body::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

.district-list-body::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Districts Container */
.districts-container {
    background: #f8fafc;
    border-radius: 24px;
    padding: 1.5rem;
}

/* District Card */
.district-card-new {
    background: #ffffff;
    border-radius: 16px;
    padding: 1.25rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.district-card-new::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #22c55e, #4ade80);
    transition: height 0.3s ease;
}

.district-card-new:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(26, 75, 160, 0.15);
}

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

.district-card-new.inactive {
    opacity: 0.7;
}

.district-card-new.inactive::before {
    background: linear-gradient(90deg, #94a3b8, #cbd5e1);
}

/* Status Indicator */
.district-status {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 0.75rem;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    animation: pulse 2s infinite;
}

.district-status.passive .status-dot {
    background: #94a3b8;
    animation: none;
}

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

.status-text {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #22c55e;
}

.district-status.passive .status-text {
    color: #94a3b8;
}

/* District Name */
.district-name {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 1rem;
}

.district-name i {
    color: #1A4BA0;
    font-size: 0.9rem;
}

.district-name span {
    font-size: 0.95rem;
    font-weight: 700;
    color: #1e293b;
}

/* Fee Display */
.district-fee {
    background: linear-gradient(135deg, #f0f7ff 0%, #e8f0fc 100%);
    border-radius: 12px;
    padding: 1rem;
    text-align: center;
    margin-bottom: 1rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.fee-label {
    display: block;
    font-size: 0.7rem;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.fee-amount {
    font-size: 1.25rem;
    font-weight: 800;
    color: #1A4BA0;
}

/* Action Buttons */
.district-actions {
    display: flex;
    gap: 8px;
}

.district-btn {
    flex: 1;
    padding: 10px 12px;
    border-radius: 10px;
    border: none;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.district-btn.edit-btn {
    background: linear-gradient(135deg, #1A4BA0 0%, #2563eb 100%);
    color: #fff;
}

.district-btn.edit-btn:hover:not(.disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(26, 75, 160, 0.3);
}

.district-btn.edit-btn.disabled {
    background: #e2e8f0;
    color: #94a3b8;
    cursor: not-allowed;
}

.district-btn.toggle-btn {
    width: 42px;
    flex: 0 0 42px;
    padding: 10px;
}

.district-btn.toggle-btn.pause {
    background: #fef3c7;
    color: #d97706;
}

.district-btn.toggle-btn.pause:hover {
    background: #fde68a;
}

.district-btn.toggle-btn.play {
    background: #dcfce7;
    color: #16a34a;
}

.district-btn.toggle-btn.play:hover {
    background: #bbf7d0;
}

/* Message Area */
.district-message {
    margin-top: 8px;
}

.district-message .alert {
    padding: 8px 12px;
    font-size: 0.75rem;
    margin: 0;
    border-radius: 8px;
}

/* Responsive */
@media (max-width: 768px) {
    .district-page-header {
        padding: 1.5rem;
        flex-direction: column;
        text-align: center;
    }
    
    .header-content {
        flex-direction: column;
    }
    
    .header-text h2 {
        font-size: 1.25rem;
    }
    
    .header-stats {
        width: 100%;
        justify-content: center;
    }
}

/* =============================================
   DELIVERY TYPES PAGE - Modern Design
   ============================================= */

/* Page Header */
.delivery-types-header {
    background: linear-gradient(135deg, #1A4BA0 0%, #2563eb 50%, #3b82f6 100%);
    border-radius: 24px;
    padding: 2rem 2.5rem;
    margin-bottom: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    box-shadow: 0 10px 40px rgba(26, 75, 160, 0.3);
    position: relative;
    overflow: hidden;
}

.delivery-types-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 60%;
    height: 200%;
    background: radial-gradient(ellipse, rgba(255,255,255,0.1) 0%, transparent 70%);
    pointer-events: none;
}

.delivery-types-header .header-content {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    z-index: 1;
}

.delivery-types-header .header-icon {
    width: 64px;
    height: 64px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: #fff;
    backdrop-filter: blur(10px);
}

.delivery-types-header .header-text h2 {
    color: #fff;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 0.25rem 0;
}

.delivery-types-header .header-text p {
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    font-size: 0.9rem;
}

.delivery-types-header .header-stats {
    display: flex;
    gap: 1rem;
    z-index: 1;
}

.delivery-types-header .header-stat {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 1rem 1.5rem;
    text-align: center;
    min-width: 100px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.delivery-types-header .header-stat .stat-number {
    display: block;
    font-size: 1.75rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
}

.delivery-types-header .header-stat .stat-text {
    display: block;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.delivery-types-header .header-stat.active-stat {
    background: rgba(34, 197, 94, 0.3);
    border-color: rgba(34, 197, 94, 0.5);
}

/* Delivery Types Grid */
.delivery-types-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

/* Delivery Type Card */
.delivery-type-card {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.delivery-type-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--type-color, #1A4BA0);
    transition: height 0.3s ease;
}

.delivery-type-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

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

.delivery-type-card.inactive {
    opacity: 0.6;
}

.delivery-type-card.inactive::before {
    background: #94a3b8;
}

/* Card Header */
.type-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 1.5rem 1rem;
}

.type-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.type-status {
    display: flex;
    align-items: center;
    gap: 6px;
}

.type-status .status-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #94a3b8;
}

.type-status .status-indicator.active {
    background: #22c55e;
    box-shadow: 0 0 10px rgba(34, 197, 94, 0.5);
    animation: pulse 2s infinite;
}

.type-status .status-text {
    font-size: 0.75rem;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Card Body */
.type-card-body {
    padding: 0 1.5rem 1.5rem;
}

.type-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 0.5rem;
}

.type-description {
    font-size: 0.85rem;
    color: #64748b;
    margin: 0 0 1.25rem;
    line-height: 1.5;
}

.type-details {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #f8fafc;
    border-radius: 12px;
}

.detail-item .detail-icon {
    width: 40px;
    height: 40px;
    background: #fff;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--type-color, #1A4BA0);
    font-size: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.detail-item .detail-icon .lira-symbol {
    font-size: 1.1rem;
    font-weight: 700;
}

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

.detail-item .detail-label {
    display: block;
    font-size: 0.7rem;
    font-weight: 600;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.detail-item .detail-value {
    display: block;
    font-size: 1rem;
    font-weight: 700;
    color: #1e293b;
}

.detail-item.fee-item .detail-value {
    color: var(--type-color, #1A4BA0);
}

.detail-item .no-fee {
    font-size: 0.85rem;
    font-weight: 500;
    color: #64748b;
    font-style: italic;
}

/* Card Footer */
.type-card-footer {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 1rem 1.5rem;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
}

.type-action-btn {
    padding: 10px 16px;
    border-radius: 10px;
    border: none;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.type-action-btn.edit-btn {
    flex: 1;
    background: linear-gradient(135deg, #1A4BA0 0%, #2563eb 100%);
    color: #fff;
}

.type-action-btn.edit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(26, 75, 160, 0.3);
}

.type-action-btn.toggle-btn {
    width: 42px;
    padding: 10px;
}

.type-action-btn.toggle-btn.pause {
    background: #fef3c7;
    color: #d97706;
}

.type-action-btn.toggle-btn.pause:hover {
    background: #fde68a;
}

.type-action-btn.toggle-btn.play {
    background: #dcfce7;
    color: #16a34a;
}

.type-action-btn.toggle-btn.play:hover {
    background: #bbf7d0;
}

.standard-note {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: #64748b;
}

.standard-note i {
    color: #3b82f6;
}

/* Info Card */
.info-card {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    gap: 1rem;
    border: 1px solid #bfdbfe;
}

.info-card .info-icon {
    width: 48px;
    height: 48px;
    background: #fff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: #f59e0b;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.info-card .info-content h5 {
    font-size: 1rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 0.75rem;
}

.info-card .info-content ul {
    margin: 0;
    padding-left: 1.25rem;
}

.info-card .info-content li {
    font-size: 0.85rem;
    color: #475569;
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.info-card .info-content li:last-child {
    margin-bottom: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .delivery-types-header {
        padding: 1.5rem;
        flex-direction: column;
        text-align: center;
    }
    
    .delivery-types-header .header-content {
        flex-direction: column;
    }
    
    .delivery-types-header .header-text h2 {
        font-size: 1.25rem;
    }
    
    .delivery-types-header .header-stats {
        width: 100%;
        justify-content: center;
    }
    
    .delivery-types-grid {
        grid-template-columns: 1fr;
    }
    
    .info-card {
        flex-direction: column;
        text-align: center;
    }
    
    .info-card .info-icon {
        margin: 0 auto;
    }
    
    .info-card .info-content ul {
        text-align: left;
    }
}

/* =============================================
   DELIVERY CATEGORY SELECTION - Customer Form
   ============================================= */

.delivery-category-selection {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.delivery-category-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 24px 20px;
    background: #fff;
    border: 2px solid #e2e8f0;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.delivery-category-option:hover {
    border-color: #1A4BA0;
    background: #f8fafc;
    transform: translateY(-2px);
}

.delivery-category-option.selected {
    border-color: #1A4BA0;
    background: linear-gradient(135deg, #f0f7ff 0%, #e8f0fc 100%);
    box-shadow: 0 8px 25px rgba(26, 75, 160, 0.15);
}

.category-option-icon {
    width: 72px;
    height: 72px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 16px;
    transition: all 0.3s ease;
}

.delivery-category-option.selected .category-option-icon {
    transform: scale(1.1);
}

.category-option-info {
    flex: 1;
}

.category-option-name {
    display: block;
    font-weight: 700;
    color: #1e293b;
    font-size: 1.1rem;
    margin-bottom: 6px;
}

.category-option-desc {
    display: block;
    font-size: 0.8rem;
    color: #64748b;
    line-height: 1.4;
}

.category-option-check {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1A4BA0;
    font-size: 1.25rem;
    opacity: 0;
    transition: all 0.3s ease;
}

.delivery-category-option.selected .category-option-check {
    opacity: 1;
}

@media (max-width: 576px) {
    .delivery-category-selection {
        grid-template-columns: 1fr;
    }
}

/* Disabled Vehicle Option */
.delivery-category-option.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
    background: #f1f5f9;
}

.delivery-category-option.disabled .category-option-icon {
    filter: grayscale(100%);
}

/* Weight Input Section */
.weight-input-section {
    animation: slideDown 0.3s ease;
}

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

.weight-input-card {
    background: #fff;
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    padding: 20px;
}

.weight-input-card .input-group {
    max-width: 300px;
}

.weight-input-card .input-group-text {
    background: #f8fafc;
    border-color: #e2e8f0;
    color: #64748b;
}

.weight-input-card .form-control {
    border-color: #e2e8f0;
    font-size: 1.1rem;
    font-weight: 600;
}

.weight-input-card .form-control:focus {
    border-color: #1A4BA0;
    box-shadow: 0 0 0 3px rgba(26, 75, 160, 0.1);
}

.weight-hint {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: #64748b;
}

.weight-hint i {
    color: #3b82f6;
}

.weight-hint.warning {
    color: #d97706;
}

.weight-hint.warning i {
    color: #f59e0b;
}

.weight-hint.success {
    color: #059669;
}

.weight-hint.success i {
    color: #10b981;
}

/* Selected Address Info */
.selected-address-info {
    animation: slideDown 0.3s ease;
}

.address-info-card {
    background: linear-gradient(135deg, #f0f7ff 0%, #e8f0fc 100%);
    border: 1px solid #bfdbfe;
    border-radius: 12px;
    padding: 14px 18px;
}

.address-info-card hr {
    border: none;
    border-top: 1px dashed #bfdbfe;
    margin: 10px 0;
}

.address-detail {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: #334155;
    margin-bottom: 6px;
}

.address-detail:last-child {
    margin-bottom: 0;
}

.address-detail i {
    color: #1A4BA0;
    width: 18px;
    text-align: center;
    font-size: 0.85rem;
}

/* Manual Address Form */
.manual-address-form {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    animation: slideDown 0.3s ease;
}

/* ================================
   NEW DELIVERY PAGE - Modern Design
   ================================ */

.new-delivery-header {
    background: linear-gradient(135deg, #1A4BA0 0%, #0d2d5e 100%);
    border-radius: 16px;
    padding: 20px 25px;
    margin-bottom: 25px;
    position: relative;
    overflow: hidden;
}

.new-delivery-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.new-delivery-header-content {
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
    z-index: 1;
}

.new-delivery-icon {
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.15);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    backdrop-filter: blur(10px);
}

.new-delivery-title h1 {
    color: white;
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0 0 4px 0;
}

.new-delivery-title p {
    color: rgba(255,255,255,0.8);
    font-size: 0.9rem;
    margin: 0;
}

.new-delivery-form-container {
    max-width: 800px;
    margin: 0 auto;
}

/* Form Step Cards */
.form-step-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    margin-bottom: 25px;
    overflow: hidden;
    border: 1px solid rgba(26, 75, 160, 0.08);
    transition: all 0.3s ease;
}

.form-step-card:hover {
    box-shadow: 0 8px 30px rgba(26, 75, 160, 0.12);
    transform: translateY(-2px);
}

.form-step-header {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 25px 30px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-bottom: 1px solid #e2e8f0;
}

.step-number {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #1A4BA0 0%, #0d2d5e 100%);
    color: white;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    font-weight: 700;
    flex-shrink: 0;
}

.step-info h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 4px 0;
}

.step-info p {
    font-size: 0.9rem;
    color: #64748b;
    margin: 0;
}

.form-step-body {
    padding: 30px;
}

/* Summary Card Special */
.form-step-card.summary-card .step-number {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
}

/* Address Type Selection */
.address-type-selection {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.address-type-label {
    cursor: pointer;
}

.address-type-label input[type="radio"] {
    display: none;
}

.address-type-card {
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 14px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.address-type-card i {
    font-size: 1.8rem;
    color: #94a3b8;
    transition: all 0.3s ease;
}

.address-type-card span {
    font-weight: 600;
    color: #64748b;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.address-type-label input[type="radio"]:checked + .address-type-card {
    background: linear-gradient(135deg, #1A4BA015 0%, #1A4BA008 100%);
    border-color: #1A4BA0;
}

.address-type-label input[type="radio"]:checked + .address-type-card i {
    color: #1A4BA0;
}

.address-type-label input[type="radio"]:checked + .address-type-card span {
    color: #1A4BA0;
}

/* Selected Address Info New */
.selected-address-info-new {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border: 1px solid #86efac;
    border-radius: 14px;
    overflow: hidden;
    animation: slideDown 0.3s ease;
}

.address-info-header {
    background: #22c55e;
    color: white;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}

.address-info-body {
    padding: 20px;
}

.address-info-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    color: #166534;
}

.address-info-row i {
    width: 20px;
    color: #22c55e;
}

.address-info-divider {
    height: 1px;
    background: #86efac;
    margin: 10px 0;
}

/* Manual Address Form New */
.manual-address-form-new {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 25px;
    animation: slideDown 0.3s ease;
}

.manual-address-form-new .form-label {
    font-weight: 600;
    color: #374151;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.manual-address-form-new .form-control,
.manual-address-form-new .form-select {
    border-radius: 12px;
    border: 2px solid #e2e8f0;
    transition: all 0.3s ease;
}

.manual-address-form-new .form-control:focus,
.manual-address-form-new .form-select:focus {
    border-color: #1A4BA0;
    box-shadow: 0 0 0 4px rgba(26, 75, 160, 0.1);
}

/* Fee Summary New */
.fee-summary-new {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 16px;
    padding: 25px;
    margin-bottom: 25px;
}

.fee-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px dashed #e2e8f0;
}

.fee-item:last-of-type {
    border-bottom: none;
}

.fee-item-label {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #64748b;
    font-size: 0.95rem;
}

.fee-item-label i {
    width: 20px;
    color: #1A4BA0;
}

.fee-item-value {
    font-weight: 600;
    color: #1e293b;
    font-size: 1.1rem;
}

.fee-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    padding-top: 20px;
    border-top: 2px solid #1A4BA0;
}

.fee-total-label {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #1A4BA0;
    font-weight: 700;
    font-size: 1.1rem;
}

.fee-total-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: #1A4BA0;
}

/* Submit Button New */
.btn-submit-delivery {
    width: 100%;
    background: linear-gradient(135deg, #1A4BA0 0%, #0d2d5e 100%);
    border: none;
    border-radius: 16px;
    padding: 20px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-submit-delivery:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(26, 75, 160, 0.3);
}

.btn-submit-icon {
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.15);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: white;
}

.btn-submit-text {
    flex: 1;
    text-align: left;
    padding-left: 20px;
}

.btn-submit-text strong {
    display: block;
    color: white;
    font-size: 1.15rem;
    margin-bottom: 3px;
}

.btn-submit-text small {
    color: rgba(255,255,255,0.7);
    font-size: 0.85rem;
}

.btn-submit-arrow {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.btn-submit-delivery:hover .btn-submit-arrow {
    transform: translateX(5px);
}

/* Animations */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Saved Addresses Grid */
.saved-addresses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 15px;
}

.saved-address-card {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    padding: 0;
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
}

.saved-address-card:hover {
    border-color: #1A4BA0;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(26, 75, 160, 0.12);
}

.saved-address-card.selected {
    border-color: #1A4BA0;
    background: linear-gradient(135deg, #1A4BA008 0%, #1A4BA003 100%);
    box-shadow: 0 8px 25px rgba(26, 75, 160, 0.15);
}

.address-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 18px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.saved-address-card.selected .address-card-header {
    background: linear-gradient(135deg, #1A4BA015 0%, #1A4BA008 100%);
}

.address-card-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #1A4BA0 0%, #0d2d5e 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
    flex-shrink: 0;
}

.address-card-title {
    flex: 1;
}

.address-card-title h5 {
    font-size: 1rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
}

.default-badge {
    display: inline-block;
    font-size: 0.7rem;
    padding: 2px 8px;
    background: #fef3c7;
    color: #d97706;
    border-radius: 20px;
    font-weight: 600;
    margin-top: 4px;
}

.address-card-check {
    width: 28px;
    height: 28px;
    background: #1A4BA0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.9rem;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.3s ease;
}

.saved-address-card.selected .address-card-check {
    opacity: 1;
    transform: scale(1);
}

.address-card-body {
    padding: 15px 18px;
}

.address-card-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 6px 0;
    font-size: 0.9rem;
    color: #475569;
}

.address-card-row i {
    width: 16px;
    color: #94a3b8;
    margin-top: 2px;
    flex-shrink: 0;
}

.address-card-row span {
    flex: 1;
    line-height: 1.4;
}

/* No Address Card */
.no-address-card {
    text-align: center;
    padding: 40px 20px;
    background: #f8fafc;
    border: 2px dashed #e2e8f0;
    border-radius: 16px;
}

.no-address-card i {
    font-size: 2.5rem;
    color: #cbd5e1;
    margin-bottom: 15px;
}

.no-address-card p {
    color: #64748b;
    margin-bottom: 15px;
}

/* Selected Address Display */
.selected-address-display {
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
}

.selected-address-display:hover {
    border-color: #1A4BA0;
    background: #f0f7ff;
}

.select-address-prompt {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    color: #64748b;
}

.select-address-prompt i:first-child {
    font-size: 1.3rem;
    color: #1A4BA0;
    margin-right: 12px;
}

.select-address-prompt span {
    flex: 1;
    font-weight: 500;
}

.select-address-prompt i:last-child {
    color: #94a3b8;
}

.selected-address-preview {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 18px 20px;
    background: linear-gradient(135deg, #1A4BA008 0%, #1A4BA003 100%);
    border: 2px solid #1A4BA0;
    border-radius: 14px;
    margin: -2px;
}

.preview-icon {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, #1A4BA0 0%, #0d2d5e 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1rem;
    flex-shrink: 0;
}

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

.preview-content h5 {
    font-size: 1rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 4px 0;
}

.preview-content p {
    font-size: 0.9rem;
    color: #475569;
    margin: 0 0 2px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.preview-content small {
    font-size: 0.8rem;
    color: #64748b;
}

.preview-action {
    width: 36px;
    height: 36px;
    background: rgba(26, 75, 160, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1A4BA0;
    font-size: 0.9rem;
    flex-shrink: 0;
}

/* Address Modal */
.address-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 20px;
}

.address-modal.show {
    opacity: 1;
    visibility: visible;
}

.address-modal-content {
    background: white;
    border-radius: 20px;
    width: 100%;
    max-width: 550px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    transform: translateY(20px) scale(0.95);
    transition: all 0.3s ease;
    overflow: hidden;
}

.address-modal.show .address-modal-content {
    transform: translateY(0) scale(1);
}

.address-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 25px;
    border-bottom: 1px solid #e2e8f0;
    background: linear-gradient(135deg, #1A4BA0 0%, #0d2d5e 100%);
}

.address-modal-header h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: white;
    margin: 0;
}

.modal-close-btn {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    border-radius: 10px;
    color: white;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-close-btn:hover {
    background: rgba(255, 255, 255, 0.25);
}

.address-modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
}

.modal-address-card {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 18px;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 14px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-address-card:last-child {
    margin-bottom: 0;
}

.modal-address-card:hover {
    border-color: #1A4BA0;
    background: white;
}

.modal-address-card.selected {
    border-color: #1A4BA0;
    background: linear-gradient(135deg, #1A4BA015 0%, #1A4BA008 100%);
}

.modal-card-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #1A4BA0 0%, #0d2d5e 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
    flex-shrink: 0;
}

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

.modal-card-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}

.modal-card-title h5 {
    font-size: 1rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
}

.modal-card-address {
    font-size: 0.9rem;
    color: #475569;
    margin: 0 0 3px 0;
    line-height: 1.4;
}

.modal-card-location {
    font-size: 0.85rem;
    color: #64748b;
    margin: 0 0 8px 0;
}

.modal-card-contact {
    font-size: 0.8rem;
    color: #94a3b8;
    margin: 0;
}

.modal-card-contact i {
    margin-right: 4px;
}

.modal-card-check {
    width: 28px;
    height: 28px;
    background: #1A4BA0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.9rem;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.3s ease;
    flex-shrink: 0;
    margin-top: 8px;
}

.modal-address-card.selected .modal-card-check {
    opacity: 1;
    transform: scale(1);
}

.address-modal-footer {
    padding: 15px 20px;
    border-top: 1px solid #e2e8f0;
    text-align: center;
    background: #f8fafc;
}

.address-modal-footer .btn {
    border-radius: 10px;
}

/* ================================
   CUSTOMER DASHBOARD
   ================================ */

/* Dashboard Header */
.customer-dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #1A4BA0 0%, #0d2d5e 100%);
    border-radius: 16px;
    padding: 25px 30px;
    margin-bottom: 25px;
    position: relative;
    overflow: hidden;
}

.customer-dashboard-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.dashboard-welcome {
    display: flex;
    align-items: center;
    gap: 20px;
    position: relative;
    z-index: 1;
}

.welcome-icon {
    width: 60px;
    height: 60px;
    background: rgba(255,255,255,0.15);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: white;
}

.welcome-text h1 {
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 5px 0;
}

.welcome-text p {
    color: rgba(255,255,255,0.8);
    font-size: 0.95rem;
    margin: 0;
}

.btn-new-delivery {
    display: flex;
    align-items: center;
    gap: 10px;
    background: white;
    color: #1A4BA0;
    padding: 14px 24px;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.btn-new-delivery:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
    color: #1A4BA0;
}

/* Customer Stats Cards - New Design */
.customer-stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 25px;
}

.cst-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
}

.cst-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.cst-card-inner {
    padding: 22px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.cst-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.cst-info h3 {
    font-size: 1.75rem;
    font-weight: 800;
    margin: 0;
    line-height: 1;
}

.cst-info p {
    font-size: 0.85rem;
    margin: 5px 0 0 0;
    opacity: 0.8;
}

/* Card Colors */
.cst-total {
    background: linear-gradient(135deg, #1A4BA0 0%, #2563eb 100%);
}
.cst-total .cst-icon {
    background: rgba(255,255,255,0.2);
    color: white;
}
.cst-total .cst-info h3,
.cst-total .cst-info p {
    color: white;
}

.cst-pending {
    background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
}
.cst-pending .cst-icon {
    background: rgba(255,255,255,0.2);
    color: white;
}
.cst-pending .cst-info h3,
.cst-pending .cst-info p {
    color: white;
}

.cst-active {
    background: linear-gradient(135deg, #3b82f6 0%, #60a5fa 100%);
}
.cst-active .cst-icon {
    background: rgba(255,255,255,0.2);
    color: white;
}
.cst-active .cst-info h3,
.cst-active .cst-info p {
    color: white;
}

.cst-done {
    background: linear-gradient(135deg, #10b981 0%, #34d399 100%);
}
.cst-done .cst-icon {
    background: rgba(255,255,255,0.2);
    color: white;
}
.cst-done .cst-info h3,
.cst-done .cst-info p {
    color: white;
}

@media (max-width: 992px) {
    .customer-stats-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .customer-stats-row {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .cst-card-inner {
        padding: 18px;
    }
    
    .cst-icon {
        width: 46px;
        height: 46px;
        font-size: 1.1rem;
    }
    
    .cst-info h3 {
        font-size: 1.5rem;
    }
}

/* ================================
   ADMIN DASHBOARD - New Design
   ================================ */

/* Admin Dashboard Header */
.admin-dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #1A4BA0 0%, #0d2d5e 100%);
    border-radius: 16px;
    padding: 25px 30px;
    margin-bottom: 25px;
    position: relative;
    overflow: hidden;
}

.admin-dashboard-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.admin-welcome {
    display: flex;
    align-items: center;
    gap: 20px;
    position: relative;
    z-index: 1;
}

.admin-welcome-icon {
    width: 60px;
    height: 60px;
    background: rgba(255,255,255,0.15);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: white;
}

.admin-welcome-text h1 {
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 5px 0;
}

.admin-welcome-text p {
    color: rgba(255,255,255,0.8);
    font-size: 0.95rem;
    margin: 0;
}

.admin-action-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    background: white;
    color: #1A4BA0;
    padding: 14px 24px;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.admin-action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
    color: #1A4BA0;
}

/* Admin Stats Row */
.admin-stats-row {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
    margin-bottom: 25px;
}

.adm-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 3px solid transparent;
}

.adm-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.adm-card.active {
    border-color: rgba(255,255,255,0.5);
    box-shadow: 0 8px 30px rgba(0,0,0,0.2);
    transform: translateY(-4px);
}

.adm-card-inner {
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 14px;
}

.adm-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.adm-info h3 {
    font-size: 1.6rem;
    font-weight: 800;
    margin: 0;
    line-height: 1;
}

.adm-info p {
    font-size: 0.8rem;
    margin: 4px 0 0 0;
    opacity: 0.85;
}

/* Admin Card Colors */
.adm-urgent {
    background: linear-gradient(135deg, #ef4444 0%, #f87171 100%);
}
.adm-urgent .adm-icon {
    background: rgba(255,255,255,0.2);
    color: white;
}
.adm-urgent .adm-info h3,
.adm-urgent .adm-info p {
    color: white;
}

.adm-total {
    background: linear-gradient(135deg, #1A4BA0 0%, #2563eb 100%);
}
.adm-total .adm-icon {
    background: rgba(255,255,255,0.2);
    color: white;
}
.adm-total .adm-info h3,
.adm-total .adm-info p {
    color: white;
}

.adm-pending {
    background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
}
.adm-pending .adm-icon {
    background: rgba(255,255,255,0.2);
    color: white;
}
.adm-pending .adm-info h3,
.adm-pending .adm-info p {
    color: white;
}

.adm-active {
    background: linear-gradient(135deg, #8b5cf6 0%, #a78bfa 100%);
}
.adm-active .adm-icon {
    background: rgba(255,255,255,0.2);
    color: white;
}
.adm-active .adm-info h3,
.adm-active .adm-info p {
    color: white;
}

.adm-done {
    background: linear-gradient(135deg, #10b981 0%, #34d399 100%);
}
.adm-done .adm-icon {
    background: rgba(255,255,255,0.2);
    color: white;
}
.adm-done .adm-info h3,
.adm-done .adm-info p {
    color: white;
}

@media (max-width: 1200px) {
    .admin-stats-row {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .admin-dashboard-header {
        flex-direction: column;
        text-align: center;
        gap: 20px;
        padding: 20px;
    }
    
    .admin-welcome {
        flex-direction: column;
    }
    
    .admin-welcome-text h1 {
        font-size: 1.2rem;
    }
    
    .admin-stats-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .adm-card-inner {
        padding: 16px;
    }
    
    .adm-icon {
        width: 42px;
        height: 42px;
        font-size: 1rem;
    }
    
    .adm-info h3 {
        font-size: 1.3rem;
    }
}

@media (max-width: 576px) {
    .admin-stats-row {
        grid-template-columns: 1fr;
    }
}

/* Quick Actions */
.quick-actions-bar {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.quick-action-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    background: white;
    border: 2px solid #e2e8f0;
    padding: 12px 20px;
    border-radius: 12px;
    color: #475569;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.quick-action-btn:hover {
    border-color: #1A4BA0;
    color: #1A4BA0;
    background: #f0f7ff;
}

.quick-action-btn i {
    font-size: 1.1rem;
}

/* Deliveries Section */
.customer-deliveries-section {
    background: white;
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.section-header h2 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-header h2 i {
    color: #1A4BA0;
}

.section-filters {
    display: flex;
    gap: 8px;
}

.filter-btn {
    padding: 8px 16px;
    border: 2px solid #e2e8f0;
    background: white;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    border-color: #1A4BA0;
    color: #1A4BA0;
}

.filter-btn.active {
    background: #1A4BA0;
    border-color: #1A4BA0;
    color: white;
}

/* Empty State */
.empty-deliveries {
    text-align: center;
    padding: 60px 20px;
}

.empty-icon {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 2.5rem;
    color: #94a3b8;
}

.empty-deliveries h3 {
    font-size: 1.3rem;
    color: #1e293b;
    margin: 0 0 10px 0;
}

.empty-deliveries p {
    color: #64748b;
    margin: 0 0 25px 0;
}

.btn-create-first {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #1A4BA0 0%, #0d2d5e 100%);
    color: white;
    padding: 14px 28px;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-create-first:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(26, 75, 160, 0.3);
    color: white;
}

/* Delivery Cards */
.customer-deliveries-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.customer-delivery-card {
    display: flex;
    align-items: center;
    gap: 20px;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    padding: 20px;
    transition: all 0.3s ease;
}

.customer-delivery-card:hover {
    border-color: #1A4BA0;
    box-shadow: 0 8px 25px rgba(26, 75, 160, 0.1);
}

.customer-delivery-card.status-pending {
    border-left: 4px solid #f59e0b;
}

.customer-delivery-card.status-assigned,
.customer-delivery-card.status-picked,
.customer-delivery-card.status-transit {
    border-left: 4px solid #3b82f6;
}

.customer-delivery-card.status-delivered {
    border-left: 4px solid #10b981;
}

.customer-delivery-card.status-cancelled {
    border-left: 4px solid #ef4444;
}

.delivery-card-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    min-width: 80px;
}

.delivery-id {
    font-size: 1.1rem;
    font-weight: 800;
    color: #1A4BA0;
}

.delivery-card-center {
    flex: 1;
}

.delivery-route {
    display: flex;
    align-items: center;
    gap: 15px;
}

.route-point {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.route-point.pickup i {
    color: #10b981;
    margin-top: 3px;
    font-size: 0.6rem;
}

.route-point.delivery i {
    color: #ef4444;
    margin-top: 2px;
}

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

.route-label {
    font-size: 0.75rem;
    color: #94a3b8;
    text-transform: uppercase;
    font-weight: 600;
}

.route-address {
    font-size: 0.95rem;
    color: #1e293b;
    font-weight: 500;
}

.route-line {
    flex: 1;
    height: 2px;
    background: linear-gradient(90deg, #10b981, #3b82f6, #ef4444);
    border-radius: 2px;
    min-width: 50px;
}

.delivery-card-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
}

.delivery-meta {
    display: flex;
    gap: 15px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: #64748b;
}

.meta-item i {
    color: #94a3b8;
}

.meta-item.courier {
    color: #1A4BA0;
}

.meta-item.courier i {
    color: #1A4BA0;
}

.btn-view-detail {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #1A4BA0;
    color: white;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-view-detail:hover {
    background: #0d2d5e;
    color: white;
}

/* Pagination */
.pagination-wrapper {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.pagination-custom {
    display: flex;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
    justify-content: center;
}

.page-link-custom {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 14px;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    color: #64748b;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.page-link-custom:hover {
    border-color: #1A4BA0;
    color: #1A4BA0;
    background: #f0f7ff;
}

.page-link-custom.active {
    background: linear-gradient(135deg, #1A4BA0 0%, #0d2d5e 100%);
    border-color: #1A4BA0;
    color: white;
}

.page-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    color: #94a3b8;
}

.pagination-info {
    font-size: 0.9rem;
    color: #64748b;
}

/* ================================
   ADDRESSES PAGE
   ================================ */

.addresses-section {
    background: white;
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.empty-addresses {
    text-align: center;
    padding: 60px 20px;
}

.empty-addresses .empty-icon {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 2.5rem;
    color: #94a3b8;
}

.empty-addresses h3 {
    font-size: 1.3rem;
    color: #1e293b;
    margin: 0 0 10px 0;
}

.empty-addresses p {
    color: #64748b;
    margin: 0 0 25px 0;
}

/* Addresses Grid */
.addresses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}

.address-card-item {
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
}

.address-card-item:hover {
    border-color: #1A4BA0;
    box-shadow: 0 8px 25px rgba(26, 75, 160, 0.12);
    transform: translateY(-2px);
}

.address-card-item.is-default {
    border-color: #1A4BA0;
    background: linear-gradient(135deg, #1A4BA008 0%, #1A4BA003 100%);
}

.address-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 20px 15px;
    border-bottom: 1px solid #e2e8f0;
}

.address-title-icon {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, #1A4BA0 0%, #0d2d5e 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.address-title-icon.default-icon {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.address-title-wrap {
    flex: 1;
}

.address-card-header h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
}

.default-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #92400e;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
    margin-top: 6px;
}

.default-badge i {
    color: #f59e0b;
}

.address-card-body {
    padding: 20px;
}

.address-info-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 10px;
    font-size: 0.9rem;
    color: #475569;
}

.address-info-row i {
    width: 18px;
    color: #94a3b8;
    margin-top: 2px;
}

.address-contact {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px dashed #e2e8f0;
}

.contact-row {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: #1e293b;
    margin-bottom: 8px;
}

.contact-row i {
    width: 18px;
    color: #1A4BA0;
}

.address-card-actions {
    display: flex;
    gap: 10px;
    padding: 15px 20px;
    background: #f1f5f9;
    border-top: 1px solid #e2e8f0;
}

.action-btn-address {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 15px;
    border: none;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.action-btn-address.default-btn {
    background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
    color: white;
}

.action-btn-address.default-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

.action-btn-address.delete-btn {
    background: white;
    color: #ef4444;
    border: 2px solid #fecaca;
}

.action-btn-address.delete-btn:hover {
    background: #fef2f2;
    border-color: #ef4444;
}

/* Address Modal */
.address-modal-content {
    border: none;
    border-radius: 20px;
    overflow: hidden;
}

.address-modal-header {
    background: linear-gradient(135deg, #1A4BA0 0%, #0d2d5e 100%);
    padding: 20px 25px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.modal-header-icon {
    width: 45px;
    height: 45px;
    background: rgba(255,255,255,0.15);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

.address-modal-header .modal-title {
    color: white;
    font-weight: 700;
    margin: 0;
    flex: 1;
}

.address-modal-body {
    padding: 25px;
}

.form-label-custom {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.form-label-custom i {
    color: #1A4BA0;
}

.address-modal-body .form-control,
.address-modal-body .form-select {
    border-radius: 10px;
    border: 2px solid #e2e8f0;
    transition: all 0.3s ease;
}

.address-modal-body .form-control:focus,
.address-modal-body .form-select:focus {
    border-color: #1A4BA0;
    box-shadow: 0 0 0 4px rgba(26, 75, 160, 0.1);
}

.default-checkbox {
    background: #f8fafc;
    border-radius: 12px;
    padding: 15px;
}

.custom-checkbox {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    position: relative;
}

.custom-checkbox input {
    display: none;
}

.checkmark {
    width: 24px;
    height: 24px;
    border: 2px solid #e2e8f0;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.custom-checkbox input:checked + .checkmark {
    background: linear-gradient(135deg, #1A4BA0 0%, #0d2d5e 100%);
    border-color: #1A4BA0;
}

.custom-checkbox input:checked + .checkmark::after {
    content: '✓';
    color: white;
    font-size: 14px;
}

.checkbox-text {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #475569;
    font-weight: 500;
}

.checkbox-text i {
    color: #f59e0b;
}

.address-modal-footer {
    padding: 20px 25px;
    background: #f8fafc;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.btn-modal-cancel {
    padding: 12px 24px;
    border: 2px solid #e2e8f0;
    background: white;
    border-radius: 10px;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-modal-cancel:hover {
    border-color: #94a3b8;
    color: #374151;
}

.btn-modal-save {
    padding: 12px 24px;
    border: none;
    background: linear-gradient(135deg, #1A4BA0 0%, #0d2d5e 100%);
    border-radius: 10px;
    font-weight: 600;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-modal-save:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(26, 75, 160, 0.3);
}

@media (max-width: 768px) {
    .addresses-grid {
        grid-template-columns: 1fr;
    }
    
    .address-card-actions {
        flex-direction: column;
    }
}

/* ================================
   INVOICES PAGE
   ================================ */

.invoices-section {
    background: white;
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

/* Invoices Filter Bar */
.invoices-filter-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f8fafc;
    border-radius: 12px;
    padding: 15px 20px;
    margin-bottom: 20px;
}

.filter-info {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #64748b;
    font-size: 0.95rem;
}

.filter-info i {
    color: #1A4BA0;
}

.filter-select-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    padding: 8px 15px;
    transition: all 0.3s ease;
}

.filter-select-wrapper:focus-within {
    border-color: #1A4BA0;
    box-shadow: 0 0 0 4px rgba(26, 75, 160, 0.1);
}

.filter-select-wrapper i {
    color: #94a3b8;
}

.filter-select {
    border: none;
    background: transparent;
    font-size: 0.9rem;
    font-weight: 500;
    color: #374151;
    cursor: pointer;
    padding-right: 10px;
    min-width: 150px;
}

.filter-select:focus {
    outline: none;
}

.empty-invoices {
    text-align: center;
    padding: 60px 20px;
}

.empty-invoices .empty-icon {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 2.5rem;
    color: #94a3b8;
}

.empty-invoices h3 {
    font-size: 1.3rem;
    color: #1e293b;
    margin: 0 0 10px 0;
}

.empty-invoices p {
    color: #64748b;
    margin: 0;
}

/* Invoices Grid */
.invoices-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 15px;
}

.invoice-card-item {
    display: flex;
    align-items: center;
    gap: 15px;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 14px;
    padding: 18px;
    transition: all 0.3s ease;
}

.invoice-card-item:hover {
    border-color: #1A4BA0;
    box-shadow: 0 6px 20px rgba(26, 75, 160, 0.1);
    transform: translateY(-2px);
}

.invoice-card-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.3rem;
    flex-shrink: 0;
}

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

.invoice-card-content h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 5px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.invoice-filename {
    font-size: 0.8rem;
    color: #64748b;
    margin: 0 0 5px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.invoice-date {
    font-size: 0.75rem;
    color: #94a3b8;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 5px;
}

.invoice-card-actions {
    flex-shrink: 0;
}

.btn-download-invoice {
    display: flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #1A4BA0 0%, #0d2d5e 100%);
    color: white;
    padding: 10px 18px;
    border-radius: 10px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-download-invoice:hover {
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(26, 75, 160, 0.3);
}

@media (max-width: 768px) {
    .invoices-stats-row {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .invoices-grid {
        grid-template-columns: 1fr;
    }
    
    .invoice-card-item {
        flex-wrap: wrap;
    }
    
    .invoice-card-actions {
        width: 100%;
        margin-top: 10px;
    }
    
    .btn-download-invoice {
        width: 100%;
        justify-content: center;
    }
}

/* ================================
   CREDIT & BALANCE PAGE
   ================================ */

/* Balance Card */
.credit-balance-card {
    background: linear-gradient(135deg, #1A4BA0 0%, #0d2d5e 100%);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 25px;
    color: white;
    position: relative;
    overflow: hidden;
}

.credit-balance-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 300px;
    height: 300px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
}

.credit-balance-card::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 200px;
    height: 200px;
    background: rgba(255,255,255,0.03);
    border-radius: 50%;
}

.balance-content {
    display: flex;
    align-items: center;
    gap: 25px;
    position: relative;
    z-index: 1;
}

.balance-icon {
    width: 70px;
    height: 70px;
    background: rgba(255,255,255,0.15);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
}

.balance-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.balance-label {
    font-size: 0.95rem;
    opacity: 0.85;
}

.balance-amount {
    font-size: 2.2rem;
    font-weight: 700;
}

.balance-status {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 600;
}

.balance-status.active {
    background: rgba(16, 185, 129, 0.2);
    color: #6ee7b7;
}

.balance-status.inactive {
    background: rgba(239, 68, 68, 0.2);
    color: #fca5a5;
}

.balance-warning {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(251, 191, 36, 0.15);
    border-radius: 12px;
    padding: 15px 20px;
    margin-top: 20px;
    font-size: 0.9rem;
    color: #fde68a;
    position: relative;
    z-index: 1;
}

/* Credit Section */
.credit-section {
    background: white;
    border-radius: 20px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.section-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

.section-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.3rem;
}

.section-header h2 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
}

/* Credit Packages Grid */
.credit-packages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.credit-package-card {
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 18px;
    padding: 25px;
    text-align: center;
    position: relative;
    transition: all 0.3s ease;
}

.credit-package-card:hover {
    border-color: #1A4BA0;
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(26, 75, 160, 0.15);
}

.credit-package-card.popular {
    border-color: #f59e0b;
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
}

.popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 5px;
}

.package-header h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 20px 0;
}

.package-amount {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 15px;
}

.package-amount .amount {
    font-size: 2rem;
    font-weight: 800;
    color: #1A4BA0;
}

.package-amount .label {
    font-size: 0.85rem;
    color: #64748b;
}

.package-bonus {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.package-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: white;
    border-radius: 10px;
    margin-bottom: 20px;
}

.total-label {
    font-size: 0.85rem;
    color: #64748b;
}

.total-amount {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1e293b;
}

.btn-apply-package {
    width: 100%;
    padding: 14px 20px;
    border: none;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, #1A4BA0 0%, #0d2d5e 100%);
    color: white;
    transition: all 0.3s ease;
}

.btn-apply-package:hover:not(.disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(26, 75, 160, 0.3);
}

.btn-apply-package.disabled {
    background: #e2e8f0;
    color: #94a3b8;
    cursor: not-allowed;
}

/* Two Columns Layout */
.credit-two-columns {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.credit-column-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.column-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

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

.header-icon.requests {
    background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%);
}

.header-icon.history {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
}

.column-header h3 {
    font-size: 1rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
}

.column-content {
    padding: 15px;
    max-height: 350px;
    overflow-y: auto;
}

.empty-state-small {
    text-align: center;
    padding: 40px 20px;
    color: #94a3b8;
}

.empty-state-small i {
    font-size: 2rem;
    margin-bottom: 10px;
}

.empty-state-small p {
    margin: 0;
    font-size: 0.9rem;
}

/* Requests List */
.requests-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.request-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
    background: #f8fafc;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.request-item:hover {
    background: #f1f5f9;
}

.request-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.request-package {
    font-weight: 600;
    color: #1e293b;
    font-size: 0.9rem;
}

.request-date {
    font-size: 0.8rem;
    color: #94a3b8;
}

.request-status {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.request-status.status-pending {
    background: #fef3c7;
    color: #92400e;
}

.request-status.status-approved {
    background: #d1fae5;
    color: #065f46;
}

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

/* Transactions List */
.transactions-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.transaction-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    background: #f8fafc;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.transaction-item:hover {
    background: #f1f5f9;
}

.transaction-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

.transaction-icon.positive {
    background: #d1fae5;
    color: #059669;
}

.transaction-icon.negative {
    background: #fee2e2;
    color: #dc2626;
}

.transaction-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.transaction-type {
    font-weight: 600;
    color: #1e293b;
    font-size: 0.85rem;
}

.transaction-date {
    font-size: 0.75rem;
    color: #94a3b8;
}

.transaction-amount {
    font-weight: 700;
    font-size: 0.95rem;
}

.transaction-amount.positive {
    color: #059669;
}

.transaction-amount.negative {
    color: #dc2626;
}

@media (max-width: 992px) {
    .credit-two-columns {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .balance-content {
        flex-wrap: wrap;
    }
    
    .balance-status {
        width: 100%;
        justify-content: center;
        margin-top: 15px;
    }
    
    .balance-amount {
        font-size: 1.8rem;
    }
    
    .credit-packages-grid {
        grid-template-columns: 1fr;
    }
}

/* ================================
   ADMIN CREDIT REQUESTS PAGE
   ================================ */

.admin-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, #1A4BA0 0%, #0d2d5e 100%);
    border-radius: 20px;
    padding: 25px 30px;
    margin-bottom: 25px;
    color: white;
}

.header-content {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-icon {
    width: 60px;
    height: 60px;
    background: rgba(255,255,255,0.15);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.header-text h1 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 5px 0;
}

.header-text p {
    margin: 0;
    opacity: 0.85;
    font-size: 0.95rem;
}

.header-stats .stat-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: 600;
}

.stat-badge.pending {
    background: rgba(251, 191, 36, 0.2);
    color: #fde68a;
}

/* Credit Requests Section */
.credit-requests-section {
    background: white;
    border-radius: 20px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.credit-requests-section.processed {
    background: #f8fafc;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f1f5f9;
}

.section-title i {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #1A4BA0 0%, #0d2d5e 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
}

.section-title h2 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
}

.empty-requests {
    text-align: center;
    padding: 50px 20px;
}

.empty-requests .empty-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2rem;
    color: white;
}

.empty-requests h3 {
    font-size: 1.2rem;
    color: #1e293b;
    margin: 0 0 8px 0;
}

.empty-requests p {
    color: #64748b;
    margin: 0;
}

.empty-requests.small {
    padding: 30px;
}

.empty-requests.small p {
    color: #94a3b8;
}

/* Requests Grid */
.requests-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
}

.credit-request-card {
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.credit-request-card.pending {
    border-color: #fbbf24;
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
}

.request-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.customer-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.customer-avatar {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, #1A4BA0 0%, #0d2d5e 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1.1rem;
}

.customer-details h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 3px 0;
}

.customer-details span {
    font-size: 0.8rem;
    color: #64748b;
}

.request-date {
    font-size: 0.8rem;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 5px;
}

.request-package {
    padding: 18px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.package-name {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 12px;
}

.package-name i {
    color: #1A4BA0;
}

.package-details {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.85rem;
}

.detail-item .label {
    color: #64748b;
}

.detail-item .value {
    font-weight: 600;
    color: #1e293b;
}

.detail-item.bonus .value {
    color: #10b981;
}

.detail-item.total {
    background: white;
    padding: 5px 12px;
    border-radius: 20px;
}

.detail-item.total .value {
    color: #1A4BA0;
    font-weight: 700;
}

.request-current-balance {
    padding: 12px 18px;
    background: rgba(255,255,255,0.5);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.85rem;
}

.request-current-balance span {
    color: #64748b;
}

.request-current-balance strong {
    color: #1e293b;
}

.request-actions {
    display: flex;
    gap: 10px;
    padding: 15px 18px;
    background: white;
}

.action-form {
    flex: 1;
}

.btn-approve, .btn-reject {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.btn-approve {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.btn-approve:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.3);
}

.btn-reject {
    background: white;
    color: #ef4444;
    border: 2px solid #fecaca;
}

.btn-reject:hover {
    background: #fef2f2;
    border-color: #ef4444;
}

/* Processed Requests Table */
.processed-requests-table {
    overflow-x: auto;
}

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

.processed-requests-table th,
.processed-requests-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}

.processed-requests-table th {
    background: #f1f5f9;
    font-weight: 600;
    color: #475569;
    font-size: 0.85rem;
}

.processed-requests-table td {
    font-size: 0.9rem;
    color: #1e293b;
}

.customer-cell {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.customer-cell small {
    color: #64748b;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

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

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

@media (max-width: 768px) {
    .admin-page-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .header-content {
        flex-direction: column;
    }
    
    .requests-grid {
        grid-template-columns: 1fr;
    }
    
    .request-header {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }
}

/* ================================
   CUSTOMER DETAIL PAGE (Admin)
   ================================ */

/* Profile Header */
.customer-profile-header {
    background: linear-gradient(135deg, #1A4BA0 0%, #0d2d5e 100%);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 25px;
    color: white;
    display: flex;
    align-items: center;
    gap: 25px;
    position: relative;
}

.back-btn {
    width: 45px;
    height: 45px;
    background: rgba(255,255,255,0.15);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.back-btn:hover {
    background: rgba(255,255,255,0.25);
    color: white;
}

.profile-main {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1;
}

.profile-avatar {
    width: 80px;
    height: 80px;
    background: rgba(255,255,255,0.2);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: 700;
}

.profile-info h1 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 10px 0;
}

.profile-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    opacity: 0.9;
}

.meta-item.type-badge {
    background: rgba(255,255,255,0.15);
    padding: 5px 12px;
    border-radius: 20px;
}

.profile-credit {
    text-align: right;
}

.credit-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.credit-status.active {
    background: rgba(16, 185, 129, 0.2);
    color: #6ee7b7;
}

.credit-status.inactive {
    background: rgba(239, 68, 68, 0.2);
    color: #fca5a5;
}

.credit-balance {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.credit-balance .label {
    font-size: 0.8rem;
    opacity: 0.8;
}

.credit-balance .amount {
    font-size: 1.5rem;
    font-weight: 700;
}

/* Stats Grid */
.customer-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 25px;
}

.cust-stat-card {
    background: white;
    border-radius: 16px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

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

.cust-stat-card .stat-icon {
    width: 55px;
    height: 55px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: white;
}

.cust-stat-card .stat-icon.blue {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
}

.cust-stat-card .stat-icon.green {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.cust-stat-card .stat-icon.purple {
    background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%);
}

.cust-stat-card .stat-icon.orange {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.cust-stat-card .stat-content {
    display: flex;
    flex-direction: column;
}

.cust-stat-card .stat-number {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1e293b;
}

.cust-stat-card .stat-label {
    font-size: 0.85rem;
    color: #64748b;
}

/* Company Info Card */
.company-info-card {
    background: white;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.company-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f1f5f9;
}

.company-header i {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #1A4BA0 0%, #0d2d5e 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.company-header h3 {
    font-size: 1rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
}

.company-details {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.company-details .detail-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.company-details .label {
    font-size: 0.8rem;
    color: #64748b;
}

.company-details .value {
    font-weight: 600;
    color: #1e293b;
}

/* Detail Grid */
.customer-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.detail-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.detail-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 20px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.detail-card-header .header-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
}

.detail-card-header .header-icon.blue {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
}

.detail-card-header .header-icon.green {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.detail-card-header .header-icon.orange {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.detail-card-header .header-icon.red {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.detail-card-header h3 {
    flex: 1;
    font-size: 1rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
}

.count-badge {
    background: #e2e8f0;
    color: #64748b;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 15px;
}

.view-all {
    font-size: 0.85rem;
    color: #1A4BA0;
    text-decoration: none;
    font-weight: 600;
}

.view-all:hover {
    text-decoration: underline;
}

.detail-card-body {
    padding: 15px 20px;
    max-height: 350px;
    overflow-y: auto;
}

.empty-state-mini {
    text-align: center;
    padding: 30px;
    color: #94a3b8;
}

.empty-state-mini i {
    font-size: 2rem;
    margin-bottom: 10px;
}

.empty-state-mini p {
    margin: 0;
    font-size: 0.9rem;
}

/* Addresses List */
.addresses-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.address-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    background: #f8fafc;
    border-radius: 10px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.address-item.default {
    border-color: #1A4BA0;
    background: #f0f5ff;
}

.address-item:hover {
    background: #f1f5f9;
}

.address-icon {
    width: 36px;
    height: 36px;
    background: #e2e8f0;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    flex-shrink: 0;
}

.address-item.default .address-icon {
    background: #1A4BA0;
    color: white;
}

.address-content {
    flex: 1;
}

.address-title {
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.default-badge {
    font-size: 0.7rem;
    background: #1A4BA0;
    color: white;
    padding: 2px 8px;
    border-radius: 10px;
}

.address-text {
    font-size: 0.85rem;
    color: #64748b;
}

.address-district {
    font-size: 0.8rem;
    color: #94a3b8;
}

/* Deliveries List */
.deliveries-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.delivery-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #f8fafc;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.delivery-item:hover {
    background: #f1f5f9;
    transform: translateX(5px);
}

.delivery-id {
    font-weight: 700;
    color: #1A4BA0;
    font-size: 0.9rem;
}

.delivery-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.delivery-district {
    font-size: 0.85rem;
    color: #1e293b;
}

.delivery-date {
    font-size: 0.75rem;
    color: #94a3b8;
}

/* Invoices List */
.invoices-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.invoice-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #f8fafc;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.invoice-item:hover {
    background: #fef2f2;
}

.invoice-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.invoice-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.invoice-number {
    font-weight: 600;
    color: #1e293b;
    font-size: 0.9rem;
}

.invoice-date {
    font-size: 0.75rem;
    color: #94a3b8;
}

.invoice-download {
    width: 35px;
    height: 35px;
    background: #e2e8f0;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
}

.invoice-item:hover .invoice-download {
    background: #1A4BA0;
    color: white;
}

/* Transactions List Detail */
.transactions-list-detail {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.transaction-item-detail {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    background: #f8fafc;
    border-radius: 10px;
}

.trans-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
}

.trans-icon.positive {
    background: #d1fae5;
    color: #059669;
}

.trans-icon.negative {
    background: #fee2e2;
    color: #dc2626;
}

.trans-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.trans-type {
    font-weight: 600;
    color: #1e293b;
    font-size: 0.85rem;
}

.trans-date {
    font-size: 0.75rem;
    color: #94a3b8;
}

.trans-amount {
    font-weight: 700;
    font-size: 0.9rem;
}

.trans-amount.positive {
    color: #059669;
}

.trans-amount.negative {
    color: #dc2626;
}

@media (max-width: 992px) {
    .customer-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .customer-detail-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .customer-profile-header {
        flex-direction: column;
        text-align: center;
    }
    
    .back-btn {
        position: absolute;
        top: 20px;
        left: 20px;
    }
    
    .profile-main {
        flex-direction: column;
    }
    
    .profile-meta {
        justify-content: center;
    }
    
    .profile-credit {
        text-align: center;
    }
    
    .customer-stats-grid {
        grid-template-columns: 1fr;
    }
}

/* ================================
   ADMIN CUSTOMERS LIST PAGE
   ================================ */

.btn-add-new {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: white;
    color: #1A4BA0;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-add-new:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255,255,255,0.3);
}

/* Admin Stats Row */
.admin-stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 25px;
}

.admin-stat-card {
    background: white;
    border-radius: 16px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

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

.admin-stat-card .stat-icon {
    width: 55px;
    height: 55px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: white;
}

.admin-stat-card .stat-icon.blue {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
}

.admin-stat-card .stat-icon.green {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.admin-stat-card .stat-icon.purple {
    background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%);
}

.admin-stat-card .stat-icon.orange {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.admin-stat-card .stat-content {
    display: flex;
    flex-direction: column;
}

.admin-stat-card .stat-number {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1e293b;
}

.admin-stat-card .stat-label {
    font-size: 0.85rem;
    color: #64748b;
}

/* Admin Table Card */
.admin-table-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.table-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 25px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-left i {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #1A4BA0 0%, #0d2d5e 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.header-left h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
}

.search-box {
    display: flex;
    align-items: center;
    gap: 10px;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    padding: 8px 15px;
    transition: all 0.3s ease;
}

.search-box:focus-within {
    border-color: #1A4BA0;
    box-shadow: 0 0 0 4px rgba(26, 75, 160, 0.1);
}

.search-box i {
    color: #94a3b8;
}

.search-box input {
    border: none;
    background: transparent;
    font-size: 0.9rem;
    width: 200px;
    outline: none;
}

/* Admin Table */
.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th {
    padding: 12px 15px;
    text-align: left;
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #64748b;
    background: #f8fafc;
    border-bottom: 2px solid #e2e8f0;
    white-space: nowrap;
}

.admin-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
}

.admin-table tbody tr {
    transition: all 0.2s ease;
}

.admin-table tbody tr:hover {
    background: #f8fafc;
}

.id-badge {
    display: inline-block;
    padding: 4px 10px;
    background: #f1f5f9;
    color: #64748b;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* Customer Cell Compact */
.customer-cell-compact {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.customer-cell-compact .customer-name {
    font-weight: 600;
    color: #1e293b;
    font-size: 0.9rem;
}

.customer-cell-compact .customer-company {
    font-size: 0.75rem;
    color: #1A4BA0;
    font-weight: 500;
}

.customer-email-cell {
    font-size: 0.85rem;
    color: #64748b;
}

/* Courier Cell Compact */
.courier-cell-compact {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.courier-cell-compact .courier-name {
    font-weight: 600;
    color: #1e293b;
    font-size: 0.9rem;
}

.courier-cell-compact .courier-vehicle {
    font-size: 0.75rem;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 5px;
}

.courier-cell-compact .courier-vehicle i {
    color: #1A4BA0;
}

.email-cell, .phone-cell {
    font-size: 0.85rem;
    color: #64748b;
}

/* Status Badge */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.status-badge.active {
    background: #d1fae5;
    color: #059669;
}

.status-badge.inactive {
    background: #f1f5f9;
    color: #94a3b8;
}

/* Earning & Pending Amounts */
.earning-amount {
    font-weight: 600;
    color: #059669;
    font-size: 0.9rem;
}

.pending-amount {
    font-weight: 600;
    color: #f59e0b;
    font-size: 0.9rem;
}

/* Action Button - Pause/Play */
.action-btn.pause {
    background: #fef3c7;
    color: #d97706;
}

.action-btn.pause:hover {
    background: #d97706;
    color: white;
}

.action-btn.play {
    background: #d1fae5;
    color: #059669;
}

.action-btn.play:hover {
    background: #059669;
    color: white;
}

/* Type Badge */
.type-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
}

.type-badge.blue {
    background: #dbeafe;
    color: #1d4ed8;
}

.type-badge.purple {
    background: #ede9fe;
    color: #6d28d9;
}

.type-badge.orange {
    background: #ffedd5;
    color: #c2410c;
}

.type-badge.green {
    background: #d1fae5;
    color: #059669;
}

.type-badge.gray {
    background: #f1f5f9;
    color: #64748b;
}

/* Credit Badge */
.credit-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.credit-badge.active {
    background: #d1fae5;
    color: #059669;
}

.credit-badge.inactive {
    background: #f1f5f9;
    color: #94a3b8;
}

.balance-amount {
    font-weight: 700;
    color: #059669;
    font-size: 0.95rem;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 8px;
}

.action-btn {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.action-btn.wallet {
    background: #ede9fe;
    color: #6d28d9;
}

.action-btn.wallet:hover {
    background: #6d28d9;
    color: white;
}

.action-btn.view {
    background: #dbeafe;
    color: #1d4ed8;
}

.action-btn.view:hover {
    background: #1d4ed8;
    color: white;
}

/* Custom Modal */
.custom-modal {
    border: none;
    border-radius: 20px;
    overflow: hidden;
}

.custom-modal-header {
    background: linear-gradient(135deg, #1A4BA0 0%, #0d2d5e 100%);
    padding: 20px 25px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.custom-modal-header.purple {
    background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%);
}

.modal-header-icon {
    width: 45px;
    height: 45px;
    background: rgba(255,255,255,0.15);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

.custom-modal-header .modal-title {
    color: white;
    font-weight: 700;
    margin: 0;
    flex: 1;
}

.custom-modal-body {
    padding: 25px;
}

.form-section {
    margin-bottom: 25px;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f1f5f9;
}

.section-title i {
    color: #1A4BA0;
}

.custom-modal-footer {
    padding: 20px 25px;
    background: #f8fafc;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

/* Customer Modal Header */
.customer-modal-header {
    text-align: center;
    margin-bottom: 25px;
}

.customer-modal-header h4 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 15px 0;
}

.current-balance-display {
    display: inline-flex;
    flex-direction: column;
    background: linear-gradient(135deg, #1A4BA0 0%, #0d2d5e 100%);
    padding: 15px 30px;
    border-radius: 15px;
    color: white;
}

.current-balance-display .label {
    font-size: 0.85rem;
    opacity: 0.9;
}

.current-balance-display .amount {
    font-size: 1.5rem;
    font-weight: 700;
}

.credit-toggle-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f8fafc;
    padding: 15px 20px;
    border-radius: 12px;
    margin-bottom: 20px;
}

.toggle-label {
    font-weight: 600;
    color: #1e293b;
}

.credit-toggle-btn {
    padding: 10px 20px;
    border-radius: 25px;
    border: none;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.credit-toggle-btn.active {
    background: #d1fae5;
    color: #059669;
}

.credit-toggle-btn.inactive {
    background: #fee2e2;
    color: #dc2626;
}

.credit-toggle-btn:hover {
    transform: scale(1.02);
}

.credit-actions-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.credit-action-card {
    background: #f8fafc;
    border-radius: 12px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.credit-action-card .action-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

.credit-action-card.add .action-header {
    color: #059669;
}

.credit-action-card.deduct .action-header {
    color: #dc2626;
}

.credit-action-card input {
    border-radius: 10px;
}

.btn-credit-action {
    padding: 10px;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-credit-action.add {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.btn-credit-action.deduct {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
}

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

@media (max-width: 992px) {
    .admin-stats-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .admin-stats-row {
        grid-template-columns: 1fr;
    }
    
    .table-card-header {
        flex-direction: column;
        gap: 15px;
    }
    
    .search-box input {
        width: 100%;
    }
    
    .credit-actions-grid {
        grid-template-columns: 1fr;
    }
}

/* Responsive */
@media (max-width: 992px) {
    .customer-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .customer-dashboard-header {
        flex-direction: column;
        text-align: center;
        gap: 20px;
        padding: 20px;
    }
    
    .dashboard-welcome {
        flex-direction: column;
    }
    
    .welcome-text h1 {
        font-size: 1.2rem;
    }
    
    .customer-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .customer-stat-card {
        padding: 15px;
    }
    
    .customer-stat-card .stat-icon {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
    
    .stat-number {
        font-size: 1.4rem;
    }
    
    .quick-actions-bar {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .quick-action-btn {
        justify-content: center;
        padding: 12px 15px;
        font-size: 0.85rem;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .section-filters {
        width: 100%;
        overflow-x: auto;
        padding-bottom: 5px;
    }
    
    .customer-delivery-card {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }
    
    .delivery-card-left {
        flex-direction: row;
        justify-content: space-between;
        width: 100%;
    }
    
    .delivery-route {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    
    .route-line {
        width: 2px;
        height: 20px;
        min-width: 2px;
        margin-left: 3px;
    }
    
    .delivery-card-right {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

/* Category Selection New */
.delivery-category-selection-new {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.category-card-new {
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
}

.category-card-new:hover {
    border-color: #1A4BA0;
    transform: translateY(-2px);
}

.category-card-new.selected {
    background: linear-gradient(135deg, #1A4BA015 0%, #1A4BA008 100%);
    border-color: #1A4BA0;
}

.category-card-icon {
    width: 55px;
    height: 55px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.category-card-content h4 {
    font-size: 1rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 4px 0;
}

.category-card-content p {
    font-size: 0.85rem;
    color: #64748b;
    margin: 0;
}

.category-card-check {
    position: absolute;
    top: 12px;
    right: 12px;
    font-size: 1.2rem;
    color: #1A4BA0;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.3s ease;
}

.category-card-new.selected .category-card-check {
    opacity: 1;
    transform: scale(1);
}

/* Weight Section New */
.weight-section-new {
    margin-top: 25px;
    padding: 25px;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-radius: 16px;
    animation: slideDown 0.3s ease;
}

.weight-section-header {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    color: #92400e;
    margin-bottom: 15px;
    font-size: 1rem;
}

.weight-section-header i {
    font-size: 1.2rem;
}

.weight-input-wrapper {
    display: flex;
    align-items: center;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid #fbbf24;
}

.weight-input-new {
    flex: 1;
    border: none;
    padding: 15px 20px;
    font-size: 1.5rem;
    font-weight: 700;
    text-align: center;
    outline: none;
    color: #1e293b;
}

.weight-input-new::placeholder {
    color: #d1d5db;
}

.weight-unit {
    padding: 15px 25px;
    background: #fbbf24;
    color: white;
    font-weight: 700;
    font-size: 1.1rem;
}

.weight-hint-new {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    padding: 10px 15px;
    background: rgba(255,255,255,0.7);
    border-radius: 10px;
    font-size: 0.9rem;
    color: #92400e;
}

.weight-hint-new.warning {
    background: #fef2f2;
    color: #dc2626;
}

.weight-hint-new.success {
    background: #f0fdf4;
    color: #16a34a;
}

/* Vehicle Section New */
.vehicle-section-new {
    margin-top: 25px;
    animation: slideDown 0.3s ease;
}

.vehicle-section-header {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    color: #374151;
    margin-bottom: 15px;
    font-size: 1rem;
}

.vehicle-selection-new {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.vehicle-card-new {
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 14px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
}

.vehicle-card-new:hover:not(.disabled) {
    border-color: #1A4BA0;
    transform: translateY(-2px);
}

.vehicle-card-new.selected {
    background: linear-gradient(135deg, #1A4BA015 0%, #1A4BA008 100%);
    border-color: #1A4BA0;
}

.vehicle-card-new.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.vehicle-card-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
}

.vehicle-card-info {
    flex: 1;
}

.vehicle-name {
    display: block;
    font-weight: 700;
    color: #1e293b;
    font-size: 1rem;
}

.vehicle-capacity {
    display: block;
    font-size: 0.85rem;
    color: #64748b;
    margin-top: 3px;
}

.vehicle-card-check {
    width: 26px;
    height: 26px;
    background: #1A4BA0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.8rem;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.3s ease;
}

.vehicle-card-new.selected .vehicle-card-check {
    opacity: 1;
    transform: scale(1);
}

/* Speed Selection (Delivery Type) */
.delivery-speed-selection {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.speed-card {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.speed-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.speed-card.selected {
    border-color: #1A4BA0;
    box-shadow: 0 8px 25px rgba(26, 75, 160, 0.2);
}

.speed-card-header {
    padding: 20px;
    text-align: center;
    color: white;
}

.speed-card-header i {
    font-size: 2rem;
}

.speed-card-body {
    padding: 20px;
    text-align: center;
}

.speed-card-body h4 {
    font-size: 1rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 10px 0;
}

.speed-time {
    font-size: 0.9rem;
    color: #64748b;
    margin-bottom: 12px;
}

.speed-time i {
    margin-right: 5px;
}

.price-badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.price-badge.standard {
    background: #f0f9ff;
    color: #0284c7;
}

.price-badge.extra {
    background: #fef3c7;
    color: #d97706;
}

.speed-card-check {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 28px;
    height: 28px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1A4BA0;
    font-size: 1rem;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.speed-card.selected .speed-card-check {
    opacity: 1;
    transform: scale(1);
}

/* Responsive */
@media (max-width: 768px) {
    .new-delivery-header {
        padding: 15px 20px;
        margin-bottom: 20px;
    }
    
    .new-delivery-header-content {
        gap: 12px;
    }
    
    .new-delivery-icon {
        width: 42px;
        height: 42px;
        font-size: 1.2rem;
        border-radius: 10px;
    }
    
    .new-delivery-title h1 {
        font-size: 1.1rem;
    }
    
    .new-delivery-title p {
        font-size: 0.8rem;
    }
    
    .form-step-header {
        padding: 15px;
    }
    
    .form-step-body {
        padding: 15px;
    }
    
    .step-number {
        width: 38px;
        height: 38px;
        font-size: 1rem;
        border-radius: 10px;
    }
    
    .step-info h3 {
        font-size: 1rem;
    }
    
    .step-info p {
        font-size: 0.8rem;
    }
    
    .address-type-selection {
        grid-template-columns: 1fr;
    }
    
    .delivery-category-selection-new {
        grid-template-columns: 1fr;
    }
    
    .vehicle-selection-new {
        grid-template-columns: 1fr;
    }
    
    .delivery-speed-selection {
        grid-template-columns: 1fr;
    }
    
    .saved-addresses-grid {
        grid-template-columns: 1fr;
    }
    
    .btn-submit-delivery {
        padding: 15px 20px;
    }
}

/* =============================================
   DELIVERY TYPE SELECTION - Customer Form
   ============================================= */

.delivery-type-selection {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.delivery-type-option {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: #fff;
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.delivery-type-option:hover {
    border-color: #1A4BA0;
    background: #f8fafc;
}

.delivery-type-option.selected {
    border-color: #1A4BA0;
    background: linear-gradient(135deg, #f0f7ff 0%, #e8f0fc 100%);
    box-shadow: 0 4px 15px rgba(26, 75, 160, 0.15);
}

.type-option-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.type-option-info {
    flex: 1;
}

.type-option-name {
    display: block;
    font-weight: 700;
    color: #1e293b;
    font-size: 1rem;
    margin-bottom: 2px;
}

.type-option-time {
    display: block;
    font-size: 0.8rem;
    color: #64748b;
}

.type-option-time i {
    margin-right: 4px;
}

.type-option-price {
    text-align: right;
    flex-shrink: 0;
}

.price-standard {
    font-size: 0.85rem;
    color: #64748b;
    font-weight: 500;
}

.price-extra {
    font-size: 1rem;
    font-weight: 700;
    color: #1A4BA0;
}

.type-option-check {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1A4BA0;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.delivery-type-option.selected .type-option-check {
    opacity: 1;
}

/* Fee Summary Card */
.fee-summary-card {
    background: #fff;
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.fee-summary-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 20px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-bottom: 1px solid #e2e8f0;
    font-weight: 600;
    color: #1e293b;
}

.fee-summary-header i {
    color: #1A4BA0;
}

.fee-summary-body {
    padding: 16px 20px;
}

.fee-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
}

.fee-row .fee-label {
    font-size: 0.9rem;
    color: #64748b;
}

.fee-row .fee-value {
    font-size: 0.95rem;
    font-weight: 600;
    color: #334155;
}

.fee-row.extra-fee-row .fee-value {
    color: #f59e0b;
}

.fee-row.total-row {
    border-top: 2px dashed #e2e8f0;
    margin-top: 8px;
    padding-top: 16px;
}

.fee-row.total-row .fee-label {
    font-weight: 700;
    color: #1e293b;
    font-size: 1rem;
}

.fee-row.total-row .fee-value {
    font-size: 1.25rem;
    font-weight: 800;
    color: #1A4BA0;
}

/* Legacy Delivery Card Admin (keeping for compatibility) */
.delivery-card-admin {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: #ffffff;
    border: none;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    position: relative;
}

.delivery-card-admin::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #1A4BA0, #3b82f6);
}

.delivery-card-admin:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(26, 75, 160, 0.15);
}

.delivery-card-admin .card-body {
    padding: 1.25rem;
}

.delivery-card-admin h6 {
    color: #1e293b;
    font-weight: 700;
    font-size: 1rem;
}

.delivery-card-admin small.text-muted {
    color: #64748b !important;
    font-size: 0.8rem;
}

.delivery-card-admin strong {
    color: #1A4BA0;
    font-weight: 600;
}

#active-deliveries-grid {
    display: flex;
    flex-wrap: wrap;
}

#active-deliveries-grid .col-md-3 {
    flex: 0 0 25%;
    max-width: 25%;
}

@media (max-width: 992px) {
    #active-deliveries-grid .col-md-3 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

@media (max-width: 768px) {
    #active-deliveries-grid .col-md-3 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* Urgent Delivery Card - Son 30 dakikadır atanmamış siparişler */
.urgent-delivery-card {
    background: linear-gradient(135deg, #ffffff 0%, #fef2f2 100%) !important;
    border: none !important;
    border-radius: 16px;
    animation: urgent-pulse 2s infinite;
}

.urgent-delivery-card::before {
    background: linear-gradient(90deg, #ef4444, #f87171) !important;
}

@keyframes urgent-pulse {
    0%, 100% {
        box-shadow: 0 2px 12px rgba(239, 68, 68, 0.15);
    }
    50% {
        box-shadow: 0 4px 20px rgba(239, 68, 68, 0.3);
    }
}

.urgent-delivery-card .card-body {
    color: #991b1b;
}

.urgent-delivery-card h6 {
    color: #991b1b !important;
    font-weight: 700;
}

.urgent-delivery-card strong {
    color: #dc2626 !important;
}

.urgent-delivery-card:hover {
    background: linear-gradient(135deg, #ffffff 0%, #fee2e2 100%) !important;
    transform: translateY(-6px);
    animation: none;
    box-shadow: 0 12px 30px rgba(239, 68, 68, 0.25);
}

/* Badge ve butonların kendi renklerini koru */
.urgent-delivery-card .badge.bg-info {
    background-color: #0ea5e9 !important;
    color: #fff !important;
}

.urgent-delivery-card .badge.bg-warning {
    background-color: #f59e0b !important;
    color: #fff !important;
}

.urgent-delivery-card .badge.bg-secondary {
    background-color: #64748b !important;
    color: #fff !important;
}

.urgent-delivery-card .btn-outline-primary {
    background-color: transparent !important;
    color: #0d6efd !important;
    border-color: #0d6efd !important;
}

.urgent-delivery-card .btn-outline-primary:hover {
    background-color: #0d6efd !important;
    color: #fff !important;
}

.urgent-delivery-card .alert-success {
    background-color: rgba(34, 197, 94, 0.2) !important;
    border-color: rgba(34, 197, 94, 0.4) !important;
    color: #15803d !important;
}

.urgent-delivery-card .badge.bg-danger {
    background-color: #dc2626 !important;
    color: #fff !important;
}

/* Sidebar Styles */
body {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.wrapper {
    display: flex;
    width: 100%;
    align-items: stretch;
}

#sidebar {
    min-width: 260px;
    max-width: 260px;
    background: linear-gradient(180deg, #1A4BA0 0%, #0d2d66 100%);
    color: #fff;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 1000;
}

#sidebar.active {
    margin-left: -260px;
}

#sidebar .sidebar-header {
    padding: 25px 20px;
    background: rgba(13, 45, 102, 0.5);
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    text-align: center;
}

#sidebar .sidebar-header h4 {
    color: #fff;
    margin: 0;
    font-size: 1.3rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

#sidebar .sidebar-header h4 i {
    margin-right: 8px;
    color: #93c5fd;
}

#sidebar .sidebar-header .logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px 0;
}

#sidebar .sidebar-header .sidebar-logo {
    max-width: 100%;
    max-height: 60px;
    object-fit: contain;
    filter: brightness(0) invert(1);
    transition: all 0.3s ease;
}

#sidebar .sidebar-header .sidebar-logo:hover {
    transform: scale(1.05);
    filter: brightness(0) invert(1) drop-shadow(0 0 8px rgba(147, 197, 253, 0.5));
}

#sidebar ul.components {
    padding: 15px 0;
}

#sidebar ul li {
    padding: 0;
    margin: 2px 10px;
}

#sidebar ul li a.nav-link {
    padding: 12px 18px;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    color: #cbd5e1;
    text-decoration: none;
    transition: all 0.2s ease;
    border-radius: 8px;
    margin-bottom: 4px;
    font-weight: 500;
}

#sidebar ul li a.nav-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.15);
    transform: translateX(4px);
}

#sidebar ul li a.nav-link.active {
    color: #fff;
    background: linear-gradient(90deg, #2563eb 0%, #1d4ed8 100%);
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

#sidebar ul li a.nav-link i {
    margin-right: 12px;
    width: 20px;
    text-align: center;
    font-size: 1.1rem;
}

#sidebar .sidebar-footer {
    padding: 20px;
    background: rgba(13, 45, 102, 0.5);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    position: absolute;
    bottom: 0;
    width: 100%;
}

#sidebar .sidebar-footer .nav-link {
    color: #cbd5e1;
    padding: 10px 0;
    border-radius: 8px;
}

#sidebar .sidebar-footer .nav-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.15);
}

#content {
    width: 100%;
    padding: 0;
    min-height: 100vh;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-left: 260px;
    background: #f8fafc;
}

#content.active {
    margin-left: 0;
}

.content-wrapper {
    background: #f8fafc;
}

.content-wrapper .navbar {
    background: #fff !important;
    border-bottom: 1px solid #e2e8f0;
    padding: 12px 20px;
}

.content-wrapper .navbar .btn {
    border-radius: 8px;
}

@media (max-width: 768px) {
    #sidebar {
        margin-left: -250px;
    }
    
    #sidebar.active {
        margin-left: 0;
    }
    
    #content {
        margin-left: 0;
    }
    
    #content.active {
        margin-left: 0;
    }
}

/* Notification Dropdown - Modern Design */
.notification-btn {
    border-radius: 50%;
    width: 40px;
    height: 40px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
    background: #fff;
}

.notification-btn:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    transform: scale(1.05);
}

.notification-badge {
    font-size: 0.65rem;
    padding: 0.25em 0.5em;
    min-width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notification-dropdown {
    min-width: 360px;
    max-width: 400px;
    max-height: 500px;
    overflow: hidden;
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 1050;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 0;
    animation: slideDown 0.3s ease-out;
}

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

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

.notification-header {
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-bottom: 1px solid #e2e8f0;
    border-radius: 12px 12px 0 0;
}

.notification-header h6 {
    color: #1e293b;
    font-size: 0.95rem;
    font-weight: 600;
}

.notification-header h6 i {
    color: #1A4BA0;
}

.notification-body {
    max-height: 400px;
    overflow-y: auto;
    padding: 0.5rem 0;
}

.notification-body::-webkit-scrollbar {
    width: 6px;
}

.notification-body::-webkit-scrollbar-track {
    background: #f8fafc;
}

.notification-body::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

.notification-body::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.notification-empty {
    padding: 3rem 1.5rem;
    text-align: center;
}

.notification-empty .empty-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-size: 1.5rem;
}

.notification-empty .empty-text {
    color: #475569;
    font-weight: 500;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.notification-empty .empty-subtext {
    color: #94a3b8;
    font-size: 0.8rem;
}

/* Notification Items (for future use) */
.notification-item {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #f1f5f9;
    transition: background 0.2s ease;
    cursor: pointer;
}

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

.notification-item:hover {
    background: #f8fafc;
}

.notification-item.unread {
    background: #f0f9ff;
}

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

.notification-item .notification-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.9rem;
}

.notification-item .notification-details {
    flex: 1;
    min-width: 0;
}

.notification-item .notification-title {
    font-weight: 500;
    color: #1e293b;
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}

.notification-item .notification-message {
    color: #64748b;
    font-size: 0.8rem;
    line-height: 1.4;
    margin-bottom: 0.25rem;
}

.notification-item .notification-time {
    color: #94a3b8;
    font-size: 0.75rem;
}

/* ================================================
   LOGIN PAGE - Modern Design
   ================================================ */
.login-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #1A4BA0 0%, #0d2d66 50%, #2563eb 100%);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    overflow: hidden;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Floating shapes background */
.login-page::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    top: -200px;
    right: -200px;
    animation: float 6s ease-in-out infinite;
}

.login-page::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    bottom: -150px;
    left: -150px;
    animation: float 8s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-30px) rotate(10deg); }
}

.login-container {
    width: 100%;
    max-width: 440px;
    position: relative;
    z-index: 10;
}

.login-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    box-shadow: 
        0 25px 50px -12px rgba(0, 0, 0, 0.25),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    overflow: hidden;
    animation: cardAppear 0.6s ease-out;
}

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

.login-header {
    padding: 40px 40px 30px;
    text-align: center;
    background: linear-gradient(135deg, #f8fafc 0%, #fff 100%);
    border-bottom: 1px solid #f1f5f9;
}

.login-logo {
    max-width: 180px;
    height: auto;
    margin-bottom: 20px;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
    transition: transform 0.3s ease;
}

.login-logo:hover {
    transform: scale(1.05);
}

.login-header h1 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.login-header p {
    color: #64748b;
    font-size: 0.95rem;
    margin: 0;
}

.login-body {
    padding: 35px 40px 40px;
}

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

.login-form .form-label {
    font-weight: 600;
    color: #374151;
    font-size: 0.875rem;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.login-form .form-label i {
    color: #1A4BA0;
    font-size: 0.9rem;
}

.login-form .form-control {
    height: 52px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 12px 16px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #f9fafb;
}

.login-form .form-control:focus {
    border-color: #1A4BA0;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(26, 75, 160, 0.15);
    outline: none;
}

.login-form .form-control::placeholder {
    color: #9ca3af;
}

.login-btn {
    width: 100%;
    height: 54px;
    background: linear-gradient(135deg, #1A4BA0 0%, #0d2d66 100%);
    border: none;
    border-radius: 12px;
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(26, 75, 160, 0.4);
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(26, 75, 160, 0.5);
}

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

.login-btn i {
    font-size: 1.1rem;
}

.login-footer {
    margin-top: 30px;
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid #f1f5f9;
}

.login-footer p {
    color: #64748b;
    font-size: 0.9rem;
    margin-bottom: 0;
}

.login-footer a {
    color: #1A4BA0;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}

.login-footer a:hover {
    color: #0d2d66;
    text-decoration: underline;
}

.login-alert {
    border: none;
    border-radius: 12px;
    padding: 14px 18px;
    margin-bottom: 24px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.login-alert.alert-danger {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    color: #991b1b;
}

.login-alert i {
    font-size: 1.1rem;
}

/* Demo credentials box */
.demo-credentials {
    background: linear-gradient(135deg, #eef3fb 0%, #dce6f5 100%);
    border-radius: 12px;
    padding: 16px;
    margin-top: 20px;
    border: 1px solid #b8cce8;
}

.demo-credentials .demo-title {
    font-size: 0.75rem;
    font-weight: 700;
    color: #1A4BA0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.demo-credentials .demo-info {
    font-size: 0.85rem;
    color: #0d2d66;
    line-height: 1.6;
}

.demo-credentials code {
    background: rgba(255, 255, 255, 0.7);
    padding: 2px 8px;
    border-radius: 6px;
    font-family: 'Monaco', 'Consolas', monospace;
    font-size: 0.8rem;
    color: #1A4BA0;
}

/* Quick Login Section */
.quick-login-section {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #e5e7eb;
}

.quick-login-title {
    text-align: center;
    margin-bottom: 16px;
    position: relative;
}

.quick-login-title span {
    background: #fff;
    padding: 0 12px;
    font-size: 0.75rem;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.quick-login-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.quick-login-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 12px 8px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    background: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    gap: 6px;
}

.quick-login-btn i {
    font-size: 1.25rem;
}

.quick-login-btn span {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.quick-login-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* Admin Button */
.quick-login-btn.admin {
    border-color: #dc2626;
    color: #dc2626;
}

.quick-login-btn.admin:hover {
    background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
    color: #fff;
    border-color: #dc2626;
}

/* Courier Button */
.quick-login-btn.courier {
    border-color: #7c3aed;
    color: #7c3aed;
}

.quick-login-btn.courier:hover {
    background: linear-gradient(135deg, #7c3aed 0%, #8b5cf6 100%);
    color: #fff;
    border-color: #7c3aed;
}

/* Customer - Individual */
.quick-login-btn.customer-individual {
    border-color: #1A4BA0;
    color: #1A4BA0;
}

.quick-login-btn.customer-individual:hover {
    background: linear-gradient(135deg, #1A4BA0 0%, #2563eb 100%);
    color: #fff;
    border-color: #1A4BA0;
}

/* Customer - Corporate */
.quick-login-btn.customer-corporate {
    border-color: #059669;
    color: #059669;
}

.quick-login-btn.customer-corporate:hover {
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
    color: #fff;
    border-color: #059669;
}

/* Customer - Sole Proprietorship */
.quick-login-btn.customer-sole {
    border-color: #d97706;
    color: #d97706;
}

.quick-login-btn.customer-sole:hover {
    background: linear-gradient(135deg, #d97706 0%, #f59e0b 100%);
    color: #fff;
    border-color: #d97706;
}

/* Customer - Limited */
.quick-login-btn.customer-limited {
    border-color: #0891b2;
    color: #0891b2;
}

.quick-login-btn.customer-limited:hover {
    background: linear-gradient(135deg, #0891b2 0%, #06b6d4 100%);
    color: #fff;
    border-color: #0891b2;
}

@media (max-width: 480px) {
    .quick-login-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .quick-login-btn {
        padding: 10px 6px;
    }
    
    .quick-login-btn i {
        font-size: 1.1rem;
    }
    
    .quick-login-btn span {
        font-size: 0.65rem;
    }
}

/* Responsive */
@media (max-width: 480px) {
    .login-header {
        padding: 30px 25px 20px;
    }
    
    .login-body {
        padding: 25px;
    }
    
    .login-logo {
        max-width: 150px;
    }
    
    .login-header h1 {
        font-size: 1.5rem;
    }
}
