@tailwind base;
@tailwind components;
@tailwind utilities;

/* Klassi Planeerija — Kohandatud disainitokenid ja stiilid */

:root {
    --primary: #059669;
    --primary-hover: #047857;
    --accent: #3b82f6;
    --danger: #f43f5e;
    --desk-bg: #ffffff;
    --desk-border: #cbd5e1;
}

.dark {
    --desk-bg: #1e293b;
    --desk-border: #334155;
}

/* Kohandatud kerimisriba */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 999px;
}
.dark ::-webkit-scrollbar-thumb {
    background: #475569;
}

/* Ruudustiku lahtrite interaktsioonid */
.grid-cell {
    touch-action: none;
    user-select: none;
    -webkit-user-select: none;
}

.grid-cell:hover .desk-actions {
    display: flex !important;
}

/* Laua lohistamise efekt */
.grid-cell.dragging {
    opacity: 0.4;
    transform: scale(0.95);
}

/* Animatsioonid */
@keyframes popIn {
    0% { transform: scale(0.8); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

.animate-pop-in {
    animation: popIn 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); }
    50% { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
}

.animate-pulse-glow {
    animation: pulseGlow 1.5s infinite;
}

/* Trükivaate reeglid */
@media print {
    .no-print {
        display: none !important;
    }
    body {
        background: #ffffff !important;
        color: #000000 !important;
    }
}
