/* =========================================
   STYLE.CSS - Estilos do Studio Converter
   ========================================= */

/* Reset e Fontes */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "articulat-cf", "Inter", sans-serif;
    letter-spacing: 0.7px;
}

/* Corpo da Página */
body {
    background: linear-gradient(135deg, #041e2c 0%, #082333 100%);
    color: #fff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Scrollbar Personalizada */
::-webkit-scrollbar {
    height: 8px;
    width: 8px;
}
::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
}
::-webkit-scrollbar-thumb {
    background: #fea202;
    border-radius: 4px;
}

/* Card Principal (Vidro) */
.card {
    width: 100%;
    max-width: 600px;
    padding: 32px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    background: rgba(8, 35, 51, 0.6);
    border: 1px solid rgba(196, 205, 204, 0.3);
    box-shadow: 0 20px 40px rgb(5 32 46 / 50%);
    margin: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    animation: slideUp 0.6s ease-out;
}

.card h2 {
    font-size: 28px;
    font-weight: 800;
    text-align: center;
}

.card h2 span {
    background: linear-gradient(90deg, #fea202 0%, #ff7d00 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Sistema de Abas */
.tabs {
    display: flex;
    gap: 10px;
    background: rgba(255, 255, 255, 0.05);
    padding: 6px;
    border-radius: 12px;
    margin-bottom: 10px;
}

.tab-btn {
    flex: 1;
    padding: 10px;
    border: none;
    background: transparent;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 600;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s;
}

.tab-btn.active {
    background: rgba(255, 255, 255, 0.1);
    color: #fea202;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.tab-content {
    display: none;
    animation: fadeIn 0.4s;
}

.tab-content.active {
    display: block;
}

/* Upload Area */
.file-upload-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    border: 2px dashed rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.file-upload-label.drag-active {
    background: rgba(254, 162, 2, 0.15);
    border-color: #fea202;
    transform: scale(1.02);
}

.file-upload-label:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: #ffa500;
}

/* Inputs e Selects */
.input-group {
    margin-bottom: 15px;
}

.input-group label {
    font-size: 12px;
    opacity: 0.8;
    margin-bottom: 6px;
    display: block;
}

select {
    width: 100%;
    padding: 12px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    outline: none;
    cursor: pointer;
}

select option {
    background: #041b29;
}

/* Botões */
.btn-primary {
    width: 100%;
    padding: 14px;
    border-radius: 12px;
    border: none;
    background: linear-gradient(90deg, #fea202 0%, #ff7d00 100%);
    color: #000;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: transform 0.2s, filter 0.2s;
    margin-top: 10px;
}

.btn-primary:hover:not(:disabled) {
    transform: scale(1.02);
    filter: brightness(1.1);
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    filter: grayscale(1);
}

/* Status e Progresso */
.progress-container {
    width: 100%;
    background: rgba(255, 255, 255, 0.1);
    height: 6px;
    border-radius: 10px;
    overflow: hidden;
    margin-top: 10px;
    display: none;
}

.progress-bar {
    height: 100%;
    background: #fea202;
    width: 0%;
    transition: width 0.3s;
}

.status-text {
    text-align: center;
    font-size: 13px;
    color: #fea202;
    margin-top: 8px;
    min-height: 20px;
}

/* Elementos Visuais Específicos */
.video-preview {
    width: 100%;
    margin-top: 15px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: none;
    max-height: 300px;
    background: #000;
}

.carousel-track {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 10px 0;
}

/* Animações */
@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
/* =========================
   MODO AVANÇADO (CUSTO)
   ========================= */

.advanced-toggle-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fea202;
    padding: 8px 12px;
    font-size: 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    margin-bottom: 15px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.advanced-toggle-btn:hover {
    background: rgba(254, 162, 2, 0.1);
    border-color: #fea202;
}

.advanced-panel {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 20px;
    display: none; /* Oculto por padrão */
    animation: fadeIn 0.3s ease;
}

.advanced-panel.visible {
    display: block;
}

.advanced-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

/* Esconde elementos quando necessário */
.hidden {
    display: none !important;
}
/* ================= MODAL DE PROGRESSO E RESULTADO ================= */
.modal-overlay {
    display: none; /* Oculto por padrão */
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.85); /* Fundo escuro */
    backdrop-filter: blur(5px); /* Desfoque no fundo */
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: #1e1e1e;
    border: 1px solid #333;
    padding: 30px;
    border-radius: 16px;
    width: 90%;
    max-width: 500px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    position: relative;
}

/* Animação de Loading (Spinner) */
.loader-spinner {
    width: 50px; height: 50px;
    border: 5px solid #333;
    border-top: 5px solid #fea202;
    border-radius: 50%;
    margin: 0 auto 20px auto;
    animation: spin 1s linear infinite;
}

@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

/* Texto de Estatísticas */
.stats-box {
    background: rgba(255,255,255,0.05);
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
}

.reduction-highlight {
    color: #4CAF50; /* Verde */
    font-size: 24px;
    font-weight: 800;
    display: block;
    margin-bottom: 5px;
}

.size-comparison {
    color: #888;
    font-size: 14px;
    font-weight: 500;
}

/* Player de Resultado */
.result-video {
    width: 100%;
    max-height: 300px;
    border-radius: 8px;
    margin-bottom: 20px;
    background: #000;
}

/* Botões do Modal */
.modal-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.btn-download {
    background: #4CAF50;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    font-size: 16px;
    transition: 0.2s;
}
.btn-download:hover { background: #45a049; }

.btn-close {
    background: transparent;
    color: #aaa;
    border: 1px solid #444;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
}
.btn-close:hover { background: rgba(255,255,255,0.05); color: #fff; }