/* ====================================================================== */
/* CSS PARA PLUGIN CALCULADORA DE PRECIFICAÇÃO SHOPEE - WORDPRESS */
/* ====================================================================== */

.calculadora-shopee-container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #f8f9fa;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

/* Header */
.calc-shopee-header {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    text-align: center;
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 30px;
    box-shadow: 0 8px 25px rgba(0,123,255,0.3);
}

.calc-shopee-header h2 {
    font-size: 2rem;
    margin: 0 0 10px 0;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.calc-shopee-header p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 15px;
}

.version-badge {
    background: rgba(255,255,255,0.2);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    border: 1px solid rgba(255,255,255,0.3);
    display: inline-block;
}

/* Form Styles */
.calc-shopee-form {
    background: white;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
}

.calc-section {
    margin-bottom: 25px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    border-left: 4px solid #007bff;
}

.calc-section h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: #007bff;
    display: flex;
    align-items: center;
    gap: 8px;
}

.calc-section h4 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: #495057;
}

/* Form Layout */
.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 15px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    margin-bottom: 6px;
    color: #495057;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.95rem;
}

.tooltip {
    cursor: help;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.tooltip:hover {
    opacity: 1;
}

.form-group input {
    padding: 12px 15px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

.form-group input:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0,123,255,0.1);
}

.help-text {
    font-size: 0.8rem;
    color: #6c757d;
    margin-top: 4px;
}

/* Buttons */
.actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
    margin: 25px 0;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    box-shadow: 0 4px 15px rgba(0,123,255,0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,123,255,0.4);
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-1px);
}

.btn-info {
    background: #17a2b8;
    color: white;
}

.btn-info:hover {
    background: #138496;
    transform: translateY(-1px);
}

.btn-success {
    background: #28a745;
    color: white;
}

.btn-success:hover {
    background: #218838;
    transform: translateY(-1px);
}

.btn-large {
    padding: 15px 30px;
    font-size: 1.1rem;
}

/* Results Section */
.resultados-section {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    margin-bottom: 25px;
}

.resultados-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.resultado-card {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    border-left: 4px solid #dee2e6;
    transition: all 0.3s ease;
}

.resultado-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.resultado-icon {
    font-size: 2rem;
    width: 50px;
    text-align: center;
}

.resultado-info {
    flex: 1;
}

.resultado-info label {
    font-weight: 600;
    color: #495057;
    display: block;
    margin-bottom: 5px;
    font-size: 0.9rem;
}

.resultado-valor {
    font-size: 1.4rem;
    font-weight: 700;
    color: #007bff;
    display: block;
    margin-bottom: 3px;
}

.resultado-info small {
    color: #6c757d;
    font-size: 0.8rem;
}

/* Special Cards */
.lucro-card {
    border-left-color: #28a745;
}

.lucro-card .resultado-valor {
    color: #28a745;
}

.margem-card {
    border-left-color: #17a2b8;
}

.margem-card .resultado-valor {
    color: #17a2b8;
}

/* Conditional Colors */
.lucro-positivo {
    color: #28a745 !important;
}

.lucro-negativo {
    color: #dc3545 !important;
}

.margem-excelente {
    color: #28a745 !important;
}

.margem-aceitavel {
    color: #ffc107 !important;
}

.margem-risco {
    color: #dc3545 !important;
}

/* Tips Section */
.dicas-margem {
    background: white;
    border-radius: 12px;
    padding: 25px;
}

.dicas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.dica-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    border-radius: 8px;
    background: #f8f9fa;
}

.dica-item.verde {
    border-left: 4px solid #28a745;
}

.dica-item.amarelo {
    border-left: 4px solid #ffc107;
}

.dica-item.vermelho {
    border-left: 4px solid #dc3545;
}

.dica-emoji {
    font-size: 1.5rem;
}

.dica-item strong {
    color: #495057;
    font-size: 0.95rem;
}

.dica-item p {
    color: #6c757d;
    font-size: 0.85rem;
    margin: 0;
}

/* Loading Indicator */
.loading-indicator {
    text-align: center;
    padding: 30px;
    background: white;
    border-radius: 12px;
    margin: 20px 0;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .calculadora-shopee-container {
        margin: 10px;
        padding: 15px;
    }
    
    .calc-shopee-header {
        padding: 20px;
    }
    
    .calc-shopee-header h2 {
        font-size: 1.6rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .resultados-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .dicas-grid {
        grid-template-columns: 1fr;
    }
    
    .actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .btn {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .calc-shopee-header h2 {
        font-size: 1.4rem;
    }
    
    .resultado-card {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .resultado-icon {
        width: auto;
    }
}
