/* ── Form fields ── */
.form-field {
    margin-bottom: 1.1rem;
}

.form-field label {
    display: block;
    font-size: .85rem;
    font-weight: 500;
    color: #444;
    margin-bottom: .35rem;
}

.form-field input,
.form-field select {
    width: 100%;
    padding: .55rem .9rem;
    border: 1px solid #ddd;
    border-radius: 7px;
    font-size: .95rem;
    color: #1a1a2e;
    background: #fafafa;
    outline: none;
    transition: border-color .15s, box-shadow .15s;
}

.form-field input:focus,
.form-field select:focus {
    border-color: #4361ee;
    box-shadow: 0 0 0 3px rgba(67,97,238,.1);
    background: #fff;
}

/* ── Feedback ── */
.req-feedback {
    margin-top: .75rem;
    padding: .5rem .9rem;
    border-radius: 7px;
    font-size: .875rem;
    text-align: center;
}

.req-feedback.hidden { display: none; }

.req-success {
    background: #edfaf1;
    color: #1a7a3a;
    border: 1px solid #b2dfcc;
}

.req-error {
    background: #fff0f0;
    color: #c0392b;
    border: 1px solid #f5c6c6;
}

/* ── Segmented control ── */
.req-mode-segmented {
    display: flex;
    background: #f0f2f5;
    border-radius: 8px;
    padding: 2px;
    gap: 2px;
}

.req-mode-btn {
    padding: .2rem .65rem;
    border: none;
    border-radius: 6px;
    background: transparent;
    font-size: .78rem;
    font-weight: 500;
    color: #888;
    cursor: pointer;
    transition: background .15s, color .15s, box-shadow .15s;
    white-space: nowrap;
}

.req-mode-btn.active {
    background: #fff;
    color: #4361ee;
    box-shadow: 0 1px 4px rgba(0,0,0,.12);
}

.req-mode-btn:disabled {
    opacity: .4;
    cursor: not-allowed;
}

/* ── Danger button ── */
.btn-danger {
    background: #e74c3c;
    color: #fff;
    padding: .2rem .55rem;
    font-size: .8rem;
}

.btn-danger:hover:not(:disabled) {
    background: #c0392b;
}

.btn-danger.confirm {
    background: #c0392b;
    animation: pulse-danger .3s ease;
}

@keyframes pulse-danger {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* ── Queue view ── */
.queue-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    align-items: flex-end;
}

.queue-filter-bar .form-field {
    margin-bottom: 0;
    flex: 1;
    min-width: 120px;
}

.queue-bulk-bar {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin-bottom: .75rem;
    min-height: 32px;
}

.queue-pagination {
    display: flex;
    gap: .5rem;
    align-items: center;
    justify-content: center;
    margin-top: 1rem;
    font-size: .875rem;
    color: #555;
}

.queue-table-wrap table {
    opacity: 1;
    transition: opacity .15s;
}

.queue-table-wrap.loading table {
    opacity: .35;
    pointer-events: none;
}
