/* Gerador de Cores Layout */

.generator-section {
    padding-top: 100px;
    padding-bottom: 60px;
    background-color: #111;
    min-height: calc(100vh - 150px);
}

.generator-wrapper {
    max-width: 1200px;
    width: 95%;
    margin: 0 auto;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.generator-header {
    text-align: center;
    margin-bottom: 30px;
}

.generator-header h2 {
    color: #00ff99;
    font-size: 2em;
    margin-bottom: 10px;
}

.generator-header p {
    color: #ccc;
    font-size: 1.1em;
    text-align: center;
}

.generator-layout {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 30px;
}

.generator-card {
    background: #252525;
    border: 1px solid #444;
    border-radius: 10px;
    padding: 20px;
    flex: 1;
    min-width: 400px;
}

.generator-card h3 {
    color: #fff;
    margin-bottom: 10px;
    font-size: 1.3em;
    border-bottom: 2px solid #00ff99;
    padding-bottom: 5px;
    display: inline-block;
}

/* Preview Card */
.preview-hint {
    color: #aaa;
    margin-bottom: 20px;
    font-size: 0.9em;
}

.preview-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 0;
}

.avatar-preview {
    width: 280px;
    height: 280px;
    border-radius: 50%;
    /* HaxBall borders */
    border: 7px solid #000;
    display: flex;
    justify-content: center;
    align-items: center;
    
    font-family: Arial, sans-serif;
    font-size: 145px;
    font-weight: bold;
    letter-spacing: -3px;
    color: #ffffff;
    
    /* Text stroke effect for the inner text */
    text-shadow: none;
         
    box-shadow: none;
    background: #0080ff; /* fallback base */
    transition: background 0.3s ease;
}

/* Controls Card */
.controls-columns {
    display: flex;
    gap: 20px;
    flex-wrap: nowrap;
}

.control-column {
    display: flex;
    flex-direction: column;
    gap: 15px;
    flex: 1;
    min-width: 120px;
}

.config-column {
    min-width: 200px;
}

.control-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.control-group h3 {
    font-size: 1em;
    border-bottom: none;
    color: #00ff99;
    margin: 0;
}

.divider {
    border: none;
    border-top: 1px solid #444;
    margin: 5px 0;
}

.radio-label {
    position: relative;
    cursor: pointer;
    background: #1a1a1a;
    border: 1px solid #444;
    padding: 8px 12px;
    border-radius: 8px;
    color: #aaa;
    font-size: 0.9em;
    transition: all 0.3s ease;
    text-align: center;
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.radio-label:hover {
    border-color: #666;
}

.radio-label input[type="radio"] {
    display: none;
}

.radio-label:has(input[type="radio"]:checked) {
    background: rgba(0, 255, 153, 0.15);
    color: #00ff99;
    border-color: #00ff99;
    font-weight: bold;
    box-shadow: 0 0 10px rgba(0, 255, 153, 0.2);
}

/* Quando o input com value="red" está selecionado, brilha em Vermelho */
.radio-label:has(input[value="red"]:checked) {
    background: rgba(255, 77, 77, 0.15) !important;
    color: #ff4d4d !important;
    border-color: #ff4d4d !important;
    box-shadow: 0 0 10px rgba(255, 77, 77, 0.35) !important;
}

/* Quando o input com value="blue" está selecionado, brilha em Azul */
.radio-label:has(input[value="blue"]:checked) {
    background: rgba(77, 166, 255, 0.15) !important;
    color: #4da6ff !important;
    border-color: #4da6ff !important;
    box-shadow: 0 0 10px rgba(77, 166, 255, 0.35) !important;
}


.radio-options {
    display: flex;
    gap: 8px;
    width: 100%;
}

.radio-options.vertical {
    flex-direction: column !important;
    gap: 10px !important;
}

.radio-options.vertical .radio-label {
    width: 100% !important;
    padding: 12px 15px !important;
    font-weight: 500 !important;
}

/* Control Items */
.control-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #1e1e1e;
    padding: 8px 12px;
    border-radius: 6px;
    border: 1px solid #333;
    transition: border-color 0.3s;
}

.control-item:hover {
    border-color: #00ff99;
}

.control-item label {
    font-weight: 500;
    color: #ddd;
    font-size: 0.95em;
}

.control-item input[type="text"],
.control-item input[type="number"] {
    background: #2a2a2a;
    border: 1px solid #555;
    color: #fff;
    padding: 6px 10px;
    border-radius: 6px;
    font-family: inherit;
    font-size: 1em;
    width: 85px;
    text-align: center;
    transition: all 0.3s ease;
}

.control-item input:focus {
    outline: none;
    border-color: #00ff99;
    background: #111;
    box-shadow: 0 0 8px rgba(0, 255, 153, 0.4);
}

.control-item input[type="range"] {
    accent-color: #00ff99;
    width: 100%;
    cursor: pointer;
}

.slider-item {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
}
.slider-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.color-input-wrapper {
    display: flex;
    gap: 8px;
    align-items: center;
}

.color-input-wrapper input[type="color"] {
    -webkit-appearance: none;
    appearance: none;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 4px;
    cursor: pointer;
    padding: 0;
    background: none;
}

.color-input-wrapper input[type="color"]::-webkit-color-swatch-wrapper {
    padding: 0;
}
.color-input-wrapper input[type="color"]::-webkit-color-swatch {
    border: 1px solid #555;
    border-radius: 4px;
}

/* Command Section */
.command-section {
    background: #252525;
    border: 1px solid #00ff99;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
}

.command-section h3 {
    color: #fff;
    margin-bottom: 5px;
    font-size: 1.5em;
}

.command-section p {
    color: #aaa;
    margin-bottom: 15px;
    font-size: 0.9em;
    text-align: center;
}

.command-box {
    display: flex;
    gap: 10px;
    max-width: 600px;
    margin: 0 auto;
}

.command-box input {
    flex: 1;
    background: #111;
    border: 1px solid #444;
    color: #00ff99;
    padding: 12px 15px;
    border-radius: 6px;
    font-family: monospace;
    font-size: 1.1em;
}

.copy-btn {
    background: #00ff99;
    color: #111;
    border: none;
    padding: 0 20px;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 1em;
    display: flex;
    align-items: center;
    gap: 8px;
}

.copy-btn:hover {
    background: #00cc7a;
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .generator-card {
        min-width: 100%;
        padding: 15px;
    }
    .controls-columns {
        flex-direction: column;
    }
    .control-column {
        min-width: 100%;
    }
    .radio-options {
        flex-wrap: wrap;
    }
    .avatar-preview {
        width: 220px;
        height: 220px;
        font-size: 110px;
    }
    .command-box {
        flex-direction: column;
    }
    .copy-btn {
        padding: 12px;
        justify-content: center;
    }
    .form-row-responsive {
        flex-wrap: wrap;
    }
    .form-row-responsive button {
        width: 100% !important;
        margin-top: 5px;
    }
}

/* --- Estilização Avançada do Formulário de Envio de Uniformes --- */
.uniform-submit-section {
    margin-top: 30px !important;
    background: linear-gradient(145deg, #202020, #151515) !important;
    border: 1px solid #333 !important;
    border-radius: 12px !important;
    padding: 30px 25px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6) !important;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.uniform-submit-section:hover {
    border-color: #444 !important;
}

.uniform-submit-section h3 {
    font-size: 1.6em !important;
    font-weight: 700 !important;
    letter-spacing: 0.5px !important;
    color: #ffffff !important;
    margin-bottom: 20px !important;
}

.uniform-input-group {
    position: relative;
    width: 100%;
}

.uniform-input {
    width: 100%;
    padding: 12px 16px !important;
    border-radius: 8px !important;
    border: 1px solid #333 !important;
    background: #111111 !important;
    color: #ffffff !important;
    font-size: 1em !important;
    font-family: 'Poppins', sans-serif !important;
    transition: all 0.3s ease !important;
    outline: none !important;
}

.uniform-input:focus {
    border-color: var(--primary-green, #00ff99) !important;
    box-shadow: 0 0 12px rgba(0, 255, 153, 0.25) !important;
    background: #0d0d0d !important;
}

.uniform-input.red-code {
    color: #ff4d4d !important;
    font-family: 'Courier New', Courier, monospace !important;
    font-weight: 600 !important;
}

.uniform-input.red-code:focus {
    border-color: #ff4d4d !important;
    box-shadow: 0 0 12px rgba(255, 77, 77, 0.25) !important;
}

.uniform-input.blue-code {
    color: #4da6ff !important;
    font-family: 'Courier New', Courier, monospace !important;
    font-weight: 600 !important;
}

.uniform-input.blue-code:focus {
    border-color: #4da6ff !important;
    box-shadow: 0 0 12px rgba(77, 166, 255, 0.25) !important;
}

/* Capturar Buttons */
.btn-capture {
    padding: 12px 20px !important;
    border-radius: 8px !important;
    border: none !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    font-size: 0.95em !important;
    cursor: pointer !important;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
    min-width: 140px !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3) !important;
}

.btn-capture.red-team {
    background: linear-gradient(135deg, #ff4d4d, #cc1111) !important;
}

.btn-capture.red-team:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(255, 77, 77, 0.45) !important;
    filter: brightness(1.1);
}

.btn-capture.red-team:active {
    transform: translateY(0) !important;
}

.btn-capture.blue-team {
    background: linear-gradient(135deg, #4da6ff, #0066cc) !important;
}

.btn-capture.blue-team:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(77, 166, 255, 0.45) !important;
    filter: brightness(1.1);
}

.btn-capture.blue-team:active {
    transform: translateY(0) !important;
}

/* Enviar para Avaliação Button */
.btn-submit-uniform {
    margin-top: 15px !important;
    padding: 14px !important;
    border-radius: 8px !important;
    border: none !important;
    background: linear-gradient(135deg, var(--primary-green, #00ff99), #00cc7a) !important;
    color: #0a0a0a !important;
    font-size: 1.1em !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
    box-shadow: 0 4px 15px rgba(0, 255, 153, 0.2) !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}

.btn-submit-uniform:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 8px 25px rgba(0, 255, 153, 0.45) !important;
    background: linear-gradient(135deg, #ffffff, var(--primary-green, #00ff99)) !important;
}

.btn-submit-uniform:active {
    transform: translateY(-1px) !important;
}
