/* ========== ESTILOS ESPECÍFICOS DAS SEÇÕES ========== */

/* Seleção de País */
.country-selection-section {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-left: 4px solid #1b5e20;
}

.country-selection-section label {
    font-weight: 600;
    color: #333;
    white-space: nowrap;
}

.country-selection-section select,
.country-selection-section input[type="text"] {
    padding: 10px 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1em;
    min-width: 300px;
    transition: border-color 0.3s;
}

.country-selection-section select:focus,
.country-selection-section input[type="text"]:focus {
    outline: none;
    border-color: #1b5e20;
}

.country-search-wrapper { position: relative; }

.country-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: 250px;
    overflow-y: auto;
    background: white;
    border: 2px solid #1b5e20;
    border-top: none;
    border-radius: 0 0 8px 8px;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.country-dropdown-item {
    padding: 8px 15px;
    cursor: pointer;
    font-size: 0.95em;
}

.country-dropdown-item:hover {
    background: #e8f5e9;
}

/* Abas dos Países */
.country-tabs-header {
    display: flex;
    gap: 5px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.country-tab-button {
    padding: 10px 20px;
    border: 2px solid #ddd;
    background: white;
    border-radius: 8px 8px 0 0;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.country-tab-button:hover {
    background: #f0f0f0;
}

.country-tab-button.active {
    background: #1b5e20;
    color: white;
    border-color: #1b5e20;
}

.country-tab-content {
    display: none;
    padding: 20px;
    background: white;
    border-radius: 0 12px 12px 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.country-tab-content.active {
    display: block;
}

/* Pricing Tabs */
.pricing-tabs {
    display: flex;
    gap: 2px;
    margin-bottom: 0;
    border-bottom: 2px solid #ddd;
}

.pricing-tab-button {
    padding: 12px 20px;
    border: 2px solid #ddd;
    border-bottom: none;
    background: #f8f9fa;
    cursor: pointer;
    font-weight: 500;
    border-radius: 8px 8px 0 0;
    transition: all 0.3s;
    font-size: 14px;
    color: #333;
}

.pricing-tab-button:hover {
    background: #e9ecef;
}

.pricing-tab-button.active {
    background: #1b5e20;
    color: white;
    border-color: #1b5e20;
}

.pricing-tab-button.active:hover {
    background: #1b5e20;
}

.pricing-tab-content {
    display: none;
}

.pricing-tab-content.active {
    display: block;
}

/* Seção Superior */
.top-section {
    margin: 0 auto 20px;
}

.unified-top {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 15px;
    align-items: stretch;
}

.unified-top > *:nth-child(n+4) {
    display: none;
}

/* Canais / Preços */
.channels-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    align-items: stretch;
}

.channels-selector {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 15px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-left: 4px solid #6f42c1;
}

.channels-selector label {
    font-weight: 600;
    color: #333;
    font-size: 0.95em;
    margin: 0;
    white-space: nowrap;
}

.channels-selector .checkbox-group {
    display: flex;
    gap: 15px;
    align-items: center;
}

.channels-selector .checkbox-group label {
    font-weight: normal;
    font-size: 0.9em;
}

.channels-section .price-selector {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 15px;
    border-left: 4px solid #e83e8c;
}

/* DoSystems */
.dosystems-info {
    background: white;
    padding: 15px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-left: 4px solid #ff9900;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
}

.dosystems-result-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: linear-gradient(135deg, #1b5e20 0%, #2e7d32 100%);
    color: white;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 16px;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(27, 94, 32, 0.3);
}

.dosystems-result-badge span:first-child {
    font-size: 14px;
    opacity: 0.9;
}

.dosystems-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px;
}

.dosystems-row {
    display: flex;
    gap: 10px;
    width: 100%;
}

.dosystems-item {
    display: flex !important;
    flex-direction: column !important;
    gap: 4px;
    flex: 1;
}

.dosystems-item input {
    padding: 6px 8px;
    font-size: 0.85em;
    width: auto !important;
    min-width: 80px;
    border: 2px solid #ddd;
    border-radius: 6px;
    transition: border-color 0.3s;
}

.dosystems-item input:focus {
    outline: none;
    border-color: #1b5e20;
}

/* Resultados */
.results-info {
    background: white;
    padding: 15px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-left: 4px solid #146eb4;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.totals-row {
    display: flex;
    gap: 10px;
    width: 100%;
}

.total-card {
    text-align: center;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
    flex: 1;
}

.total-card h3 { font-size: 0.85em; margin: 0 0 6px 0; color: #555; }
.total-card p { color: #1b5e20 !important; font-weight: 700; font-size: 1.2em; margin: 0 0 4px 0; }
.total-card small { font-size: 0.75em; color: #888; }

/* POC */
.poc-analysis {
    background: white;
    padding: 15px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-left: 4px solid #00a651;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.poc-cards-row {
    display: flex;
    gap: 8px;
    width: 100%;
}

.poc-card {
    flex: 1;
    padding: 8px;
    background: #f8f9fa;
    border-radius: 8px;
    transition: all 0.3s;
}

.poc-card h4 { font-size: 0.85em; margin: 0 0 6px 0; color: #555; }
.poc-card p { margin: 2px 0; font-size: 0.8em; }

.dosystems-info h3, .results-info h3, .poc-analysis h3 {
    margin: 0 0 12px 0;
    font-size: 1em;
    color: #333;
}

/* Detalhamento */
.bottom-section {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 20px;
}

.left-column, .right-column {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Operação / URA questions */
.operacao-questions,
.ura-questions {
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.operacao-questions { border-left: 4px solid #17a2b8; }
.ura-questions { border-left: 4px solid #20c997; }

.operacao-questions h3,
.ura-questions h3 {
    margin: 0 0 15px 0;
    font-size: 1em;
    color: #333;
    font-weight: 600;
}

@media (max-width: 768px) {
    .unified-top { grid-template-columns: 1fr; }
    .bottom-section { grid-template-columns: 1fr; }
    .channels-section { grid-template-columns: 1fr; }
}

/* Tabela de Preços Connect */
.connect-tab {
    display: none;
}

.connect-tab.active {
    display: block !important;
}

.connect-section-card {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.connect-section-card h2 {
    margin: 0 0 15px 0;
    font-size: 1.1em;
    color: #1b5e20;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 10px;
}

.connect-table {
    width: 100%;
    border-collapse: collapse;
}

.connect-table th {
    background: #f8f9fa;
    padding: 10px 12px;
    text-align: left;
    font-weight: 600;
    color: #555;
    border-bottom: 2px solid #ddd;
    font-size: 0.9em;
}

.connect-table td {
    padding: 8px 12px;
    border-bottom: 1px solid #eee;
    font-size: 0.9em;
}

.connect-table tr:hover {
    background: #f8f9fa;
}

.connect-table .price-input {
    width: 120px;
    padding: 6px 8px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 0.9em;
    text-align: right;
    transition: border-color 0.3s;
}

.connect-table .price-input:focus {
    outline: none;
    border-color: #1b5e20;
}

.connect-notes {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 4px solid #ff9900;
}

.connect-notes h3 {
    margin: 0 0 10px 0;
    font-size: 0.95em;
    color: #333;
}

.connect-notes ol {
    margin: 0;
    padding-left: 20px;
    font-size: 0.85em;
    color: #666;
}

.connect-notes li {
    margin-bottom: 4px;
}

.btn-save {
    background: linear-gradient(135deg, #1b5e20 0%, #2e7d32 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.3s;
    margin-top: 10px;
}

.btn-save:hover {
    opacity: 0.9;
}

#connect-prices h1 {
    margin-bottom: 20px;
    color: #333;
    font-size: 1.5em;
}

.connect-includes {
    background: #f0f7f0;
    border-radius: 8px;
    padding: 10px 15px;
    margin-bottom: 15px;
    border-left: 4px solid #1b5e20;
}

.connect-includes ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px 20px;
    font-size: 0.85em;
    color: #333;
}
