/* ═══════════════════════════════════════════════════
   ONE Central — Panel & Modal Styles
   Slide-out config panel, assign groups modal, toast notifications
   ═══════════════════════════════════════════════════ */

/* ═══════════════════════
   Slide-Out Panel
   ═══════════════════════ */
.slide-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.25);
    z-index: 100;
    opacity: 0; pointer-events: none;
    transition: opacity 0.25s;
}
.slide-overlay.open { opacity: 1; pointer-events: auto; }

.slide-panel {
    position: fixed; top: 0; bottom: 0; right: 0;
    width: var(--slide-w);
    background: var(--surface);
    box-shadow: -6px 0 32px rgba(0,0,0,0.12);
    z-index: 101;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.22, 0.61, 0.36, 1);
    display: flex; flex-direction: column;
}
.slide-panel.open { transform: translateX(0); }

.slide-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 18px 24px; border-bottom: 1px solid var(--border); flex-shrink: 0;
}
.slide-header h2 { font-size: 16px; font-weight: 700; }
.slide-close {
    background: none; border: none; font-size: 24px;
    color: var(--text-secondary); cursor: pointer; padding: 4px 8px;
    line-height: 1; border-radius: 4px;
}
.slide-close:hover { background: #F0F2F5; color: var(--text); }

.slide-body { flex: 1; overflow-y: auto; padding: 24px; }
.slide-footer {
    padding: 14px 24px; border-top: 1px solid var(--border);
    display: flex; gap: 10px; justify-content: flex-end; flex-shrink: 0;
}

/* ═══════════════════════
   Assign Groups Modal
   ═══════════════════════ */
.modal-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(4px);
    z-index: 300; opacity: 0; pointer-events: none;
    transition: opacity 0.25s;
}
.modal-overlay.open { opacity: 1; pointer-events: auto; }
.modal-box {
    position: fixed; top: 50%; left: 50%;
    transform: translate(-50%, -50%) scale(0.95);
    width: 460px; max-width: 90vw; max-height: 80vh;
    background: #ffffff; border-radius: 14px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3), 0 0 0 1px rgba(0,0,0,0.05);
    z-index: 301; opacity: 0; pointer-events: none;
    transition: all 0.25s ease; display: flex; flex-direction: column;
    overflow: hidden;
}
.modal-box.open { opacity: 1; pointer-events: auto; transform: translate(-50%, -50%) scale(1); }
.modal-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 20px 24px 16px; border-bottom: 1px solid #e8ecef;
    background: #f8fafb;
}
.modal-header h3 { margin: 0; font-size: 15px; font-weight: 700; color: #1a1a2e; }
.modal-close {
    background: none; border: none; font-size: 22px; cursor: pointer;
    color: #8892a4; line-height: 1; padding: 2px 4px; border-radius: 4px;
    transition: all 0.15s;
}
.modal-close:hover { color: #1a1a2e; background: #e8ecef; }
.modal-body { padding: 20px 24px; overflow-y: auto; flex: 1; background: #ffffff; }
.assign-notice {
    display: flex; align-items: center; gap: 8px;
    padding: 10px 14px; margin: 0 0 16px;
    background: #f0f6ff; border: 1px solid #c2d9f2; border-radius: 8px;
    font-size: 12px; color: #2c5282; line-height: 1.4; font-weight: 500;
}
.assign-notice svg { flex-shrink: 0; stroke: #2c5282; }
.modal-desc {
    font-size: 13px; color: #5f6b7a; margin: 0 0 16px; line-height: 1.5;
}
.modal-group-list {
    display: flex; flex-direction: column; gap: 1px;
    background: #f1f3f5; border-radius: 8px; overflow: hidden;
    border: 1px solid #e8ecef;
}
.modal-group-item {
    display: flex; align-items: center; gap: 12px;
    padding: 10px 14px; cursor: pointer;
    font-size: 13px; transition: background 0.15s;
    background: #ffffff;
}
.modal-group-item:hover { background: #f0faf6; }
.modal-group-item input[type="checkbox"] {
    width: 16px; height: 16px; accent-color: var(--primary); flex-shrink: 0;
    cursor: pointer;
}
.modal-group-name { font-weight: 500; color: #1a1a2e; flex: 1; }
.modal-group-count { color: #8892a4; font-size: 12px; white-space: nowrap; }
.modal-hint {
    display: flex; align-items: center; gap: 6px;
    font-size: 12px; color: #8892a4;
    margin-top: 16px; padding-top: 14px;
    border-top: 1px solid #e8ecef;
}
.modal-hint svg { flex-shrink: 0; }
.modal-footer {
    display: flex; justify-content: flex-end; gap: 10px;
    padding: 16px 24px; border-top: 1px solid #e8ecef;
    background: #f8fafb;
}
.btn-assign {
    font-size: 12px; font-weight: 600;
    padding: 4px 10px; border-radius: 4px;
    background: transparent; border: 1px solid var(--primary);
    color: var(--primary); cursor: pointer;
    transition: all 0.15s;
}
.btn-assign:hover { background: var(--primary); color: #fff; }

/* ═══════════════════════
   Toast
   ═══════════════════════ */
.toast {
    position: fixed; top: 24px; right: 24px;
    display: flex; align-items: center; gap: 10px;
    padding: 12px 16px; border-radius: 8px;
    font-size: 13px; font-weight: 600; color: #fff;
    z-index: 200; opacity: 0; transform: translateX(40px);
    transition: all 0.35s ease; pointer-events: auto;
    box-shadow: 0 6px 20px rgba(0,0,0,0.18);
    max-width: 420px;
}
.toast.show { opacity: 1; transform: translateX(0); }
.toast.success { background: #007A52; }
.toast.error { background: #D13438; }
.toast.info { background: #0078D4; }
.toast.warning { background: #E8912D; }
.toast-close {
    display: inline-flex; align-items: center; justify-content: center;
    width: 24px; height: 24px;
    background: rgba(255,255,255,0.3); border: 1.5px solid rgba(255,255,255,0.6);
    color: #fff; cursor: pointer; font-size: 15px; font-weight: 700;
    line-height: 1; border-radius: 50%;
    margin-left: 12px; flex-shrink: 0;
}
.toast-close:hover { background: rgba(255,255,255,0.5); }

/* ═══════════════════════
   Request Logs Modal — Form
   ═══════════════════════ */
.logreq-form { display: flex; flex-direction: column; gap: 16px; }
.logreq-form-label { font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: -8px; }
.logreq-date-row { display: flex; gap: 16px; align-items: flex-end; }
.logreq-date-field { display: flex; flex-direction: column; gap: 4px; flex: 1; }
.logreq-date-input {
    padding: 8px 12px; border-radius: 8px; border: 1px solid var(--border);
    font-size: 13px; background: var(--surface); color: var(--text);
    cursor: pointer; outline: none; width: 100%;
}
.logreq-date-input:focus { border-color: var(--primary); box-shadow: 0 0 0 2px rgba(0,122,82,0.12); }
.logreq-quick-select { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.logreq-note {
    display: flex; align-items: center; gap: 8px;
    font-size: 12px; color: var(--text-secondary);
    padding: 10px 14px; background: #F8F9FB;
    border-radius: 8px; border: 1px solid var(--border);
    margin-top: 4px;
}
.logreq-note svg { flex-shrink: 0; color: var(--text-secondary); }

/* ═══════════════════════
   Log Viewer — Wide Panel + Toolbar
   ═══════════════════════ */
.logview-wide { max-width: 1060px; max-height: 80vh; }
.logview-toolbar {
    display: flex; align-items: center; gap: 20px;
    padding: 10px 20px; border-bottom: 1px solid var(--border);
    background: #FAFBFC;
}
.logreq-search-input {
    padding: 5px 10px; border-radius: 6px; border: 1px solid var(--border);
    font-size: 12px; background: var(--surface); color: var(--text);
    outline: none; min-width: 180px;
}
.logreq-search-input:focus { border-color: var(--primary); box-shadow: 0 0 0 2px rgba(0,122,82,0.12); }

/* View button in log-requests table */
.logreq-view-btn { gap: 4px; }
