/* ===== OUTAGE DIALOG STYLES - Prefix: fxod- ===== */

.fxod-dialog .mud-dialog {
    border-radius: 20px !important;
}

.fxod-dialog-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Poppins', sans-serif;
    font-weight: 900;
    font-size: 18px;
    color: #2D2350;
}

.fxod-error {
    background: #FEE2E2;
    color: #DC2626;
    border: 1px solid #FCA5A5;
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 16px;
}

.fxod-field {
    margin-bottom: 18px;
}

.fxod-label {
    display: block;
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: #2D2350;
    margin-bottom: 8px;
}

.fxod-input,
.fxod-select,
.fxod-textarea {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid #E8E8E8;
    border-radius: 12px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
    background: #FAFAFA;
    color: #333;
    outline: none;
    transition: all 0.3s;
    appearance: auto;
}

.fxod-input:focus,
.fxod-select:focus,
.fxod-textarea:focus {
    border-color: #FF7B53;
    background: white;
    box-shadow: 0 0 0 4px rgba(255, 123, 83, 0.1);
}

.fxod-textarea {
    resize: vertical;
    min-height: 90px;
}

.fxod-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.fxod-validation {
    color: #DC2626;
    font-size: 12px;
    margin-top: 4px;
    display: block;
}

.fxod-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid #F0F0F0;
}

.fxod-btn-cancel {
    border: 2px solid #4A3D7A !important;
    color: #4A3D7A !important;
    font-weight: 800 !important;
    border-radius: 10px !important;
    padding: 10px 20px !important;
    font-size: 13px !important;
}

.fxod-btn-save {
    background: linear-gradient(135deg, #FF7B53 0%, #FF9575 100%) !important;
    color: white !important;
    border: none !important;
    font-weight: 800 !important;
    border-radius: 10px !important;
    padding: 10px 24px !important;
    font-size: 13px !important;
    box-shadow: 0 8px 20px rgba(255, 123, 83, 0.35) !important;
}

.fxod-btn-save:hover:not(:disabled) {
    transform: translateY(-2px) !important;
    box-shadow: 0 12px 28px rgba(255, 123, 83, 0.45) !important;
}

@media (max-width: 600px) {
    .fxod-row { grid-template-columns: 1fr; }
}

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

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

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

.fxcz-top-left {}

.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;
}

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

.fxcz-table-container {
    margin-top: 14px;
    border-radius: 22px;
    background: #ffffff;
    border: 1px solid rgba(0,0,0,.04);
    box-shadow: 0 20px 60px rgba(0,0,0,.08);
    overflow: hidden;
    padding: 0;
}

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

.fxcz-th {
    font-family: 'Poppins', sans-serif;
    font-weight: 900;
    font-size: 12px;
    color: #2D2350;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 16px 18px;
    background: rgba(75,62,123,.06);
    border-bottom: 2px solid rgba(75,62,123,.12);
    text-align: left;
}

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

.fxcz-tr {
    transition: background 0.15s;
}

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

.fxcz-tr:not(:last-child) {
    border-bottom: 1px solid rgba(0,0,0,.05);
}

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

.fxcz-td-num {
    color: #6B7280;
    font-size: 13px;
    width: 50px;
}

.fxcz-td-name {
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    color: #2D2350;
    font-size: 15px;
}

.fxcz-td-date {
    color: #6B7280;
    font-size: 13px;
}

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

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

.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;
}

.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);
}

.fxcz-btn-activate {
    background: linear-gradient(135deg, #059669 0%, #10B981 100%) !important;
    color: #fff !important;
    border: none !important;
    font-weight: 800 !important;
    border-radius: 10px !important;
    box-shadow: 0 4px 12px rgba(5,150,105,.25) !important;
    font-size: 12px !important;
    padding: 8px 14px !important;
}

.fxcz-btn-deactivate {
    background: rgba(107,114,128,.15) !important;
    color: #374151 !important;
    border: 1px solid rgba(107,114,128,.25) !important;
    font-weight: 800 !important;
    border-radius: 10px !important;
    font-size: 12px !important;
    padding: 8px 14px !important;
}

.fxcz-empty {
    text-align: center;
    padding: 40px;
    color: #6B7280;
    font-size: 15px;
    font-weight: 600;
}

/* ===== SHARED BETWEEN OUTAGE AND CITY ZONE PAGES ===== */

.fx-search-native {
    flex: 1;
    width: 100%;
    padding: 12px 16px;
    border: 2px solid rgba(75,62,123,.20);
    border-radius: 12px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 600;
    background: #FAFAFA;
    color: #333;
    outline: none;
    transition: all 0.3s;
}

.fx-search-native:focus {
    border-color: #4B3E7B;
    background: white;
    box-shadow: 0 0 0 3px rgba(75,62,123,.10);
}

.fx-loading {
    display: flex;
    justify-content: center;
    padding: 60px;
}

.fx-empty {
    text-align: center;
    padding: 60px;
    color: #6B7280;
    font-size: 15px;
    font-weight: 600;
}

.fx-btn-delete {
    background: linear-gradient(135deg, #EF4444 0%, #DC2626 100%) !important;
    color: #fff !important;
    border: none !important;
    font-weight: 800 !important;
    border-radius: 10px !important;
    box-shadow: 0 6px 18px rgba(239,68,68,.28) !important;
    font-size: 12px !important;
    padding: 8px 14px !important;
    min-width: 90px !important;
}

.fx-btn-delete:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 10px 24px rgba(239,68,68,.38) !important;
}

.fx-btn-filter-active {
    background: #FF7B53 !important;
}


/* ===== OUTAGE DIALOG HEADER (fxod-header) ===== */

.fxod-dialog .mud-dialog {
    border: 2px solid #4B3E7B !important;
    border-radius: 24px !important;
    overflow: hidden !important;
    box-shadow: 0 30px 80px rgba(75, 62, 123, 0.25) !important;
}

.fxod-dialog .mud-dialog-content {
    padding: 0 !important;
}

.fxod-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 16px 28px 14px;
    background: linear-gradient(135deg, #2D2350 0%, #4B3E7B 100%);
    position: relative;
    overflow: hidden;
}

.fxod-header::before {
    content: "";
    position: absolute;
    inset: -40px -60px auto auto;
    width: 160px;
    height: 160px;
    background: radial-gradient(circle, rgba(255,123,83,.25) 0%, transparent 65%);
    pointer-events: none;
}

.fxod-icon-wrap {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(255,255,255,.15);
    border: 1.5px solid rgba(255,255,255,.25);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
}

.fxod-header-icon {
    color: #fff !important;
    font-size: 18px !important;
    width: 18px !important;
    height: 18px !important;
}

.fxod-header-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 900;
    font-size: 15px;
    color: #fff;
    margin-bottom: 3px;
}

.fxod-header-sub {
    font-size: 11px;
    font-weight: 600;
    color: rgba(255,255,255,.65);
}

.fxod-body {
    padding: 24px 28px 28px;
}

/* ===== Centered Actions ===== */
.fxod-actions-center {
    display: flex;
    justify-content: center;
    gap: 14px;
    margin-top: 24px;
}

.fxod-actions-center .fxod-btn-cancel,
.fxod-actions-center .fxod-btn-save {
    min-width: 130px !important;
}
