/* Reset e configurações básicas */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    min-height: 100vh;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header */
.header {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    text-align: center;
}

.header h1 {
    color: #ff6b35;
    font-size: 2.5em;
    margin-bottom: 5px;
}

.header p {
    color: #666;
    font-size: 1.1em;
}

/* Conteúdo principal */
.main-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

/* Seções */
.form-section, .result-section {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.form-section h2, .result-section h2 {
    color: #ff6b35;
    margin-bottom: 20px;
    font-size: 1.5em;
    border-bottom: 2px solid #ff6b35;
    padding-bottom: 10px;
}

/* Grupos de formulário */
.form-group {
    margin-bottom: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.form-group select,
.form-group input {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.form-group select:focus,
.form-group input:focus {
    outline: none;
    border-color: #ff6b35;
}

.form-group select:disabled,
.form-group input:disabled {
    background-color: #f5f5f5;
    color: #999;
    cursor: not-allowed;
}

/* Seção de validação */
.validation-section {
    text-align: center;
    margin: 25px 0;
    padding: 20px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

/* Botões */
.btn-primary, .btn-secondary {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 0 5px;
}

.btn-primary {
    background: #ff6b35;
    color: white;
}

.btn-primary:hover:not(:disabled) {
    background: #e55a2b;
    transform: translateY(-2px);
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover:not(:disabled) {
    background: #5a6268;
    transform: translateY(-2px);
}

.btn-primary:disabled,
.btn-secondary:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

/* Seção de resultado */
.product-info {
    margin-bottom: 25px;
}

.color-preview {
    width: 100%;
    height: 80px;
    background: #f8f9fa;
    border: 2px dashed #ddd;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: #666;
    font-style: italic;
}

.product-details {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 6px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    padding: 5px 0;
}

.detail-row .label {
    font-weight: 600;
    color: #555;
}

.detail-row .value {
    color: #333;
}

/* Seção de preços */
.price-section {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.price-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    padding: 8px 0;
}

.price-row.total {
    border-top: 2px solid #ff6b35;
    padding-top: 15px;
    margin-top: 15px;
    font-size: 1.2em;
    font-weight: bold;
}

.price {
    color: #ff6b35;
    font-weight: bold;
    font-size: 1.1em;
}

.price-row.total .price {
    font-size: 1.3em;
}

/* Botões de ação */
.action-buttons {
    text-align: center;
}

/* Loading */
.loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #ff6b35;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading p {
    color: white;
    font-size: 18px;
}

/* Responsividade */
@media (max-width: 768px) {
    .main-content {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .header h1 {
        font-size: 2em;
    }
    
    .container {
        padding: 10px;
    }
}

/* Estados especiais */
.form-group.error select,
.form-group.error input {
    border-color: #dc3545;
}

.form-group.success select,
.form-group.success input {
    border-color: #28a745;
}

/* Animações */
.form-group {
    transition: all 0.3s ease;
}

.form-group:hover {
    transform: translateY(-1px);
}

/* Melhorias visuais */
.form-section, .result-section {
    position: relative;
    overflow: hidden;
}

.form-section::before, .result-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #ff6b35, #f7931e);
}

