/* ========== MODALS ========== */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
    backdrop-filter: blur(4px);
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--card-bg);
    border-radius: var(--radius-xl);
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    transition: background 0.4s ease;
}

.modal-header {
    padding: 24px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 6px;
    border-radius: 6px;
    font-size: 22px;
    line-height: 1;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: rgba(207, 107, 107, 0.15);
    color: var(--error);
}

.modal form,
.modal-body {
    padding: 24px;
}

.modal-actions {
    padding: 16px 24px 24px;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

/* Delete modal specifics */
.modal-danger .modal-header {
    background: var(--error);
}

.modal-danger .modal-header h2 {
    color: #fff;
}

.modal-danger .modal-close {
    color: rgba(255, 255, 255, 0.7);
}

.modal-danger .modal-close:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

.warning-icon {
    text-align: center;
    margin: 20px 0;
    color: var(--error);
}

.warning-text {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 16px;
    text-align: center;
}

.warning-text strong {
    color: var(--error);
    font-size: 16px;
}

.deletion-list {
    background: rgba(207, 107, 107, 0.08);
    border-left: 4px solid var(--error);
    padding: 14px 18px 14px 36px;
    margin: 16px 0;
    border-radius: var(--radius-sm);
    list-style-type: disc;
}

.deletion-list li {
    color: var(--text-secondary);
    margin-bottom: 6px;
    font-size: 14px;
}

.confirmation-text {
    color: var(--text-secondary);
    font-size: 14px;
    margin: 20px 0 10px;
    text-align: center;
}

.confirmation-text strong {
    color: var(--accent);
    font-family: monospace;
    font-size: 15px;
    background: var(--accent-glow);
    padding: 2px 8px;
    border-radius: 4px;
}

.btn-delete-confirm {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--error);
    color: #fff;
    border: none;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-delete-confirm:hover:not(:disabled) {
    opacity: 0.9;
    transform: translateY(-1px);
}

.btn-delete-confirm:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* ========== ERROR MESSAGE ========== */
.error-message {
    color: var(--error);
    font-size: 14px;
    margin-top: 12px;
    text-align: center;
    font-weight: 500;
}

/* ========== TAB CONTENT ========== */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* ========== SCROLLBAR ========== */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--tertiary);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}
