/* ===== CITY ZONES PAGE STYLES - Prefix: fxcz- ===== */

.fxcz-page {
    font-family: 'Inter', 'Poppins', -apple-system, sans-serif;
}

/* ===== Top Header ===== */
.fxcz-top {
    border-radius: 22px !important;
    background: #ffffff !important;
    border: 1px solid rgba(0,0,0,.04) !important;
    box-shadow: 0 30px 80px rgba(0,0,0,.10) !important;
    padding: 18px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 14px !important;
}

.fxcz-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 900;
    color: #2D2350;
    font-size: 20px;
    line-height: 1.1;
}

.fxcz-sub {
    font-weight: 800;
    color: #6B7280;
    font-size: 13px;
    margin-top: 4px;
}

.fxcz-top-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* ===== Search ===== */
.fxcz-filters {
    margin-top: 14px !important;
    border-radius: 22px !important;
    background: #ffffff !important;
    border: 2px solid #4B3E7B !important;
    box-shadow: 0 20px 60px rgba(75,62,123,.15) !important;
    padding: 18px !important;
}

/* ===== Table Container ===== */
.fxcz-table-container {
    margin-top: 14px !important;
    border-radius: 22px !important;
    background: #ffffff !important;
    border: 1px solid rgba(0,0,0,.04) !important;
    box-shadow: 0 18px 55px rgba(0,0,0,.08) !important;
    overflow: hidden !important;
    padding: 0 !important;
}

/* Allow horizontal scroll for user tables without losing rounded corners */
.fxuser-table-wrap {
    overflow: visible !important;
    border-radius: 22px !important;
}

.fxuser-table-wrap .fxuser-scroll-x {
    border-radius: 22px;
    overflow-x: auto !important;
    overflow-y: hidden !important;
}

/* ===== Table ===== */
.fxcz-table {
    width: 100%;
    border-collapse: collapse;
}

.fxcz-th {
    background: linear-gradient(135deg, #2D2350 0%, #4B3E7B 100%);
    color: #fff;
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .5px;
    padding: 14px 18px;
    text-align: left;
    white-space: nowrap;
}

.fxcz-th:first-child {
    border-radius: 0;
    width: 50px;
}

.fxcz-th-actions {
    text-align: right;
}

.fxcz-tr {
    border-bottom: 1px solid rgba(0,0,0,.05);
    transition: background .15s;
}

.fxcz-tr:last-child {
    border-bottom: none;
}

.fxcz-tr:hover {
    background: rgba(75,62,123,.04);
}

.fxcz-td {
    padding: 14px 18px;
    font-size: 14px;
    color: #374151;
    font-weight: 500;
    vertical-align: middle;
}

.fxcz-td-num {
    font-weight: 900;
    color: #9CA3AF;
    font-size: 13px;
    width: 50px;
}

.fxcz-td-name {
    font-weight: 700;
    color: #2D2350;
}

.fxcz-td-date {
    font-size: 13px;
    color: #6B7280;
    font-weight: 600;
    white-space: nowrap;
}

.fxcz-td-actions {
    text-align: right;
    white-space: nowrap;
}

.fxcz-td-actions .mud-button-root {
    margin-left: 6px;
}

.fxcz-empty {
    text-align: center;
    padding: 50px;
    color: #9CA3AF;
    font-size: 14px;
    font-weight: 600;
}

/* ===== Status Badges ===== */
.fxcz-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    border: 1px solid transparent;
    white-space: nowrap;
}

.fxcz-active {
    color: #059669;
    background: rgba(5,150,105,.10);
    border-color: rgba(5,150,105,.20);
}

.fxcz-inactive {
    color: #6B7280;
    background: rgba(107,114,128,.10);
    border-color: rgba(107,114,128,.20);
}

/* ===== Toggle Buttons ===== */
.fxcz-btn-deactivate {
    background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%) !important;
    color: #fff !important;
    border: none !important;
    font-weight: 800 !important;
    border-radius: 10px !important;
    box-shadow: 0 6px 18px rgba(245,158,11,.28) !important;
    transition: all 0.2s ease !important;
    text-transform: uppercase !important;
    letter-spacing: .3px !important;
    padding: 8px 14px !important;
    font-size: 12px !important;
}

.fxcz-btn-deactivate:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 10px 24px rgba(245,158,11,.38) !important;
}

.fxcz-btn-activate {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%) !important;
    color: #fff !important;
    border: none !important;
    font-weight: 800 !important;
    border-radius: 10px !important;
    box-shadow: 0 6px 18px rgba(16,185,129,.28) !important;
    transition: all 0.2s ease !important;
    text-transform: uppercase !important;
    letter-spacing: .3px !important;
    padding: 8px 14px !important;
    font-size: 12px !important;
}

.fxcz-btn-activate:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 10px 24px rgba(16,185,129,.38) !important;
}

/* ===== Responsive ===== */
@media (max-width: 960px) {
    .fxcz-top {
        flex-direction: column !important;
        align-items: stretch !important;
    }

    .fxcz-top-right {
        justify-content: stretch;
    }

    .fxcz-table-container {
        overflow-x: auto !important;
    }
}
/*//new styles or mudblazor*/
/* ===== MudTable Overrides ===== */
.fxcz-mudtable {
    border-radius: 0 !important;
    box-shadow: none !important;
}

/* Remove MudTable default borders and shadows */
.fxcz-mudtable .mud-table-root {
    border-radius: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
}

/* Header styling */
.fxcz-mudtable .mud-table-head {
    background: linear-gradient(135deg, #2D2350 0%, #4B3E7B 100%);
}

.fxcz-mudtable .mud-table-head .mud-table-row {
    background: transparent !important;
}

.fxcz-mudtable .fxcz-th {
    background: transparent !important;
    color: #fff !important;
    font-family: 'Poppins', sans-serif !important;
    font-weight: 800 !important;
    font-size: 12px !important;
    text-transform: uppercase !important;
    letter-spacing: .5px !important;
    padding: 14px 18px !important;
    text-align: left !important;
    white-space: nowrap !important;
    border: none !important;
}

.fxcz-mudtable .fxcz-th-number {
    width: 50px !important;
}

.fxcz-mudtable .fxcz-th-actions {
    text-align: right !important;
}

/* Body styling */
.fxcz-mudtable .mud-table-body .mud-table-row {
    border-bottom: 1px solid rgba(0,0,0,.05) !important;
    transition: background .15s !important;
}

.fxcz-mudtable .mud-table-body .mud-table-row:last-child {
    border-bottom: none !important;
}

.fxcz-mudtable .mud-table-body .mud-table-row:hover {
    background: rgba(75,62,123,.04) !important;
}

.fxcz-mudtable .fxcz-td {
    padding: 14px 18px !important;
    font-size: 14px !important;
    color: #374151 !important;
    font-weight: 500 !important;
    vertical-align: middle !important;
    border: none !important;
}

/* Remove MudTable hover effect that conflicts with our custom one */
.fxcz-mudtable .mud-table-row.mud-table-row-hover:hover {
    background: rgba(75,62,123,.04) !important;
}

/* Loading indicator positioning */
.fxcz-mudtable .mud-table-loading-progress {
    position: relative !important;
    padding: 50px !important;
}

/* Responsive - Mobile view */
@media (max-width: 960px) {
    /* MudTable mobile breakpoint styles */
    .fxcz-mudtable .mud-table-container {
        overflow-x: auto !important;
    }

    /* On mobile, MudTable shows DataLabel */
    .fxcz-mudtable .mud-table-cell[data-label]::before {
        font-weight: 700 !important;
        color: #2D2350 !important;
    }
}
