/* css/style.css */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #F9FAFB; /* Bardzo jasny, chłodny szary */
    color: #111827; /* Głęboki, profesjonalny grafit */
}

/* Subtelny, elegancki cień dla kart */
.premium-shadow {
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.05);
}

/* Złoty akcent premium */
.accent-border {
    border-top: 4px solid #EAB308;
}

/* Płynne pojawianie się elementów */
.fade-in {
    animation: fadeIn 0.6s ease-out forwards;
    opacity: 0;
    transform: translateY(10px);
}

@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Profesjonalny spinner ładowania */
.loader {
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-top: 2px solid #FFFFFF;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: spin 0.8s linear infinite;
    display: none;
}

.loader.dark {
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-top: 2px solid #111827;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Spotlight Tutorial Effect */
#tutorial-overlay {
    background: transparent !important;
    backdrop-blur: 0 !important;
}

#tutorial-spotlight {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99;
    pointer-events: none;
}

.spotlight-svg {
    width: 100%;
    height: 100%;
}

.spotlight-mask {
    fill: rgba(15, 23, 42, 0.6);
    mask: url(#mask-hole);
}

#mask-hole-rect {
    fill: black;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

#tutorial-card {
    z-index: 101;
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    z-index: 200;
}

.toast {
    background: white;
    padding: 1rem 1.25rem;
    border-radius: 1rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    border-left: 4px solid #FACC15;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 300px;
    max-width: 450px;
    animation: toast-in 0.3s ease-out forwards;
}

.toast.error { border-left-color: #EF4444; }
.toast.success { border-left-color: #10B981; }

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

.toast-out {
    animation: toast-out 0.3s ease-in forwards !important;
}

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

/* Auth Modal Animations */
.animate-in {
    animation-duration: 300ms;
    animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    animation-fill-mode: forwards;
}
.zoom-in {
    animation-name: zoomIn;
}
@keyframes zoomIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

/* Stylizacja scrollbara dla aplikacji */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: #D1D5DB;
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: #9CA3AF;
}
.custom-scrollbar::-webkit-scrollbar {
    width: 6px;
}
.custom-scrollbar::-webkit-scrollbar-track {
    background: transparent;
}
.custom-scrollbar::-webkit-scrollbar-thumb {
    background-color: #E2E8F0;
    border-radius: 20px;
}
.custom-scrollbar:hover::-webkit-scrollbar-thumb {
    background-color: #CBD5E1;
}

/* Spinner ładowania */
.loader {
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-top: 2px solid #FFFFFF;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: spin 0.8s linear infinite;
}
.loader.hidden {
    display: none;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}