/*
 * SolaceSentry Portal - Custom CSS
 *
 * Most styling is handled by Tailwind CSS via CDN.
 * This file contains supplemental styles and overrides.
 */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Loading spinner */
.spinner {
    border: 3px solid rgba(59, 130, 246, 0.2);
    border-top-color: #3b82f6;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Code/key display */
code.select-all {
    user-select: all;
    -webkit-user-select: all;
}

/* Modal backdrop */
.modal-backdrop {
    backdrop-filter: blur(2px);
}

/* Table row hover */
tbody tr:hover {
    background-color: #f9fafb;
}

/* Toast notification */
.toast {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    z-index: 100;
    transform: translateY(100%);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

.toast-success {
    background-color: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.toast-error {
    background-color: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}
