 * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 0;
}

/* Carrossel de Banners */
.banner-carousel {
    width: 100%;
    background: white;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
}

.carousel-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-slide.active {
    opacity: 1;
}

.carousel-slide a {
    display: block;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    transition: transform 0.3s;
}

.carousel-slide a:hover img {
    transform: scale(1.02);
}

.carousel-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid rgba(255, 255, 255, 0.8);
}

.indicator:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.2);
}

.indicator.active {
    background: white;
    transform: scale(1.3);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

/* Container Principal */
.container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    padding: 20px;
}

.calculator-section,
.result-section {
    background: white;
    border-radius: 16px;
    padding: 35px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s, box-shadow 0.3s;
}

.calculator-section:hover,
.result-section:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.2);
}

h2 {
    font-size: 26px;
    color: #2d3748;
    margin-bottom: 30px;
    font-weight: 700;
    text-align: center;
    position: relative;
    padding-bottom: 15px;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 2px;
}

.form-group {
    margin-bottom: 25px;
}

label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #4a5568;
    margin-bottom: 10px;
}

.toggle-container {
    display: flex;
    gap: 10px;
    background: #f7fafc;
    padding: 5px;
    border-radius: 10px;
}

.toggle-btn {
    flex: 1;
    padding: 12px 20px;
    border: none;
    background: transparent;
    color: #718096;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 14px;
}

.toggle-btn:hover {
    background: #e2e8f0;
}

.toggle-btn.active {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.form-control {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 15px;
    transition: all 0.3s;
    outline: none;
    background: #f7fafc;
}

.form-control:focus {
    border-color: #667eea;
    background: white;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

select.form-control {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'%3E%3Cpath fill='%23667eea' d='M7 10L2 5h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 45px;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrapper input {
    padding-right: 45px;
}

.spinner-buttons {
    position: absolute;
    right: 8px;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.spinner-up,
.spinner-down {
    width: 28px;
    height: 20px;
    border: none;
    background: linear-gradient(135deg, #667eea, #764ba2);
    cursor: pointer;
    font-size: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    color: white;
    font-weight: bold;
}

.spinner-up {
    border-radius: 6px 6px 0 0;
}

.spinner-down {
    border-radius: 0 0 6px 6px;
}

.spinner-up:hover,
.spinner-down:hover {
    opacity: 0.8;
    transform: scale(1.05);
}

.spinner-up:active,
.spinner-down:active {
    transform: scale(0.95);
}

.hint {
    display: block;
    font-size: 12px;
    color: #a0aec0;
    margin-top: 6px;
    font-style: italic;
}

.slider {
    width: 100%;
    height: 8px;
    border-radius: 6px;
    background: linear-gradient(to right, #e2e8f0 0%, #667eea 50%, #764ba2 100%);
    outline: none;
    -webkit-appearance: none;
    margin-top: 12px;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: white;
    border: 4px solid #667eea;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 2px 10px rgba(102, 126, 234, 0.3);
}

.slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.5);
}

.slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: white;
    border: 4px solid #667eea;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 2px 10px rgba(102, 126, 234, 0.3);
}

.slider::-moz-range-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.5);
}

.slider-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    font-size: 13px;
    color: #718096;
}

#margemLucroValue {
    font-weight: 700;
    color: #667eea;
    font-size: 15px;
}

.result-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 25px;
}

.result-table thead {
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.result-table th {
    padding: 14px;
    text-align: left;
    font-weight: 700;
    color: white;
    border: none;
    font-size: 14px;
}

.result-table th:first-child {
    border-radius: 10px 0 0 0;
}

.result-table th:last-child {
    border-radius: 0 10px 0 0;
}

.result-table td {
    padding: 14px;
    border-bottom: 1px solid #e2e8f0;
    color: #4a5568;
    font-size: 14px;
}

.result-table tr:last-child td {
    border-bottom: none;
}

.result-table tbody tr {
    transition: background 0.2s;
}

.result-table tbody tr:hover {
    background: #f7fafc;
}

.price-display {
    background: linear-gradient(135deg, #10b981, #059669);
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    margin-bottom: 20px;
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.3);
}

.price-label {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.price-value {
    color: white;
    font-size: 36px;
    font-weight: 800;
    letter-spacing: -1px;
}

.btn-download {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.btn-download:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(102, 126, 234, 0.4);
}

.btn-download:active {
    transform: translateY(0);
}

@media (max-width: 768px) {
    .carousel-container {
        height: 180px;
    }
    
    .container {
        grid-template-columns: 1fr;
    }
    
    .calculator-section,
    .result-section {
        padding: 25px;
    }
    
    h2 {
        font-size: 22px;
    }
    
    .price-value {
        font-size: 28px;
    }
}