
/* Estilos TechTopia - Tela Cheia Responsiva */
* {
    box-sizing: border-box;
}

#custom-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #020617;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Cascadia Code', 'Fira Code', 'Consolas', monospace;
    color: #ffffff;
    transition: opacity 0.5s ease;
    overflow: hidden;
}

#custom-overlay.fade-out {
    opacity: 0;
}

.tech-screen {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow-y: auto;
}

.tech-content {
    width: 100%;
    max-width: 550px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.challenge-content {
    align-items: stretch;
    max-width: 650px;
}

.tech-logo-img {
    max-width: 150px;
    height: auto;
    animation: fadeInDown 0.6s ease;
}

.tech-subtitle {
    font-size: 13px;
    color: #ff6600;
    font-weight: bold;
    letter-spacing: 2px;
}

.tech-form {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 400px;
    overflow-y: auto;
}

.tech-input-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.tech-input-group label {
    font-size: 10px;
    color: #a0c4ff;
    font-weight: bold;
    letter-spacing: 1px;
}

.tech-input-group input {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid #ff6600;
    padding: 10px 12px;
    color: #ffffff;
    border-radius: 6px;
    outline: none;
    font-size: 12px;
    font-family: inherit;
    transition: all 0.3s ease;
}

.tech-input-group input:focus {
    background: rgba(255, 102, 0, 0.1);
    border-color: #ffaa33;
    box-shadow: 0 0 10px rgba(255, 102, 0, 0.3);
}

.tech-btn {
    background: #ff6600;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    font-family: inherit;
    font-size: 12px;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.tech-btn:hover {
    background: #e65c00;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 102, 0, 0.4);
}

/* Estilos do Desafio de Código */
.tech-instructions {
    background: rgba(255, 102, 0, 0.1);
    padding: 12px 15px;
    border-radius: 6px;
    font-size: 12px;
    line-height: 1.6;
    border-left: 3px solid #ff6600;
    width: 100%;
}

.tech-instructions code {
    background: rgba(0, 0, 0, 0.3);
    padding: 2px 6px;
    border-radius: 3px;
    color: #ffcc99;
    font-weight: bold;
    font-size: 11px;
}

.vs-editor-container {
    display: flex;
    flex-direction: row;
    height: 250px;
    border: 2px solid #ff6600;
    border-radius: 6px;
    overflow: hidden;
    width: 100%;
    gap: 0;
}

.vs-editor {
    flex: 1;
    background: #1e1e1e;
    position: relative;
    display: flex;
    overflow: hidden;
    min-width: 0;
}

.vs-line-numbers {
    width: 35px;
    background: #252526;
    color: #858585;
    padding: 8px 3px;
    text-align: right;
    font-size: 11px;
    user-select: none;
    border-right: 1px solid #3e3e42;
    overflow: hidden;
    flex-shrink: 0;
}

.vs-line-number {
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 4px;
}

.vs-editor textarea {
    flex: 1;
    background: transparent;
    border: none;
    color: transparent;
    caret-color: white;
    padding: 8px;
    font-family: inherit;
    font-size: 12px;
    resize: none;
    outline: none;
    z-index: 2;
    white-space: pre;
    overflow: auto;
    min-width: 0;
}

.vs-highlight {
    position: absolute;
    top: 0;
    left: 43px;
    right: 0;
    padding: 8px;
    margin: 0;
    font-family: inherit;
    font-size: 12px;
    pointer-events: none;
    z-index: 1;
    white-space: pre;
    overflow: hidden;
}

.vs-highlight code {
    color: #9cdcfe;
}

.vs-keyword { color: #569cd6; }
.vs-string { color: #ce9178; }
.vs-comment { color: #6a9955; }

.vs-terminal {
    flex: 1;
    background: #000;
    padding: 10px;
    font-size: 11px;
    color: #00ff00;
    border-left: 1px solid #ff6600;
    overflow-y: auto;
    min-width: 0;
}

.vs-terminal-line {
    margin-bottom: 5px;
    font-family: 'Courier New', monospace;
    word-wrap: break-word;
    white-space: pre-wrap;
}

.tech-footer {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    align-items: center;
}

.tech-btn-run,
.tech-btn-enter {
    width: 100%;
    max-width: 300px;
}

/* Color Picker Missão 02 */
.color-picker-container {
    margin-top: 10px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.color-preview {
    width: 40px;
    height: 40px;
    border-radius: 4px;
    border: 1px solid #555;
}

.color-info {
    font-family: monospace;
    font-size: 14px;
}

/* Animações */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsividade para telas pequenas */
@media (max-height: 600px) {
    .tech-logo-img {
        max-width: 100px;
    }
    
    .vs-editor-container {
        height: 200px;
    }
    
    .tech-subtitle {
        font-size: 11px;
    }
    
    .tech-instructions {
        font-size: 10px;
        padding: 8px 10px;
    }
}

/* Garantir padronização do fundo em todo o site */
body, 
#root,
.bg-background,
[data-sidebar="sidebar"],
.bg-sidebar,
.bg-card,
.bg-muted,
.bg-slate-950,
.bg-slate-900 {
    background-color: #020617 !important;
}

/* Ajustar bordas para combinar com o fundo escuro */
.border-border, .border-sidebar-border {
    border-color: rgba(255, 255, 255, 0.1) !important;
}

/* Inserir Logo no Topo */
header > div.flex.items-center:first-child::before,
.flex.h-16.items-center > div.flex.items-center:first-child::before {
    content: "";
    display: inline-block;
    width: 100px;
    height: 30px;
    background: url('/assets/logo.png') no-repeat center;
    background-size: contain;
    margin-right: 15px;
}

/* Seletor específico para o cabeçalho do app (baseado na imagem) */
header.sticky, .flex.h-16.items-center {
    background-color: #020617 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    padding-left: 20px;
}
