﻿/* =============================================================================
   BASE STYLES - No Bootstrap, TailwindCSS only
   ============================================================================= */

html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 0;
}

/* Links */
a {
    /*color: #4f46e5;*/
    text-decoration: none;
}
/*
a:hover {
    color: #4338ca;
}*/

/* Focus states */
h1:focus {
    outline: none;
}

/* Form validation */
.valid.modified:not([type=checkbox]) {
    outline: 1px solid #22c55e;
}

.invalid {
    outline: 1px solid #ef4444;
}

.validation-message {
    color: #ef4444;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* Blazor error boundary */
.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b91c1c;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
    border-radius: 0.5rem;
}

.blazor-error-boundary::after {
    content: "An error has occurred."
}

/* =============================================================================
   ANIMATION UTILITIES - SlideOver animations
   ============================================================================= */

/* Keyframes */
@keyframes slideInFromRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutToRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

@keyframes zoomIn {
    from {
        transform: scale(0.95);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

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

/* Animation classes - matches tailwindcss-animate plugin */
.animate-in {
    animation-fill-mode: both;
}

.animate-in.fade-in {
    animation: fadeIn 0.3s ease-out;
}

.animate-in.slide-in-from-right {
    animation: slideInFromRight 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.animate-in.slide-in-from-bottom-4 {
    animation: slideInFromBottom 0.3s ease-out;
}

.animate-in.slide-in-from-bottom-2 {
    animation: slideInFromBottom 0.2s ease-out;
}

.animate-in.zoom-in-95 {
    animation: zoomIn 0.2s ease-out;
}

/* Duration modifiers */
.duration-200 {
    animation-duration: 0.2s;
}

.duration-300 {
    animation-duration: 0.3s;
}

.duration-500 {
    animation-duration: 0.5s;
}

/* Easing modifiers */
.ease-out {
    animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
}

/* =============================================================================
   TOAST NOTIFICATIONS - Global styles (moved from scoped CSS)
   ============================================================================= */

.toast-notifications {
    position: fixed;
    top: 80px;
    right: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 400px;
    pointer-events: none;
}

.toast-notification {
    background: white;
    border-radius: 16px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    backdrop-filter: blur(20px);
    overflow: hidden;
    transform: translateX(100%);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    pointer-events: auto;
    min-width: 320px;
}

.toast-notification.show {
    transform: translateX(0);
    opacity: 1;
}

.toast-notification.success {
    border-left: 4px solid #10b981;
    box-shadow: 0 8px 32px rgba(16, 185, 129, 0.2);
}

.toast-notification.error {
    border-left: 4px solid #ef4444;
    box-shadow: 0 8px 32px rgba(239, 68, 68, 0.2);
}

.toast-notification.warning {
    border-left: 4px solid #f59e0b;
    box-shadow: 0 8px 32px rgba(245, 158, 11, 0.2);
}

.toast-notification.info {
    border-left: 4px solid #06b6d4;
    box-shadow: 0 8px 32px rgba(6, 182, 212, 0.2);
}

.toast-content {
    padding: 16px 20px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.toast-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1rem;
    margin-top: 2px;
    transition: all 0.3s ease;
}

.toast-notification.success .toast-icon {
    background: linear-gradient(135deg, #10b981, #047857);
    color: white;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.toast-notification.error .toast-icon {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.toast-notification.warning .toast-icon {
    background: linear-gradient(135deg, #f59e0b, #ea580c);
    color: white;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.toast-notification.info .toast-icon {
    background: linear-gradient(135deg, #06b6d4, #0891b2);
    color: white;
    box-shadow: 0 4px 12px rgba(6, 182, 212, 0.3);
}

.toast-message {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.toast-title {
    font-weight: 700;
    font-size: 0.95rem;
    color: #111827;
    line-height: 1.3;
}

.toast-text {
    font-size: 0.875rem;
    color: #6b7280;
    line-height: 1.4;
    word-wrap: break-word;
}

.toast-close {
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    color: #6b7280;
    cursor: pointer;
    padding: 6px;
    border-radius: 8px;
    transition: all 0.2s ease;
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
}

.toast-close:hover {
    background: #e5e7eb;
    color: #111827;
    border-color: #6366f1;
    transform: scale(1.1);
}

.toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    width: 100%;
    animation: toastProgressBar linear forwards;
    border-radius: 0 0 16px 16px;
}

.toast-notification.success .toast-progress {
    background: linear-gradient(90deg, #10b981, #047857);
}

.toast-notification.error .toast-progress {
    background: linear-gradient(90deg, #ef4444, #dc2626);
}

.toast-notification.warning .toast-progress {
    background: linear-gradient(90deg, #f59e0b, #ea580c);
}

.toast-notification.info .toast-progress {
    background: linear-gradient(90deg, #06b6d4, #0891b2);
}

@keyframes toastProgressBar {
    from { 
        width: 100%; 
        opacity: 1;
    }
    to { 
        width: 0%; 
        opacity: 0.5;
    }
}

/* Toast hover effects */
.toast-notification:hover {
    transform: translateX(-4px) scale(1.02);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.toast-notification:hover .toast-progress {
    animation-play-state: paused;
}

/* Toast responsive */
@media (max-width: 768px) {
    .toast-notifications {
        top: 70px;
        right: 16px;
        left: 16px;
        max-width: none;
    }

    .toast-notification {
        min-width: auto;
    }

    .toast-content {
        padding: 14px 16px;
        gap: 10px;
    }

    .toast-icon {
        width: 28px;
        height: 28px;
        font-size: 0.9rem;
    }

    .toast-title {
        font-size: 0.9rem;
    }

    .toast-text {
        font-size: 0.8rem;
    }

    .toast-close {
        width: 24px;
        height: 24px;
        font-size: 0.7rem;
    }
}