/* CSS limpo para o projeto Vozear com Azure Computer Vision */
html {
    height: 100%;
    background: 
        url('/static/img/asfalt-light-1920x1080.png') center center fixed,
        linear-gradient(135deg, #0a1419 0%, #1a2f3a 25%, #243847 50%, #1a2f3a 75%, #0a1419 100%);
    background-size: cover;
    background-attachment: fixed;
    background-repeat: no-repeat;
}

body {
    min-height: 100vh;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    max-width: 600px;
    margin: 20px auto;
    padding: 20px;
    background: rgba(242, 242, 242, 0.95);
    backdrop-filter: blur(5px);
    border: 2px solid rgba(255,215,0,0.4);
    color: #333;
    text-align: center;
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.2), inset 0 1px 0 rgba(255,255,255,0.8);
    position: relative;
    z-index: 1;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0,0,0,0.1), inset 0 1px 0 rgba(255,255,255,0.6);
    position: relative;
    z-index: 1;
}

/* Efeito de prêmio/selo no canto superior direito */
body::before {
    content: "☀️";
    position: absolute;
    top: -5px;
    right: -5px;
    font-size: 24px;
    background: linear-gradient(45deg, #FFD700, #FFA500);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #FFD700;
    box-shadow: 0 2px 10px rgba(255,215,0,0.5);
    z-index: 2;
}

h1 {
    margin-bottom: 20px;
    font-size: 2em;
    color: #1f3e20;
}

textarea {
    width: 100%;
    height: 180px;
    font-size: 1.1em;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 8px;
    resize: vertical;
    box-sizing: border-box;
}

button {
    margin-top: 15px;
    padding: 12px 30px;
    font-size: 1.1em;
    background-color: #1f3e20;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    display: inline-block;
    visibility: visible;
    opacity: 1;
    z-index: 10;
    position: relative;
}

button:hover {
    background-color: #2d5430;
}

audio {
    margin-top: 20px;
    width: 100%;
}

a {
    display: inline-block;
    margin-top: 10px;
    text-decoration: none;
    color: #1f3e20;
    font-weight: bold;
}

/* Dark mode styles */
.dark-mode {
    background: #1a1a1a !important;
    background-image: none !important;
    color: #e0e0e0 !important;
    border-color: #555 !important;
}

.dark-mode::before {
    content: "🌙";
    background: linear-gradient(45deg, #4A5568, #2D3748) !important;
    border-color: #4A5568 !important;
    box-shadow: 0 2px 10px rgba(74,85,104,0.5) !important;
}

.dark-mode h1 {
    color: #4ade80 !important;
}

.dark-mode p {
    color: #d1d5db !important;
}

.dark-mode label {
    color: #e0e0e0 !important;
}

.dark-mode textarea {
    background-color: #2d2d2d !important;
    color: #e0e0e0 !important;
    border-color: #555 !important;
}

.dark-mode select, 
.dark-mode input[type="file"], 
.dark-mode input[type="url"] {
    background-color: #2d2d2d !important;
    color: #e0e0e0 !important;
    border-color: #555 !important;
}

.dark-mode button {
    background-color: #065f46 !important;
    color: #e0e0e0 !important;
}

.dark-mode button:hover {
    background-color: #047857 !important;
}

.dark-mode a {
    color: #10b981 !important;
    font-weight: bold;
}

.dark-mode footer {
    background-color: #1f2937 !important;
    color: #d1d5db !important;
    border-top-color: #374151 !important;
}

.dark-mode select, .dark-mode input[type="file"], .dark-mode input[type="url"] {
    background-color: #2d2d2d !important;
    color: #e0e0e0 !important;
    border-color: #555 !important;
}

.dark-mode footer {
    background-color: #1e1e1e !important;
    color: #f2f2f2 !important;
    border-top-color: #555 !important;
}

/* Dark mode toggle button */
.dark-mode-toggle {
    position: static;
    padding: 8px 15px;
    font-size: 14px;
    background-color: #1f3e20;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}

/* Botão de acesso admin */
.admin-access-btn {
    position: static;
    padding: 8px 15px;
    font-size: 14px;
    background-color: #444;
    color: #FFD700;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s;
    opacity: 0.7;
}

.admin-access-btn:hover {
    background-color: #555;
    opacity: 1;
    transform: scale(1.05);
}

/* Header controls for navigation */
.header-controls {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    position: relative;
    z-index: 20;
    visibility: visible;
}

.header-controls button {
    padding: 8px 15px;
    font-size: 14px;
    margin: 0;
    display: inline-block;
    visibility: visible;
    opacity: 1;
}

/* Logo container */
.logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.logo-container img {
    max-width: 150px;
    height: auto;
}

/* Footer */
footer {
    background-color: #f0f0f0;
    color: #333;
    padding: 10px;
    text-align: center;
    font-size: 0.8em;
    border-top: 1px solid #ccc;
    width: 100%;
    box-sizing: border-box;
    margin-top: 30px;
}

/* Progress bar for audio conversion */
.progress-bar {
    display: none;
    margin-top: 1rem;
    height: 8px;
    background-color: #ccc;
    border-radius: 4px;
}

.progress-bar-fill {
    width: 100%;
    height: 100%;
    background-color: #4caf50;
    animation: load 2s infinite;
    border-radius: 4px;
}

@keyframes load {
    0% { width: 0%; }
    100% { width: 100%; }
}

.success-message {
    color: green;
    font-weight: bold;
    margin-top: 1rem;
}

/* Form elements */
label {
    display: block;
    margin-top: 15px;
    margin-bottom: 5px;
    font-weight: bold;
}

select, input[type="file"], input[type="url"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1em;
    box-sizing: border-box;
    margin-bottom: 10px;
}

input[type="file"] {
    padding: 8px;
}

/* Responsive design */
@media (max-width: 768px) {
    body {
        margin: 10px auto;
        padding: 15px;
        max-width: 95%;
    }
    
    .header-controls {
        justify-content: center;
        margin-bottom: 15px;
    }
    
    .header-controls button {
        padding: 6px 12px;
        font-size: 12px;
        margin: 2px;
    }
    
    .logo-container {
        gap: 15px;
        margin-bottom: 15px;
    }
    
    .logo-container img {
        max-width: 120px;
    }
    
    h1 {
        font-size: 1.5em;
        margin-bottom: 15px;
    }
    
    textarea {
        height: 120px;
        font-size: 1em;
        padding: 8px;
    }
    
    button {
        padding: 10px 20px;
        font-size: 1em;
        margin-top: 10px;
    }
    
    select, input[type="file"], input[type="url"] {
        font-size: 14px;
        padding: 8px;
        margin: 5px 0;
    }
    
    footer {
        font-size: 0.7em;
        padding: 8px;
        margin-top: 20px;
    }
}

@media (max-width: 480px) {
    body {
        margin: 5px auto;
        padding: 10px;
    }
    
    .header-controls button {
        padding: 6px 12px;
        font-size: 12px;
    }
    
    .logo-container {
        flex-direction: column;
        gap: 10px;
    }
    
    .logo-container img {
        max-width: 100px;
    }
    
    h1 {
        font-size: 1.3em;
    }
    
    textarea {
        height: 100px;
        font-size: 0.9em;
    }
    
    button {
        padding: 8px 16px;
        font-size: 0.9em;
    }
    
    p {
        font-size: 0.9em;
    }
    
    .dark-mode-toggle {
        padding: 6px 12px;
        font-size: 12px;
    }
}

/* Estilos específicos para funcionalidades do Azure */
.url-input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1em;
    box-sizing: border-box;
    margin-bottom: 10px;
}

/* Estilos para botões de funcionalidades adicionais */
#botao-falar, #botao-parar, #botao-salvar {
    background-color: #2196F3;
    margin: 5px;
    padding: 10px 15px;
    font-size: 14px;
}

#botao-falar:hover, #botao-parar:hover, #botao-salvar:hover {
    background-color: #1976D2;
}

.dark-mode #botao-falar, 
.dark-mode #botao-parar, 
.dark-mode #botao-salvar {
    background-color: #1976D2;
}

/* Estilos para o botão limpar */
#limpar-btn {
    background-color: #FF9800;
}

#limpar-btn:hover {
    background-color: #F57C00;
}

.dark-mode #limpar-btn {
    background-color: #F57C00;
}
