/* assets/css/common.css - Shared UI/UX polish, accessibility, and feedback states */

/* Accessible keyboard focus rings */
:focus-visible {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

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

/* Reusable Toast Notifications */
.rb-toast-container {
    position: fixed;
    bottom: 1.25rem;
    right: 1.25rem;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-width: 24rem;
    pointer-events: none;
}

.rb-toast {
    pointer-events: auto;
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #ffffff;
    background: #0f172a;
    box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.25);
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.rb-toast.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.rb-toast--success {
    background: #059669;
}

.rb-toast--error {
    background: #dc2626;
}

/* Button loading state */
.rb-btn-loading {
    opacity: 0.7;
    pointer-events: none;
    cursor: wait;
}
