@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

body {
    font-family: 'Inter', sans-serif;
    background-color: #080d14;
    background-image: 
        radial-gradient(circle at 0% 0%, rgba(16, 185, 129, 0.14), transparent 45%),
        radial-gradient(circle at 100% 100%, rgba(59, 130, 246, 0.16), transparent 50%),
        linear-gradient(135deg, #071513 0%, #09121e 50%, #0a1022 100%);
    background-attachment: fixed;
    color: #f8fafc;
    -webkit-user-select: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

input, textarea {
    -webkit-user-select: text;
    user-select: text;
    font-size: 16px;
}

@media (min-width: 640px) {
    input, textarea {
        font-size: 0.875rem;
    }
}

.glass-panel {
    background: rgba(17, 24, 35, 0.78);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 22px;
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.input-modern {
    background: rgba(9, 14, 22, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #ffffff;
    outline: none;
    transition: all 0.2s ease;
}

.input-modern:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.btn-primary-gradient {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 50%, #4f46e5 100%);
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
    box-shadow: 0 8px 22px rgba(37, 99, 235, 0.3);
    transition: all 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}

.btn-primary-gradient:hover {
    transform: translateY(-1px);
    filter: brightness(1.08);
    box-shadow: 0 10px 26px rgba(37, 99, 235, 0.42);
}

.btn-primary-gradient:active {
    transform: translateY(0) scale(0.98);
}

.btn-secondary-glass {
    background: rgba(255, 255, 255, 0.07);
    color: #e2e8f0;
    border: 1px solid rgba(255, 255, 255, 0.12);
    transition: all 0.2s ease;
}

.btn-secondary-glass:hover {
    background: rgba(255, 255, 255, 0.13);
    color: #ffffff;
}

/* EMBLEMATY */
.emblem {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 11px;
    border-radius: 9999px;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.emblem-emerald { background: rgba(16, 185, 129, 0.16); color: #6ee7b7; border: 1px solid rgba(52, 211, 153, 0.35); }
.emblem-blue, .emblem-cyan { background: rgba(59, 130, 246, 0.16); color: #93c5fd; border: 1px solid rgba(96, 165, 250, 0.35); }
.emblem-rose { background: rgba(244, 63, 94, 0.16); color: #fda4af; border: 1px solid rgba(251, 113, 133, 0.35); }
.emblem-amber { background: rgba(245, 158, 11, 0.16); color: #fcd34d; border: 1px solid rgba(251, 191, 36, 0.35); }
.emblem-gold { background: linear-gradient(135deg, rgba(245, 158, 11, 0.22), rgba(59, 130, 246, 0.2)); color: #fde68a; border: 1px solid rgba(251, 191, 36, 0.45); }
.emblem-purple { background: rgba(168, 85, 247, 0.18); color: #d8b4fe; border: 1px solid rgba(192, 132, 252, 0.38); }

.status-dot { width: 7px; height: 7px; border-radius: 9999px; display: inline-block; }
.dot-emerald { background: #10b981; box-shadow: 0 0 8px #10b981; }
.dot-rose { background: #f43f5e; box-shadow: 0 0 8px #f43f5e; }
.dot-purple { background: #a855f7; box-shadow: 0 0 8px #a855f7; }

/* SUWAK ANONIMOWOŚCI */
.toggle-switch-wrap {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    user-select: none;
    padding: 7px 14px 7px 9px;
    border-radius: 9999px;
    background: rgba(9, 14, 22, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.12);
    transition: all 0.25s ease;
}

.toggle-switch-wrap:hover {
    border-color: rgba(96, 165, 250, 0.45);
}

.toggle-slider {
    position: relative;
    width: 46px;
    height: 26px;
    background: rgba(255, 255, 255, 0.14);
    border-radius: 9999px;
    transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    flex-shrink: 0;
}

.toggle-slider::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    background: #cbd5e1;
    border-radius: 50%;
    transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.4);
}

.toggle-switch-wrap input:checked + .toggle-slider {
    background: linear-gradient(135deg, #3b82f6, #4f46e5);
    box-shadow: 0 0 14px rgba(59, 130, 246, 0.45);
}

.toggle-switch-wrap input:checked + .toggle-slider::after {
    transform: translateX(20px);
    background: #ffffff;
}

/* NAWIGACJA I FILTRY */
.nav-tab {
    padding: 8px 16px;
    border-radius: 13px;
    font-weight: 700;
    font-size: 0.78rem;
    transition: all 0.22s ease;
    color: #94a3b8;
    white-space: nowrap;
}

.nav-tab:hover { color: #ffffff; }

.nav-tab.active {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 50%, #4f46e5 100%);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}

.filtr-btn {
    padding: 8px 16px;
    border-radius: 9999px;
    font-size: 0.76rem;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.06);
    color: #cbd5e1;
    border: 1px solid rgba(255, 255, 255, 0.1);
    white-space: nowrap;
    transition: all 0.2s ease;
}

.filtr-btn.active {
    background: linear-gradient(135deg, #3b82f6, #4f46e5);
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}

/* KAFELKI SAL */
.sala-kafelek {
    transition: all 0.25s cubic-bezier(0.22, 1, 0.36, 1);
    touch-action: manipulation;
}

@media (hover: hover) {
    .sala-kafelek:hover {
        transform: translateY(-2px) scale(1.03);
    }
}

.sala-kafelek:active {
    transform: scale(0.95);
}

.kafelek-wolna {
    background: rgba(16, 185, 129, 0.16);
    color: #34d399;
    border: 1px solid rgba(52, 211, 153, 0.35);
}

.kafelek-zajeta {
    background: rgba(244, 63, 94, 0.12);
    color: #fb7185;
    border: 1px solid rgba(251, 113, 133, 0.24);
    opacity: 0.7;
}

.kafelek-zablokowana {
    background: rgba(168, 85, 247, 0.15);
    color: #c084fc;
    border: 1px solid rgba(192, 132, 252, 0.32);
    opacity: 0.8;
}

.ukryta { display: none !important; }

.zaktualizowano { animation: tile-pulse 0.6s ease; }

.modal-overlay {
    background: rgba(5, 9, 15, 0.82);
    backdrop-filter: blur(8px);
}

.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

@keyframes tile-pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.08); filter: brightness(1.3); }
    100% { transform: scale(1); }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.animate-fade-in { animation: fadeIn 0.3s ease forwards; }
.animate-scale-in { animation: scaleIn 0.25s ease forwards; }