/*
 * eCRM Components CSS
 * Centralized stylesheet for all Blazor Razor components
 * Version: 1.0
 * Last Updated: 2025
 */

/* ==========================================
   1. ACTION PANELS & BUTTONS
   ========================================== */

/* Action Panel Strip - Used in BookingDetail, QuickBooking, ChangePassword */
.booking-action-panel,
.password-action-panel {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    background: linear-gradient(135deg, #ECECEC 0%, #F5F5F5 50%, #ECECEC 100%);
    border: 1px solid #d0d0d0;
    border-radius: 8px;
    padding: 12px 20px;
    margin-top: 20px;
    box-shadow: 0 2px 8px rgba(15, 68, 146, 0.08);
    width: 100%;
    min-height: 60px;
}

.action-panel-buttons {
    display: flex;
    gap: 12px;
    align-items: center;
}

.action-panel-label {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 16px;
    color: #0f4492;
    letter-spacing: 0.5px;
}

    .action-panel-label i {
        font-size: 22px;
        color: #0f4492;
    }

.action-panel-divider {
    width: 2px;
    height: 40px;
    background: linear-gradient(180deg, transparent 0%, #d0d0d0 50%, transparent 100%);
    margin: 0 10px;
}

/* Primary Action Button */
.action-btn-primary {
    background-color: #5C80B4 !important;
    color: white !important;
    border: none !important;
    padding: 8px 20px !important;
    border-radius: 6px !important;
    font-weight: 600 !important;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif !important;
    font-size: 14px !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    box-shadow: 0 2px 4px rgba(92, 128, 180, 0.3) !important;
    min-width: 140px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

    .action-btn-primary i {
        font-size: 16px;
        display: inline-flex;
        align-items: center;
        color: white !important;
        background: transparent !important;
        background-color: transparent !important;
    }

        .action-btn-primary i::before {
            background: transparent !important;
            background-color: transparent !important;
        }

    .action-btn-primary:hover {
        background-color: #0F4492 !important;
        box-shadow: 0 4px 8px rgba(15, 68, 146, 0.4) !important;
        transform: translateY(-1px) !important;
    }

    .action-btn-primary:active {
        transform: translateY(0) !important;
        box-shadow: 0 1px 3px rgba(15, 68, 146, 0.3) !important;
    }

/* Secondary Action Button - Cancel/Close */
.action-btn-secondary {
    background-color: #6c757d !important;
    color: white !important;
    border: none !important;
    padding: 8px 20px !important;
    border-radius: 6px !important;
    font-weight: 600 !important;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif !important;
    font-size: 14px !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    box-shadow: 0 2px 4px rgba(108, 117, 125, 0.3) !important;
    min-width: 140px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

    .action-btn-secondary i {
        font-size: 16px;
        display: inline-flex;
        align-items: center;
        color: white !important;
        background: transparent !important;
        background-color: transparent !important;
    }

        .action-btn-secondary i::before {
            background: transparent !important;
            background-color: transparent !important;
        }

    .action-btn-secondary:hover {
        background-color: #545b62 !important;
        box-shadow: 0 4px 8px rgba(84, 91, 98, 0.4) !important;
        transform: translateY(-1px) !important;
    }

    .action-btn-secondary:active {
        transform: translateY(0) !important;
        box-shadow: 0 1px 3px rgba(84, 91, 98, 0.3) !important;
    }

/* ==========================================
   2. DEVEXTREME TABS STYLING
   ========================================== */

/* Enhanced Tab Styling - Used in BookingDetail */
.booking-tabs {
    border: 1px solid #dee2e6;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

    /* Tab Header Enhancements */
    .booking-tabs .dxbs-tab-header {
        background: linear-gradient(180deg, #f8f9fa 0%, #e9ecef 100%);
        border-bottom: 2px solid #0F4492;
        padding: 4px 8px;
    }

    .booking-tabs .nav-tabs {
        border-bottom: none !important;
        gap: 4px;
    }

    .booking-tabs .nav-link {
        border: none !important;
        border-radius: 6px 6px 0 0 !important;
        padding: 12px 24px !important;
        font-weight: 600 !important;
        font-size: 14px !important;
        color: #495057 !important;
        background-color: transparent !important;
        transition: all 0.3s ease !important;
        position: relative;
        margin-bottom: -2px;
    }

        .booking-tabs .nav-link i {
            font-size: 18px;
            margin-right: 8px;
            vertical-align: middle;
            transition: transform 0.3s ease;
        }

        .booking-tabs .nav-link:hover {
            background-color: rgba(15, 68, 146, 0.1) !important;
            color: #0F4492 !important;
            transform: translateY(-2px);
        }

            .booking-tabs .nav-link:hover i {
                transform: scale(1.1);
            }

        .booking-tabs .nav-link.active {
            background-color: white !important;
            color: #0F4492 !important;
            border-bottom: 3px solid #0F4492 !important;
            box-shadow: 0 -2px 8px rgba(15, 68, 146, 0.15);
        }

            .booking-tabs .nav-link.active i {
                color: #0F4492 !important;
            }

/* Tab Content Styling */
.dxbs-tab-content {
    display: block !important;
    min-height: 300px !important;
    background: white !important;
    padding: 24px !important;
    border-radius: 0 0 8px 8px;
}

.tab-pane {
    display: block !important;
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Tab Icons with Gradient - Specific icon colors */
.booking-tabs .nav-link i.bi-people-fill {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.booking-tabs .nav-link.active i.bi-people-fill {
    background: linear-gradient(135deg, #0F4492 0%, #5C80B4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.booking-tabs .nav-link i.bi-building {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.booking-tabs .nav-link.active i.bi-building {
    background: linear-gradient(135deg, #0F4492 0%, #5C80B4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.booking-tabs .nav-link i.bi-truck {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.booking-tabs .nav-link.active i.bi-truck {
    background: linear-gradient(135deg, #0F4492 0%, #5C80B4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.booking-tabs .nav-link i.bi-gear {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.booking-tabs .nav-link.active i.bi-gear {
    background: linear-gradient(135deg, #0F4492 0%, #5C80B4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ==========================================
   3. GRID STYLING
   ========================================== */

/* Passenger Grid Styling */
.passenger-grid {
    border: 1px solid #dee2e6;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    min-height: 500px !important;
}

    .passenger-grid .dxbl-grid-header-content {
        background: linear-gradient(180deg, #f8f9fa 0%, #e9ecef 100%);
        font-weight: 600;
        color: #495057;
    }

    .passenger-grid .dxbl-grid-data-row:hover {
        background-color: #f8f9fa;
        cursor: pointer;
    }

    .passenger-grid .dxbl-grid-search-box {
        border-radius: 6px;
        border: 1px solid #ced4da;
    }

        .passenger-grid .dxbl-grid-search-box:focus {
            border-color: #0F4492;
            box-shadow: 0 0 0 0.2rem rgba(15, 68, 146, 0.25);
        }

    .passenger-grid .dxbl-pager {
        background: #f8f9fa;
        border-top: 1px solid #dee2e6;
        padding: 12px;
    }

    /* Grid Toolbar Styling */
    .passenger-grid .dxbl-grid-toolbar {
        background: linear-gradient(180deg, #f8f9fa 0%, #e9ecef 100%);
        border-bottom: 2px solid #0F4492;
        padding: 12px 16px;
    }

        .passenger-grid .dxbl-grid-toolbar h5 {
            color: #0F4492;
            font-weight: 700;
            margin: 0;
        }

            .passenger-grid .dxbl-grid-toolbar h5 i {
                background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
                -webkit-background-clip: text;
                -webkit-text-fill-color: transparent;
                background-clip: text;
            }

    /* Column Chooser Button */
    .passenger-grid .dxbl-toolbar-item {
        margin: 0;
    }

/* ==========================================
   4. PASSENGER-SPECIFIC STYLING
   ========================================== */

/* Passenger Tab Content */
.passenger-tab-content {
    min-height: 600px !important;
    background-color: white !important;
    padding: 20px !important;
    display: block !important;
    visibility: visible !important;
}

/* Readonly passenger row styling */
.readonly-passenger-row {
    cursor: pointer;
    transition: background-color 0.2s;
}

    .readonly-passenger-row:hover {
        background-color: #f8f9fa;
    }

/* Passenger Attachments */
.passenger-attachments-row {
    background-color: #f8f9fa;
}

.passenger-attachments-container {
    border-left: 3px solid #0d6efd;
    border-radius: 4px;
}

    .passenger-attachments-container label {
        color: #495057;
        margin-bottom: 0.5rem;
    }

/* ==========================================
   5. PAGE HEADERS & TITLES
   ========================================== */

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #0f4492;
}

.page-title {
    font-size: 24px;
    font-weight: 600;
    color: #0f4492;
    margin: 0;
}

.action-buttons {
    display: flex;
    gap: 10px;
}

/* ==========================================
   6. ROLE MANAGEMENT BUTTONS
   ========================================== */

.btn-add-role,
.btn-refresh {
    border: none !important;
    padding: 10px 20px !important;
    border-radius: 6px !important;
    font-weight: 600 !important;
    transition: all 0.2s ease !important;
}

.btn-add-role {
    background-color: #5C80B4 !important;
    color: white !important;
}

    .btn-add-role:hover {
        background-color: #0F4492 !important;
        transform: translateY(-1px) !important;
    }

.btn-refresh {
    background-color: #6c757d !important;
    color: white !important;
}

    .btn-refresh:hover {
        background-color: #545b62 !important;
        transform: translateY(-1px) !important;
    }

/* Grid Action Buttons */
.grid-action-column {
    display: flex;
    gap: 8px;
    justify-content: center;
}

.btn-permissions,
.btn-edit,
.btn-delete {
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s;
}

.btn-permissions {
    background-color: #0f4492;
    color: white;
}

    .btn-permissions:hover {
        background-color: #1a5bb8;
        transform: scale(1.05);
    }

.btn-edit {
    background-color: #ffc107;
    color: #000;
}

    .btn-edit:hover {
        background-color: #e0a800;
        transform: scale(1.05);
    }

.btn-delete {
    background-color: #dc3545;
    color: white;
}

    .btn-delete:hover {
        background-color: #c82333;
        transform: scale(1.05);
    }

/* Badges */
.badge-system {
    background-color: #28a745;
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.badge-custom {
    background-color: #6c757d;
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

/* ==========================================
   7. PASSWORD CHANGE PAGE
   ========================================== */

.password-change-container {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.password-form-section {
    flex: 1;
    max-width: 65%;
}

.password-instructions {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 16px;
    margin-top: 30px;
    flex: 0 0 35%;
    max-width: 35%;
    align-self: flex-start;
}

    .password-instructions h5 {
        color: #0f4492;
        font-weight: 600;
        margin-bottom: 12px;
        font-size: 16px;
    }

    .password-instructions ul {
        margin: 0;
        padding-left: 20px;
    }

    .password-instructions li {
        color: #495057;
        margin-bottom: 8px;
        font-size: 14px;
        line-height: 1.5;
    }

/* ==========================================
   8. UTILITY CLASSES
   ========================================== */

.bi-chevron-right,
.bi-chevron-down {
    font-size: 1.2rem;
    transition: transform 0.2s ease;
    cursor: pointer;
}

.table td {
    vertical-align: middle;
}

.btn-link:hover i {
    transform: scale(1.2);
}

.btn-link:focus {
    box-shadow: none;
    outline: none;
}

/* Container for grids */
.role-grid-container {
    padding: 20px;
}

/* ==========================================
   9. RESPONSIVE DESIGN
   ========================================== */

@media (max-width: 768px) {
    /* Action Panels */
    .booking-action-panel,
    .password-action-panel {
        flex-direction: column;
        gap: 12px;
        padding: 16px;
        min-height: auto;
    }

    .action-panel-buttons {
        width: 100%;
        flex-direction: column;
        gap: 8px;
    }

    .action-btn-primary,
    .action-btn-secondary {
        width: 100% !important;
        min-width: auto !important;
    }

    /* Tabs */
    .booking-tabs .nav-link {
        padding: 10px 16px !important;
        font-size: 13px !important;
    }

        .booking-tabs .nav-link i {
            font-size: 16px;
            margin-right: 6px;
        }

    /* Password Change */
    .password-change-container {
        flex-direction: column;
    }

    .password-form-section {
        max-width: 100%;
    }

    .password-instructions {
        max-width: 100%;
        flex: 1;
    }
    
    /* Passenger Popup Responsive */
    .passenger-popup-content {
        width: 95%;
        max-width: none;
        height: 90vh;
        max-height: none;
    }

    .passenger-popup-header {
        padding: 16px 20px;
    }

    .passenger-popup-title {
        font-size: 18px;
    }

    .passenger-popup-body {
        padding: 16px;
    }

    .passenger-popup-body .nav-link {
        padding: 10px 16px !important;
        font-size: 13px !important;
    }

    .passenger-popup-body .nav-link i {
        font-size: 16px;
        margin-right: 6px;
    }

    .passenger-popup-body .tab-content {
        padding: 16px;
        min-height: 300px;
    }
}

@media (max-width: 480px) {
    .action-btn-primary,
    .action-btn-secondary {
        padding: 10px 16px !important;
        font-size: 13px !important;
    }

    .booking-tabs .nav-link {
        padding: 8px 12px !important;
        font-size: 12px !important;
    }
}

/* ==========================================
   10. PASSENGER POPUP (PassengerDetail.razor)
   ========================================== */

.passenger-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    backdrop-filter: blur(4px);
    animation: fadeIn 0.3s ease;
}

.passenger-popup-content {
    background: white;
    border-radius: 12px;
    width: 90%;
    max-width: 900px;
    height: 85vh;
    max-height: 700px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.passenger-popup-header {
    padding: 12px 20px;
    background: linear-gradient(135deg, #0F4492 0%, #5C80B4 100%);
    border-bottom: 2px solid #0a2d5f;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
    min-height: 50px;
}

.passenger-popup-title {
    font-size: 18px;
    font-weight: 700;
    color: white;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}

    .passenger-popup-title i {
        font-size: 20px;
    }

/* Error Alert Banner */
.error-alert-banner {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
    padding: 12px 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.3);
    animation: slideDown 0.3s ease;
    position: relative;
    z-index: 1;
}

.success-alert-banner {
    background: linear-gradient(135deg, #28a745 0%, #218838 100%);
    color: white;
    padding: 12px 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
    animation: slideDown 0.3s ease;
    position: relative;
    z-index: 1;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.alert-banner-icon {
    font-size: 20px;
}

.alert-banner-close {
    margin-left: auto;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.2s;
    font-size: 18px;
}

    .alert-banner-close:hover {
        opacity: 1;
    }

.passenger-popup-body {
    padding: 20px;
    overflow-x: hidden;
    overflow-y: auto;
    flex: 1;
    background: #f8f9fa;
    min-height: 0;
}

/* Enhanced Tab Styling for Popup */
.passenger-popup-body .dxbs-tabs {
    border: 1px solid #dee2e6;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    background: white;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.passenger-popup-body .nav-tabs {
    border-bottom: none !important;
    background: linear-gradient(180deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 8px 8px 0 8px;
    gap: 4px;
    flex-shrink: 0;
}

.passenger-popup-body .nav-link {
    border: none !important;
    border-radius: 6px 6px 0 0 !important;
    padding: 12px 20px !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    color: #495057 !important;
    background-color: transparent !important;
    transition: all 0.3s ease !important;
    position: relative;
}

.passenger-popup-body .nav-link i {
    font-size: 18px;
    margin-right: 8px;
    vertical-align: middle;
    transition: transform 0.3s ease;
}

.passenger-popup-body .nav-link:hover {
    background-color: rgba(15, 68, 146, 0.1) !important;
    color: #0F4492 !important;
    transform: translateY(-2px);
}

.passenger-popup-body .nav-link:hover i {
    transform: scale(1.1);
}

.passenger-popup-body .nav-link.active {
    background-color: white !important;
    color: #0F4492 !important;
    border-bottom: 3px solid #0F4492 !important;
    box-shadow: 0 -2px 8px rgba(15, 68, 146, 0.15);
}

.passenger-popup-body .nav-link.active i {
    color: #0F4492 !important;
}

.passenger-popup-body .tab-content {
    padding: 20px;
    background: white;
    min-height: 400px;
    overflow-x: hidden;
    overflow-y: auto;
    flex: 1;
}

/* Icon Gradients for Popup Tabs */
.passenger-popup-body .nav-link i.bi-person-fill {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.passenger-popup-body .nav-link.active i.bi-person-fill {
    background: linear-gradient(135deg, #0F4492 0%, #5C80B4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.passenger-popup-body .nav-link i.bi-wallet2 {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.passenger-popup-body .nav-link.active i.bi-wallet2 {
    background: linear-gradient(135deg, #0F4492 0%, #5C80B4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.passenger-popup-body .nav-link i.bi-ticket-perforated {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.passenger-popup-body .nav-link.active i.bi-ticket-perforated {
    background: linear-gradient(135deg, #0F4492 0%, #5C80B4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.passenger-popup-body .nav-link i.bi-paperclip {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.passenger-popup-body .nav-link.active i.bi-paperclip {
    background: linear-gradient(135deg, #0F4492 0%, #5C80B4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.passenger-popup-footer {
    padding: 14px 20px;
    background: linear-gradient(180deg, #f8f9fa 0%, #e9ecef 100%);
    border-top: 2px solid #dee2e6;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    flex-shrink: 0;
}

.close-icon {
    cursor: pointer;
    font-size: 24px;
    color: white;
    transition: all 0.3s;
    padding: 4px;
    border-radius: 4px;
}

    .close-icon:hover {
        background-color: rgba(255, 255, 255, 0.2);
        transform: rotate(90deg);
    }

/* ==========================================
   11. BRANCH MANAGEMENT (Branches.razor & BranchDetail.razor)
   ========================================== */

/* Branch form styling */
.branch-form-section {
    max-height: 60vh;
    overflow-x: hidden;
    overflow-y: auto;
}

/* Refresh button styling */
.btn-refresh {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 6px;
    background: linear-gradient(135deg, #6c757d 0%, #5a6268 100%);
    color: white;
    border: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(108, 117, 125, 0.3);
    cursor: pointer;
}

    .btn-refresh:hover {
        background: linear-gradient(135deg, #5a6268 0%, #545b62 100%);
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(108, 117, 125, 0.4);
    }

    .btn-refresh:active {
        transform: translateY(0);
        box-shadow: 0 2px 6px rgba(108, 117, 125, 0.3);
    }

    .btn-refresh i {
        font-size: 16px;
        transition: transform 0.3s ease;
    }

    .btn-refresh:hover i {
        transform: rotate(180deg);
    }

/* Badge for branch type */
.badge-custom {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 12px;
    background-color: #6c757d;
    color: white;
}

/* ==========================================
   12. LOGO MANAGEMENT (CompanyDetail.razor)
   ========================================== */

/* Logo Container with Delete Button */
.logo-container {
    position: relative;
    display: inline-block;
    width: 100%;
}

/* Logo Box Styling */
.dx-logo-box {
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 200px;
    width: 100%;
    position: relative;
    overflow: hidden;
}

    .dx-logo-box:hover {
        border-color: #0F4492 !important;
        box-shadow: 0 4px 12px rgba(15, 68, 146, 0.2);
    }

    .dx-logo-box img {
        max-width: 100%;
        max-height: 200px;
        object-fit: contain;
   }

/* Logo Delete Button */
.logo-delete-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
    border: 2px solid white;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.4);
    z-index: 10;
}

    .logo-delete-btn:hover {
        background: linear-gradient(135deg, #c82333 0%, #bd2130 100%);
        transform: scale(1.1) rotate(10deg);
        box-shadow: 0 4px 12px rgba(220, 53, 69, 0.6);
    }

    .logo-delete-btn:active {
        transform: scale(0.95);
        box-shadow: 0 2px 6px rgba(220, 53, 69, 0.4);
    }

    .logo-delete-btn i {
        font-size: 16px;
        transition: transform 0.2s ease;
    }

    .logo-delete-btn:hover i {
        transform: scale(1.1);
    }


    /*loader css start*/
/* Dual spinning circles loader */
.loader {
    width: 6em;
    height: 6em;
    font-size: 20px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .loader .face {
        position: absolute;
        border-radius: 50%;
        border-style: solid;
        animation: app-loader-spin 3s linear infinite;
    }

        .loader .face:nth-child(1) {
            width: 100%;
            height: 100%;
            color: #3BA9FB;
            border-color: currentColor transparent transparent currentColor;
            border-width: 0.2em 0.2em 0em 0em;
            --deg: -45deg;
            animation-direction: normal;
        }

        .loader .face:nth-child(2) {
            width: 70%;
            height: 70%;
            color: #6659EB;
            border-color: currentColor currentColor transparent transparent;
            border-width: 0.2em 0em 0em 0.2em;
            --deg: -135deg;
            animation-direction: reverse;
        }

        .loader .face .circle {
            position: absolute;
            width: 50%;
            height: 0.1em;
            top: 50%;
            left: 50%;
            background-color: transparent;
            transform: rotate(var(--deg));
            transform-origin: left;
        }

            .loader .face .circle::before {
                position: absolute;
                top: -0.5em;
                right: -0.5em;
                content: '';
                width: 1em;
                height: 1em;
                background-color: currentColor;
                border-radius: 50%;
                box-shadow: 0 0 2em, 0 0 4em, 0 0 6em, 0 0 8em, 0 0 10em, 0 0 0 0.5em rgba(255, 255, 0, 0.1);
            }

@keyframes app-loader-spin {
    to {
        transform: rotate(1turn);
    }
}

    /*loader css end*/