@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=JetBrains+Mono:wght@500;700;800&display=swap');

* {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    user-select: none;
    -webkit-user-select: none;
    background-color: #040d08;
}

.font-mono {
    font-family: 'JetBrains Mono', monospace;
}

/* Верхній тулбар */
.top-icon-btn {
    width: 32px;
    height: 32px;
    border-radius: 9px;
    background: #0d2317;
    border: 1px solid #1c4a32;
    color: #d1fae5;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
}
.top-icon-btn:hover {
    background: #17422b;
    color: #34d399;
    transform: translateY(-1px);
}
.top-icon-btn:active {
    transform: translateY(0);
}

/* Перемикач ракурсів */
.cam-switch-btn {
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 700;
    color: #a7f3d0;
    transition: all 0.15s ease;
}
.cam-switch-btn:hover {
    color: #ffffff;
}
.cam-switch-btn.active {
    background: #059669;
    color: #ffffff;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.45);
}

/* Бокові ярлики (Tabs) */
.side-tab-btn {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: #0b2014;
    border: 1px solid #1a4933;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    cursor: pointer;
    transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}
.side-tab-btn:hover {
    background: #153c28;
    border-color: #34d399;
    transform: scale(1.05);
}
.side-tab-btn.active {
    background: #16462d;
    border-color: #10b981;
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.5);
}

/* Висувні панелі (Drawers) */
.photo-drawer {
    position: absolute;
    right: 48px;
    top: 0;
    bottom: 0;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease;
    transform: translateX(0);
    opacity: 1;
}
.photo-drawer.drawer-closed {
    transform: translateX(110%);
    opacity: 0;
    pointer-events: none;
}

/* Картки параметрів */
.photo-card {
    background: #0a1b12;
    border: 1px solid #17422c;
    border-radius: 12px;
    padding: 10px;
    transition: all 0.15s ease;
}
.photo-card:hover {
    border-color: #10b981;
    background: #0e271a;
}

/* Слайдери */
.photo-slider {
    height: 6px;
    border-radius: 4px;
    background: #163c29;
    outline: none;
    cursor: pointer;
}

/* Пресетні кнопки */
.preset-btn {
    padding: 6px;
    border-radius: 8px;
    background: #0e2518;
    border: 1px solid #18462e;
    font-size: 10px;
    font-weight: 700;
    color: #d1fae5;
    text-align: center;
    transition: all 0.15s ease;
}
.preset-btn:hover {
    background: #17422b;
    border-color: #34d399;
    color: #ffffff;
}

/* Скролбар */
::-webkit-scrollbar {
    width: 5px;
    height: 5px;
}
::-webkit-scrollbar-track {
    background: #051009;
}
::-webkit-scrollbar-thumb {
    background: #17412b;
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: #256b46;
}

@keyframes scaleUp {
    from { transform: scale(0.93); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}
.animate-scale-up {
    animation: scaleUp 0.18s ease-out forwards;
}

@supports (height: 100dvh) {
    body {
        height: 100dvh !important;
    }
}