/* Mailer Admin Panel - Custom Styles */

/* Sidebar active link */
.sidebar-link.active {
    background-color: rgba(99, 102, 241, 0.2);
    border-left: 3px solid #6366f1;
}

.sidebar-link:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

/* Status badges */
.badge-active {
    background-color: #10b981;
    color: white;
}

.badge-suspended {
    background-color: #ef4444;
    color: white;
}

.badge-deleted {
    background-color: #6b7280;
    color: white;
}

.badge-pending {
    background-color: #f59e0b;
    color: white;
}

.badge-verified {
    background-color: #3b82f6;
    color: white;
}

/* Health indicators */
.health-ok {
    color: #10b981;
}

.health-error {
    color: #ef4444;
}

/* SQL console textarea */
.sql-textarea {
    font-family: 'Fira Code', 'Cascadia Code', 'Consolas', monospace;
    font-size: 14px;
    tab-size: 2;
}

/* Table improvements */
.admin-table th {
    position: sticky;
    top: 0;
    background-color: #f9fafb;
    z-index: 1;
}

/* Modal overlay */
.modal-overlay {
    background-color: rgba(0, 0, 0, 0.5);
}

/* Flash messages animation */
.flash-message {
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateY(-10px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* HTMX loading indicator */
.htmx-indicator {
    display: none;
}

.htmx-request .htmx-indicator {
    display: inline-block;
}

.htmx-request.htmx-indicator {
    display: inline-block;
}

/* Pre block for JSON */
pre.json-display {
    background-color: #1f2937;
    color: #d1d5db;
    border-radius: 0.5rem;
    padding: 1rem;
    overflow-x: auto;
    font-size: 13px;
    max-height: 400px;
}
