@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');
        
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.animate-appearance { animation: fadeInUp 0.6s ease-out forwards; }

body { 
    font-family: 'Inter', sans-serif; 
    color-scheme: dark; 
    font-feature-settings: "calt" 0;
}

.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

.timer-num { display: inline-block; width: 0.6em; text-align: center; font-variant-numeric: tabular-nums; }
.timer-col { display: inline-block; width: 0.28em; text-align: center; position: relative; top: -0.05em; }

input, textarea { 
    caret-color: rgb(var(--color-emerald-400)); 
    outline: none; 
    font-variant-ligatures: none;
    font-feature-settings: "calt" 0;
}
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
input[type="number"] { -moz-appearance: textfield; appearance: none; }

button, .custom-arrow-btn, .ripple-target {
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.custom-arrow-btn {
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; user-select: none; height: 50%;
    transition: transform 0.1s ease, background-color 0.1s ease;
}
.custom-arrow-btn svg {
    transition: transform 0.15s ease;
}
button:active, .custom-arrow-btn:active {
    transform: scale(0.92);
    transition: all 0.1s ease;
}
.custom-arrow-btn:active {
    background-color: rgba(0, 0, 0, 0.25);
}
.custom-arrow-btn.arrow-up:active svg {
    transform: translateY(-3px);
}
.custom-arrow-btn.arrow-down:active svg {
    transform: translateY(3px);
}

.input-box { transition: box-shadow 0.2s ease; cursor: pointer; }

.btn-convex {
    background: linear-gradient(180deg, #3f3f46 0%, #18181b 100%);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.15);
    border: 1px solid #09090b;
    color: rgb(var(--color-cyan-400)); 
    transition: all 0.2s ease;
}
.btn-convex.active-blue {
    background: linear-gradient(180deg, rgb(var(--color-cyan-500)) 0%, rgb(var(--color-cyan-400)) 100%);
    box-shadow: 0 0 12px rgba(var(--color-cyan-500), 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.4) !important;
    border: 1px solid rgb(var(--color-cyan-400));
    color: #ffffff !important;
}
.container-convex {
    background: linear-gradient(180deg, #3f3f46 0%, #18181b 100%);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.15);
    border: 1px solid #09090b;
}

.timer-btn-start {
    background: linear-gradient(180deg, rgb(var(--color-cyan-500)) 0%, rgb(var(--color-cyan-400)) 100%);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.4), 0 0 15px rgba(var(--color-cyan-500), 0.3);
    border: 1px solid #09090b;
    color: rgb(var(--color-cyan-950)) !important;
}
.timer-btn-pause {
    background: linear-gradient(180deg, rgb(var(--color-amber-500)) 0%, rgb(var(--color-amber-400)) 100%);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.4), 0 0 15px rgba(var(--color-amber-500), 0.3);
    border: 1px solid #09090b;
    color: #431407 !important;
}
.timer-btn-reset {
    background: linear-gradient(180deg, #52525b 0%, #3f3f46 100%);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.15);
    border: 1px solid #09090b;
    color: #ffffff !important;
}

#settings-drawer, #fav-drawer {
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    background-color: #18181b;
}
#settings-drawer.open, #fav-drawer.open { transform: translateX(0); }

.menu-option {
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    transition: color 0.2s;
    color: #52525b;
}
.menu-option.active { color: rgb(var(--color-emerald-400)); }

.bubble {
    position: absolute;
    bottom: -5%;
    background: rgba(255, 255, 255, 0.12);
    border: 1.5px solid rgba(255, 255, 255, 0.4);
    box-shadow: inset 0 0 6px rgba(255,255,255,0.2), 0 0 4px rgba(255,255,255,0.1);
    border-radius: 50%;
    pointer-events: none;
    opacity: 0;
}

@keyframes floatUp {
    0% { bottom: -5%; opacity: 0; }
    10% { opacity: 1; }
    85% { opacity: 1; }
    100% { bottom: 105%; opacity: 0; }
}

@keyframes sway {
    0% { transform: translateX(-20px); }
    100% { transform: translateX(20px); }
}

.smooth-collapse {
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease-in-out;
    max-height: 130px;
    overflow: hidden;
    opacity: 1;
}
.smooth-collapse.collapsed { max-height: 0; opacity: 0; pointer-events: none; }

.sortable-ghost { opacity: 0.5; background-color: #27272a; }

/* DEDYKOWANY PASEK PRZEWIJANIA DLA TEXTAREA (PC) */
textarea::-webkit-scrollbar {
    width: 8px;
}
textarea::-webkit-scrollbar-track {
    background: transparent;
    margin: 8px 0; /* Odsunięcie od rogów, by nie ucięło border-radius */
}
textarea::-webkit-scrollbar-thumb {
    background: #52525b; /* Mocniejszy, bardziej widoczny szary (zinc-600) */
    border-radius: 10px;
}
textarea::-webkit-scrollbar-thumb:hover {
    background: #71717a; /* Jaśniejszy szary po najechaniu (zinc-500) */
}