/* ═══ CONVERTED TO LIGHT WARM THEME + 1.2x FONTS ═══ */
/* ══════════════════════════════════════════════════════════════
   M4: Ezibee AI Housekeeping — CSS
   ══════════════════════════════════════════════════════════════ */

.hk-topbar {
    background: linear-gradient(180deg,#fffefa,rgba(8,14,31,.95));
    border: 1px solid rgba(0,0,0,.06);
    border-radius: 14px;
    padding: 14px 22px;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap
}

.hk-brand {
    display: flex;
    align-items: center;
    gap: 10px
}

.hk-logo {
    font-size: 31.2px
}

.hk-title {
    font-size: 20.4px;
    font-weight: 800;
    color: #2d2d42
}

.hk-subtitle {
    font-size: 13.2px;
    color: #9e9eb0
}

    .hk-subtitle .dot {
        color: #3b82f6;
        margin: 0 5px
    }

.hk-tabs {
    display: flex;
    gap: 3px
}

.hk-actions {
    display: flex;
    gap: 8px
}

.hk-tab {
    padding: 7px 16px;
    border-radius: 7px;
    font-size: 14.4px;
    font-weight: 600;
    color: #9e9eb0;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: .2s
}

    .hk-tab:hover {
        background: rgba(0,0,0,.03);
        color: #2d2d42
    }

    .hk-tab.active {
        background: rgba(59,130,246,.18);
        color: #3b82f6
    }

.hk-placeholder {
    text-align: center;
    padding: 60px 20px;
    color: #c5c5d0;
    font-size: 16.8px;
    border: 1px dashed rgba(0,0,0,.06);
    border-radius: 14px;
    margin: 16px 0
}

.hk-alert.error {
    padding: 12px 18px;
    border-radius: 10px;
    font-size: 15.6px;
    margin-bottom: 12px;
    background: rgba(239,68,68,.12);
    border: 1px solid rgba(239,68,68,.3);
    color: #ef4444
}

.hk-select {
    appearance: none;
    background: rgba(0,0,0,.03);
    border: 1px solid #e0ddd6;
    color: #2d2d42;
    padding: 7px 12px;
    border-radius: 7px;
    font-size: 14.4px;
    cursor: pointer
}

/* KPI (shared, override if needed) */
.kv-purple {
    color: #7c3aed
}

.kv-cyan {
    color: #06b6d4
}

/* AI Suggestion */
.ai-suggest {
    background: rgba(59,130,246,.18);
    border: 1px solid rgba(59,130,246,.2);
    border-radius: 10px;
    padding: 12px 16px;
    margin-bottom: 14px;
    font-size: 14.4px;
    color: #3b82f6;
    line-height: 1.6
}

/* ═══ KANBAN ═══ */
.kanban {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 12px;
    margin-bottom: 16px;
    align-items: start
}

.kanban-col {
    background: #fffefa;
    border: 1px solid rgba(0,0,0,.06);
    border-radius: 10px;
    display: flex;
    flex-direction: column
}

.kanban-header {
    padding: 12px 14px;
    border-bottom: 1px solid rgba(0,0,0,.06);
    display: flex;
    justify-content: space-between;
    align-items: center
}

.kanban-title {
    font-size: 15.6px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px
}

.kanban-count {
    background: rgba(0,0,0,.03);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 13.2px;
    color: #9e9eb0
}

.kanban-body {
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 100px
}

.kanban-empty {
    text-align: center;
    padding: 24px;
    color: #c5c5d0;
    font-size: 13.2px;
    font-style: italic
}

/* Task Card */
.task-card {
    background: rgba(0,0,0,.03);
    border: 1px solid rgba(0,0,0,.03);
    border-radius: 10px;
    padding: 14px;
    transition: .2s
}

    .task-card:hover {
        border-color: rgba(0,0,0,.06);
        background: rgba(0,0,0,.03)
    }

    .task-card.urgent {
        border-left: 4px solid #ef4444
    }

    .task-card.normal {
        border-left: 4px solid #f59e0b
    }

    .task-card.low {
        border-left: 4px solid #22c55e
    }

    .task-card.inspecting {
        border-left: 4px solid #7c3aed
    }

    .task-card.done {
        border-left: 4px solid #22c55e;
        opacity: .8
    }

.task-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px
}

.task-room {
    font-size: 26.4px;
    font-weight: 800;
    color: #2d2d42
}

.task-priority {
    font-size: 9.6px;
    padding: 2px 7px;
    border-radius: 4px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .3px
}

.priority-urgent {
    background: rgba(239,68,68,.12);
    color: #ef4444
}

.priority-normal {
    background: rgba(245,158,11,.12);
    color: #f59e0b
}

.priority-low {
    background: rgba(34,197,94,.12);
    color: #22c55e
}

.task-type {
    font-size: 12px;
    padding: 2px 6px;
    border-radius: 3px;
    background: rgba(0,0,0,.03);
    color: #9e9eb0;
    display: inline-block
}

.task-info {
    font-size: 13.2px;
    color: #9e9eb0;
    line-height: 1.6;
    margin-top: 5px
}

.task-staff {
    color: #06b6d4;
    font-weight: 700
}

.task-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px
}

.task-wait {
    font-size: 12px;
    color: #c5c5d0;
    display: flex;
    align-items: center;
    gap: 3px
}

.task-checkin {
    font-size: 12px;
    padding: 2px 7px;
    border-radius: 4px;
    font-weight: 700
}

.checkin-urgent {
    background: rgba(239,68,68,.12);
    color: #ef4444;
    animation: blink 1.5s infinite
}

.checkin-soon {
    background: rgba(245,158,11,.12);
    color: #f59e0b
}

.checkin-later {
    background: rgba(34,197,94,.12);
    color: #22c55e
}

.checkin-none {
    background: rgba(0,0,0,.03);
    color: #c5c5d0
}

@keyframes blink {
    0%,100% {
        opacity: 1
    }

    50% {
        opacity: .5
    }
}

/* Progress */
.progress-bar {
    margin-top: 8px;
    background: rgba(0,0,0,.03);
    border-radius: 4px;
    height: 6px;
    overflow: hidden
}

.progress-fill {
    height: 100%;
    border-radius: 4px;
    transition: width .3s
}

.progress-text {
    font-size: 12px;
    color: #c5c5d0;
    margin-top: 3px
}

/* Action Buttons */
.task-actions {
    display: flex;
    gap: 6px;
    margin-top: 10px;
    flex-wrap: wrap
}

.action-btn {
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 13.2px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    color: #2d2d42;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: .2s
}

    .action-btn:hover {
        transform: translateY(-1px);
        filter: brightness(1.1)
    }

.action-start {
    background: #3b82f6
}

.action-assign {
    background: transparent;
    border: 1px solid #06b6d4;
    color: #06b6d4;
    padding: 5px 10px
}

.action-done {
    background: #22c55e
}

.action-issue {
    background: #f59e0b
}

.action-pause {
    background: transparent;
    border: 1px solid #64748b;
    color: #c5c5d0;
    padding: 5px 10px
}

.action-pass {
    background: #22c55e
}

.action-redo {
    background: #ef4444
}

.action-note {
    background: transparent;
    border: 1px solid #7c3aed;
    color: #7c3aed;
    padding: 5px 10px
}

/* Done badge */
.done-badge {
    font-size: 12px;
    padding: 2px 7px;
    border-radius: 4px;
    font-weight: 700
}

.done-ready {
    background: rgba(34,197,94,.12);
    color: #22c55e
}

.done-checkedin {
    background: rgba(6,182,212,.12);
    color: #06b6d4
}

.done-stayover {
    background: rgba(124,58,237,.08);
    color: #7c3aed
}

.issue-tag {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    background: rgba(245,158,11,.12);
    border: 1px solid rgba(245,158,11,.3);
    color: #f59e0b;
    padding: 2px 7px;
    border-radius: 4px;
    font-size: 10.8px;
    font-weight: 600;
    margin-top: 4px
}

/* ═══ STAFF ═══ */
.staff-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill,minmax(280px,1fr));
    gap: 12px;
    margin-bottom: 16px
}

.staff-card {
    background: #fffefa;
    border: 1px solid rgba(0,0,0,.06);
    border-radius: 10px;
    padding: 14px
}

.staff-top {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px
}

.staff-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(59,130,246,.18);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15.6px;
    font-weight: 700;
    color: #3b82f6
}

.staff-name {
    font-size: 16.8px;
    font-weight: 700;
    color: #2d2d42
}

.staff-role {
    font-size: 12px;
    color: #9e9eb0
}

.staff-status {
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 600;
    margin-left: auto
}

.status-active {
    background: rgba(34,197,94,.12);
    color: #22c55e
}

.status-break {
    background: rgba(245,158,11,.12);
    color: #f59e0b
}

.staff-stats {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 6px;
    margin-top: 8px
}

.staff-stat {
    text-align: center;
    padding: 6px;
    background: rgba(0,0,0,.03);
    border-radius: 6px
}

.staff-stat-value {
    font-size: 19.2px;
    font-weight: 700;
    color: #2d2d42
}

.staff-stat-label {
    font-size: 10.8px;
    color: #c5c5d0;
    margin-top: 2px
}

.staff-rooms {
    margin-top: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 4px
}

.staff-room-tag {
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 12px
}

    .staff-room-tag.cleaning {
        border: 1px solid rgba(245,158,11,.3);
        color: #f59e0b
    }

    .staff-room-tag.done-tag {
        border: 1px solid rgba(34,197,94,.3);
        color: #22c55e
    }

/* ═══ MODAL ═══ */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,.03);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100
}

.modal {
    background: #fffefa;
    border: 1px solid rgba(0,0,0,.06);
    border-radius: 14px;
    padding: 24px;
    max-width: 420px;
    width: 90%
}

.modal-title {
    font-size: 19.2px;
    font-weight: 800;
    color: #2d2d42;
    margin-bottom: 12px
}

.modal-body {
    font-size: 15.6px;
    color: #9e9eb0;
    line-height: 1.6;
    margin-bottom: 16px
}

.modal-input {
    width: 100%;
    background: rgba(0,0,0,.03);
    border: 1px solid #e0ddd6;
    color: #2d2d42;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 15.6px;
    margin-bottom: 8px
}

    .modal-input:focus {
        border-color: #3b82f6;
        outline: none
    }

    .modal-input::placeholder {
        color: #c5c5d0
    }

.modal-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end
}

.modal-tag {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 13.2px;
    cursor: pointer;
    margin: 3px;
    transition: .2s
}

    .modal-tag:hover {
        filter: brightness(1.2)
    }

    .modal-tag.selected {
        box-shadow: 0 0 0 2px #fff
    }

/* Assign dropdown */
.assign-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 8px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13.2px;
    transition: .2s
}

    .assign-option:hover {
        background: rgba(0,0,0,.03)
    }

    .assign-option.selected-staff {
        background: rgba(6,182,212,.08);
        border: 1px solid rgba(6,182,212,.2)
    }

    .assign-option.dim {
        opacity: .4
    }

.assign-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(59,130,246,.18);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10.8px;
    font-weight: 700;
    color: #3b82f6
}

.assign-name {
    color: #2d2d42;
    font-weight: 600
}

/* ═══ CONFIG ═══ */
.config-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill,minmax(320px,1fr));
    gap: 14px;
    margin-bottom: 16px
}

.config-section {
    background: #fffefa;
    border: 1px solid rgba(0,0,0,.06);
    border-radius: 10px;
    padding: 16px
}

.config-title {
    font-size: 14.4px;
    font-weight: 700;
    color: #3b82f6;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: .5px
}

.config-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 7px 0;
    border-bottom: 1px solid rgba(0,0,0,.01);
    font-size: 14.4px;
    color: #9e9eb0
}

    .config-row:last-child {
        border-bottom: none
    }

.config-input {
    background: rgba(0,0,0,.03);
    border: 1px solid #e0ddd6;
    color: #2d2d42;
    padding: 5px 8px;
    border-radius: 5px;
    font-size: 14.4px;
    width: 65px;
    text-align: right
}

    .config-input:focus {
        border-color: #3b82f6;
        outline: none
    }

/* Table */
.ez-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13.2px
}

    .ez-table th {
        text-align: left;
        padding: 8px 12px;
        font-size: 12px;
        font-weight: 600;
        color: #9e9eb0;
        text-transform: uppercase;
        background: rgba(0,0,0,.03);
        border-bottom: 1px solid rgba(0,0,0,.06)
    }

    .ez-table td {
        padding: 8px 12px;
        border-bottom: 1px solid rgba(0,0,0,.01)
    }

    .ez-table tr:hover {
        background: rgba(0,0,0,.01)
    }

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

@media(max-width:768px) {
    .kanban {
        grid-template-columns: 1fr
    }

    .kpi-grid {
        grid-template-columns: repeat(2,1fr)
    }

    .hk-topbar {
        flex-direction: column;
        align-items: flex-start
    }
}

/* ══════════════════════════════════════════════════════════════
   DARK THEME: Select / Option / OptGroup
   Fix dropdown trắng khi mở trên Chrome/Edge
   ══════════════════════════════════════════════════════════════ */
select,
.als-wrap select {
    background-color: #fffefa !important;
    color: #2d2d42 !important;
}

    select option {
        background-color: #fffefa;
        color: #2d2d42;
        padding: 4px 8px;
    }

        select option:checked {
            background-color: rgba(184,137,46,.08);
            color: #2d2d42;
        }

    select optgroup {
        background-color: #f4f1ec;
        color: #9e9eb0;
        font-weight: 700;
    }

        select optgroup option {
            background-color: #fffefa;
            color: #2d2d42;
            font-weight: 400;
        }

.hk-select option {
    background-color: #fffefa;
    color: #2d2d42;
}

.hk-select optgroup {
    background-color: #f4f1ec;
    color: #9e9eb0;
}
