
/* BRANCHES PAGE  */


/* ===== FILTERS ===== */
.filters-row {
    display: flex;
    gap: 14px;
    margin-bottom: 20px;
}

.filter-select {
    background: var(--search-bg);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 10px 14px;
    border-radius: 10px;
}

/* ===== BRANCH CELL ===== */
.branch-cell {
    display: flex;
    gap: 14px;
    align-items: center;
}

.branch-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: grid;
    place-items: center;
}

.branch-icon.healthy { background: rgba(95,191,138,0.15); color: #5FBF8A; }
.branch-icon.warning { background: rgba(244,184,96,0.15); color: #F4B860; }
.branch-icon.critical { background: rgba(226,85,79,0.15); color: #E2554F; }

/* ===== STATUS ===== */
.status-pill {
    padding: 6px 14px;
    border-radius: 20px;
    font-weight: 600;
    width: fit-content;
}

.status-pill.healthy {
    background: rgba(95,191,138,0.15);
    color: #5FBF8A;
}
.status-pill.warning {
    background: rgba(244,184,96,0.15);
    color: #F4B860;
}
.status-pill.critical {
    background: rgba(226,85,79,0.15);
    color: #E2554F;
}

/* ===== DEVICES ===== */
.devices-cell {
    display: flex;
    align-items: center;
    gap: 8px;
}
.devices-cell.healthy { color: #5FBF8A; }
.devices-cell.warning { color: #F4B860; }
.devices-cell.critical { color: #E2554F; }

/* =========================================================
   ADD BRANCH MODAL
========================================================= */

/* Backdrop */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    backdrop-filter: blur(6px);
}

/* Show modal */
.modal-backdrop.show {
    display: flex;
}

/* Modal Container */
.modal {
    width: 420px;
    max-width: 92%;
    background: linear-gradient(180deg, #0f131c, #0c1018);
    border-radius: 18px;
    padding: 24px;
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 30px 80px rgba(0,0,0,0.75);
    animation: modalFadeIn 0.25s ease;
}

/* Animation */
@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Header */
.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.modal-header h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text);
}

.modal-header i {
    font-size: 18px;
    cursor: pointer;
    color: var(--text-light);
    transition: color 0.2s ease;
}

.modal-header i:hover {
    color: var(--red);
}

/* Body */
.modal-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
}

.modal-body label {
    font-size: 13px;
    color: var(--text-light);
    margin-top: 6px;
}

/* Inputs */
.modal-body input,
.modal-body select {
    background: var(--search-bg);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 11px 14px;
    border-radius: 12px;
    font-size: 14px;
    outline: none;
    transition: all 0.2s ease;
}

.modal-body input::placeholder {
    color: #8fa3bf;
}

.modal-body input:focus,
.modal-body select:focus {
    border-color: #34d399;
    box-shadow: 0 0 0 2px rgba(52,211,153,0.25);
}

/* Footer */
.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 20px;
}

/* Buttons */
.btn-primary {
    background: #34d399;
    color: #04110b;
    border: none;
    padding: 10px 18px;
    border-radius: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-primary:hover {
    background: #2ecc71;
}

.btn-secondary {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text);
    padding: 10px 18px;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.05);
}
