/* Стили для инструмента Video to JPG */

.tool-container {
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 30px;
    padding: 3rem;
    margin-top: 2rem;
    backdrop-filter: blur(10px);
    width: 100%;
    max-width: 800px;
}

.drop-zone {
    border: 2px dashed rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 4rem 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 2rem;
    background: rgba(255, 255, 255, 0.02);
}

.drop-zone:hover, .drop-zone.drag-over {
    border-color: var(--primary-color);
    background: rgba(0, 209, 102, 0.05);
    transform: translateY(-2px);
}

.drop-zone p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.drop-zone .icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.controls {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 1rem;
}

@media (max-width: 600px) {
    .controls {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

.control-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    text-align: left;
}

.control-group label {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    font-weight: 800;
}

/* Стилизация ползунка (Slider) */
.slider {
    -webkit-appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.1);
    outline: none;
    transition: all 0.3s ease;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
    box-shadow: 0 0 10px rgba(0, 209, 102, 0.5);
    transition: all 0.2s ease;
}

.slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 0 15px rgba(0, 209, 102, 0.8);
}

.slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border: none;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
    box-shadow: 0 0 10px rgba(0, 209, 102, 0.5);
}

.nav-container {
    position: fixed;
    top: 2rem;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    z-index: 1000;
}

.nav-glass-bar {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 100px;
    padding: 0.8rem 2.5rem;
    display: flex;
    gap: 3rem;
    box-shadow: 
        0 4px 30px rgba(0, 0, 0, 0.1),
        inset 0 0 20px rgba(255, 255, 255, 0.02);
    transition: all 0.3s ease;
}

@media (max-width: 600px) {
    .nav-glass-bar {
        padding: 0.6rem 1.2rem;
        gap: 1rem;
        max-width: 95vw;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .nav-glass-bar::-webkit-scrollbar {
        display: none;
    }
    .nav-link {
        font-size: 0.7rem;
        letter-spacing: 0.5px;
    }
    .nav-container {
        top: 1rem;
    }
}

@media (max-width: 380px) {
    .nav-glass-bar {
        gap: 0.8rem;
        padding: 0.6rem 1rem;
    }
    .nav-link {
        font-size: 0.65rem;
    }
}

.nav-glass-bar:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(0, 209, 102, 0.2);
}

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.3s ease;
    font-weight: 700;
    position: relative;
}

.nav-link:hover {
    color: var(--primary-color);
    text-shadow: 0 0 10px rgba(0, 209, 102, 0.3);
}

.nav-link.active {
    color: var(--secondary-color);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 2px;
    background: var(--primary-color);
    border-radius: 2px;
    box-shadow: 0 0 10px var(--primary-color);
}

/* Стилизация числового ввода (Dark Glass Style) */
.number-input-wrapper {
    position: relative;
    width: 100%;
}

.custom-number-input {
    background: rgba(255, 255, 255, 0.03) !important;
    color: var(--text-main) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 12px !important;
    padding: 14px 50px 14px 18px !important;
    font-family: inherit;
    font-weight: 700;
    font-size: 1.1rem !important;
    width: 100%;
    outline: none;
    transition: all 0.3s ease;
    -moz-appearance: textfield;
}

.custom-number-input:focus {
    border-color: var(--primary-color) !important;
    background: rgba(255, 255, 255, 0.06) !important;
    box-shadow: 0 0 20px rgba(0, 209, 102, 0.1);
}

.custom-number-input::-webkit-outer-spin-button,
.custom-number-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.number-input-nav {
    position: absolute;
    right: 8px;
    top: 8px;
    bottom: 8px;
    width: 32px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    padding-left: 8px;
}

.number-input-btn {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.number-input-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.number-input-btn::after {
    content: '';
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    transition: all 0.2s ease;
}

.number-input-btn.up::after {
    border-bottom: 5px solid rgba(255, 255, 255, 0.3);
}

.number-input-btn.down::after {
    border-top: 5px solid rgba(255, 255, 255, 0.3);
}

.number-input-btn:hover.up::after {
    border-bottom-color: var(--primary-color);
}

.number-input-btn:hover.down::after {
    border-top-color: var(--primary-color);
}

.progress-container {
    margin-top: 3rem;
    display: none;
    width: 100%;
}

.progress-bar {
    height: 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.progress-fill {
    height: 100%;
    background: var(--primary-color);
    width: 0%;
    transition: width 0.1s linear;
    box-shadow: 0 0 20px var(--primary-color);
}

.progress-status {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-align: center;
    font-weight: 600;
}

.result-actions {
    margin-top: 3rem;
    display: none;
    justify-content: center;
}

#video-preview {
    display: none;
    max-width: 100%;
    border-radius: 20px;
    margin-bottom: 2.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}

.hidden-input {
    display: none;
}

.btn-play:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}
