.cf-conv-container {
    width: 100%;
    max-width: 1200px;
    margin: 20px auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

/* O container principal do shortcode no PHP não envolve tudo, 
   então precisamos garantir que todos os containers do plugin sigam o padrão de largura. */
.cf-conv-container, 
.cf-simulator-container, 
.cf-conv-table-container, 
.cf-conv-cards, 
.cf-conv-faq, 
.cf-seo-article, 
.cf-popular-conversions, 
.cf-compare-dates-container {
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
}

.cf-conv-card {
    max-width: 800px;
    margin: 0 auto 30px;
    background: transparent;
    padding: 0;
    box-shadow: none;
    border: none;
}

.cf-conv-title {
    text-align: center;
    color: #333;
    margin-bottom: 10px;
    font-size: 1.6rem;
    font-weight: 800;
}

.cf-conv-subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 30px;
    font-size: 1rem;
    line-height: 1.4;
}

.cf-conv-inputs {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.cf-conv-group {
    flex: 1;
}

.cf-conv-group label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: bold;
    margin-bottom: 8px;
    color: #555;
    font-size: 0.95rem;
}

.cf-select-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: #fff;
    border: 2px solid #555;
    border-radius: 8px;
    padding: 0 12px;
    margin-bottom: 12px;
    transition: all 0.3s;
}

.cf-select-wrapper:hover {
    border-color: #007bff;
}

.cf-select-wrapper:focus-within {
    border-color: #007bff;
}

.cf-select-wrapper .cf-flag {
    font-size: 1.2rem;
    margin-right: 8px;
}

.cf-currency-select {
    flex: 1;
    border: none !important;
    background: transparent !important;
    padding: 10px 0 !important;
    font-size: 1rem !important;
    font-weight: 500 !important;
    color: #333 !important;
    cursor: pointer;
    box-shadow: none !important;
    outline: none !important;
}

.cf-conv-source-info {
    text-align: center;
    margin: 20px 0;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
    font-size: 0.85rem;
    color: #6c757d;
    border: 1px solid #eee;
}

.cf-conv-source-info p {
    margin: 0;
}

.cf-flag {
    font-size: 1.2rem;
}

.cf-conv-group input {
    width: 100%;
    padding: 12px;
    border: 2px solid #555;
    border-radius: 8px;
    font-size: 1.1rem;
    transition: all 0.3s;
}

.cf-conv-group input:hover {
    border-color: #007bff;
}

.cf-conv-group input:focus {
    border-color: #007bff;
    outline: none;
}

.cf-conv-swap button {
    background: #007bff;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    margin-top: 20px;
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.3);
}

.cf-conv-swap button:hover {
    background: #0056b3;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.4);
}

.cf-conv-swap button:active {
    transform: scale(0.95);
}

.cf-conv-swap button.rotating {
    animation: cf-rotate 0.5s ease-in-out;
}

@keyframes cf-rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(180deg); }
}

.cf-conv-info {
    text-align: center;
    margin-bottom: 20px;
}

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

.cf-currency-symbol {
    position: absolute;
    left: 12px;
    color: #666;
    font-weight: bold;
}

.cf-result-wrapper input {
    padding-left: 40px !important;
}

.cf-conv-result-card {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 25px;
    text-align: center;
    border: 1px solid #eee;
}

.cf-result-header {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #0056b3;
    margin-bottom: 15px;
    font-weight: bold;
}

.cf-result-main {
    font-size: 1.4rem;
    font-weight: bold;
    color: #333;
}

.cf-result-arrow {
    margin: 5px 0;
    color: #007bff;
    font-size: 1.8rem;
}

.cf-result-value {
    font-size: 2.2rem;
    color: #28a745;
    margin-bottom: 15px;
}

.cf-conv-info-mini {
    border-top: 1px solid #cce5ff;
    padding-top: 15px;
}

.cf-conv-rate {
    font-weight: bold;
    font-size: 1rem;
    color: #444;
    margin: 0;
}

.cf-conv-update {
    font-size: 0.8rem;
    color: #777;
    margin: 5px 0 0;
}

.cf-conv-main-btn {
    width: 100%;
    padding: 15px;
    background: #007bff;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
}

.cf-conv-main-btn:hover {
    background: #0056b3;
}

.cf-conv-actions {
    margin-top: 15px;
    display: flex;
    justify-content: center;
}

.cf-copy-btn {
    background: none;
    border: none;
    color: #007bff;
    cursor: pointer;
    font-size: 0.9rem;
    text-decoration: underline;
}

/* Table */
.cf-conv-table-container {
    margin-top: 40px;
}

.cf-conv-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.cf-conv-table th, .cf-conv-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.cf-conv-table th {
    background: #f8f9fa;
    color: #666;
}

.cf-table-btn {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 5px 8px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s;
    margin-left: 5px;
}

.cf-table-btn:hover {
    background: #f0f7ff;
    border-color: #007bff;
    transform: translateY(-1px);
}

/* Chart Section */
.cf-chart-container {
    margin-top: 40px;
    padding: 0;
    background: transparent;
    border: none;
}

.cf-chart-title {
    text-align: center;
    color: #333;
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.cf-chart-filters {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.cf-chart-filter {
    background: #fff;
    border: 1px solid #dee2e6;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    color: #495057;
    cursor: pointer;
    transition: all 0.2s;
}

.cf-chart-filter:hover {
    background: #f8f9fa;
    border-color: #adb5bd;
}

.cf-chart-filter.active {
    background: #007bff;
    color: #fff;
    border-color: #007bff;
}

.cf-chart-wrapper {
    position: relative;
    height: 300px;
    margin-bottom: 15px;
}

.cf-chart-loading {
    text-align: center;
    color: #999;
    margin: 0;
    display: none;
}

/* FAQ */
.cf-conv-faq {
    margin-top: 40px;
}

.cf-faq-item {
    margin-bottom: 15px;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
}

.cf-faq-toggle {
    width: 100%;
    padding: 15px;
    background: #f8f9fa;
    border: none;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1rem;
    font-weight: 500;
    color: #333;
    transition: background 0.3s;
}

.cf-faq-toggle:hover {
    background: #e9ecef;
}

.cf-faq-toggle[aria-expanded="true"] {
    background: #e7f3ff;
    color: #007bff;
}

.cf-faq-icon {
    display: inline-block;
    transition: transform 0.3s;
    font-weight: bold;
}

.cf-faq-toggle[aria-expanded="true"] .cf-faq-icon {
    transform: rotate(45deg);
}

/* Garantir que o FAQ container está visível */
.cf-conv-faq {
    width: 100%;
    display: block;
}

.cf-faq-container {
    width: 100%;
    display: block;
}

.cf-faq-question {
    margin: 0;
    flex: 1;
}

.cf-faq-answer {
    color: #666;
    line-height: 1.6;
    padding: 0 15px;
    background: #fff;
    border-top: 1px solid transparent;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.3s ease;
}

.cf-faq-answer.active {
    max-height: 1000px;
    opacity: 1;
    padding: 15px;
    border-top: 1px solid #eee;
}

.cf-faq-answer p {
    margin: 0;
}

/* Cards */
.cf-conv-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin: 40px 0;
    width: 100%;
}

@media (max-width: 992px) {
    .cf-conv-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .cf-conv-cards {
        grid-template-columns: 1fr;
    }
}

.cf-card-info {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    border: 1px solid #eee;
    border-top: 4px solid #007bff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.cf-card-info:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.cf-card-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    display: block;
}

.cf-card-info h4 {
    margin-top: 0;
    color: #333;
    margin-bottom: 12px;
    font-size: 1.25rem;
    font-weight: 700;
}

.cf-card-info p {
    color: #666;
    line-height: 1.6;
    margin: 0;
    font-size: 0.95rem;
}

/* SEO Article */
.cf-seo-article {
    margin-top: 50px;
    padding: 30px;
    background: #fff;
    border-radius: 12px;
    border: 1px solid #eee;
    line-height: 1.8;
    color: #444;
}

.cf-seo-article h2 {
    color: #333;
    margin-bottom: 25px;
    font-size: 1.8rem;
}

.cf-seo-article h3 {
    color: #444;
    margin-top: 30px;
    margin-bottom: 15px;
}

/* Simulator */
.cf-simulator-container {
    margin-top: 40px;
}

.cf-simulator-title {
    text-align: center;
    color: #333;
    margin-bottom: 5px;
}

.cf-simulator-subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.cf-simulator-card {
    background: transparent;
    border: none;
    padding: 0;
    max-width: 800px;
    margin: 0 auto;
}

.cf-sim-row {
    margin-bottom: 15px;
}

.cf-sim-row label {
    display: block;
    font-weight: 600;
    margin-bottom: 5px;
    font-size: 0.9rem;
}

.cf-sim-row input, .cf-sim-row select {
    width: 100%;
    padding: 10px;
    border: 2px solid #555;
    border-radius: 6px;
}

.cf-sim-result {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    text-align: center;
}

.cf-sim-total-label {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 5px;
}

.cf-sim-total-value {
    font-size: 1.8rem;
    font-weight: bold;
    color: #28a745;
}

/* Resultado da Conversao no Simulador */
.cf-sim-conversion-result {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
    text-align: center;
    border: 1px solid #eee;
}

.cf-sim-conversion-result .cf-sim-result-header {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #0056b3;
    margin-bottom: 10px;
    font-weight: bold;
}

.cf-sim-conversion-result .cf-sim-result-value {
    font-size: 1.6rem;
    color: #28a745;
    font-weight: bold;
    margin-bottom: 5px;
}

.cf-sim-conversion-result .cf-sim-result-rate {
    font-size: 0.9rem;
    color: #666;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #cce5ff;
}

/* Popular Conversions */
.cf-popular-conversions {
    margin-top: 50px;
    text-align: center;
}

.cf-popular-title {
    margin-bottom: 20px;
}

.cf-popular-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
}

.cf-popular-item {
    display: block;
    padding: 12px;
    background: #f8f9fa;
    border: 1px solid #eee;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.2s;
}

.cf-popular-item:hover {
    background: #007bff;
    color: #fff;
    transform: translateY(-2px);
}

/* Compare Dates */
.cf-compare-dates-container {
    margin-top: 40px;
}

.cf-compare-title {
    text-align: center;
    color: #333;
    margin-bottom: 5px;
}

.cf-compare-subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.cf-compare-card {
    background: transparent;
    border: none;
    padding: 0;
    max-width: 800px;
    margin: 0 auto;
}

.cf-compare-inputs {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    flex-wrap: wrap;
    align-items: flex-end;
}

.cf-compare-group {
    flex: 1;
    min-width: 150px;
}

.cf-compare-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 5px;
    color: #555;
}

.cf-compare-group input {
    width: 100%;
    padding: 10px;
    border: 2px solid #555;
    border-radius: 6px;
    font-size: 0.95rem;
}

.cf-compare-button {
    background: #007bff;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s;
}

.cf-compare-button:hover {
    background: #0056b3;
}

.cf-compare-results {
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin-bottom: 25px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.cf-compare-result-item {
    text-align: center;
    flex: 1;
}

.cf-result-label {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 8px;
}

.cf-result-value {
    font-size: 1.6rem;
    font-weight: bold;
    color: #28a745;
}

.cf-compare-arrow {
    font-size: 1.5rem;
    color: #007bff;
    margin: 0 15px;
}

.cf-compare-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
    padding: 20px;
    background: #f0f7ff;
    border-radius: 8px;
    border: 1px solid #cce5ff;
}

.cf-stat-item {
    text-align: center;
}

.cf-stat-label {
    display: block;
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 5px;
}

.cf-stat-value {
    display: block;
    font-size: 1.2rem;
    font-weight: bold;
    color: #007bff;
}

.cf-compare-loading,
.cf-compare-error {
    text-align: center;
    padding: 20px;
    border-radius: 8px;
}

.cf-compare-loading {
    background: #e3f2fd;
    color: #1976d2;
}

.cf-compare-error {
    background: #ffebee;
    color: #c62828;
}

@media (max-width: 480px) {
    .cf-conv-inputs {
        flex-direction: column;
    }
    .cf-conv-swap {
        transform: rotate(90deg);
        margin: 10px 0;
    }
    .cf-conv-swap button {
        margin-top: 0;
    }
    .cf-compare-inputs {
        flex-direction: column;
    }
    .cf-compare-results {
        flex-direction: column;
        gap: 15px;
    }
    .cf-compare-arrow {
        transform: rotate(90deg);
        margin: 0;
    }
    .cf-conv-cards {
        grid-template-columns: 1fr;
    }
}
