* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    color: #333;
}

/* Header Styles */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-img {
    height: 30px;
    width: auto;
}

.logo span {
    font-weight: 600;
    color: #1e3c72;
    font-size: 1.2rem;
}

nav {
    display: flex;
    gap: 2rem;
}

nav a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

nav a:hover {
    color: #1e3c72;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 6rem 2rem 2rem;
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    color: white;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: white;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 600px;
}

.cta-button {
    padding: 1rem 2rem;
    background: white;
    color: #1e3c72;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    transition: transform 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-2px);
}

.animated-icon {
    margin-top: 2rem;
}

.icon-animate {
    width: 48px;
    height: 48px;
    color: white;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

/* Container e Seções */
.container {
    background: rgba(255, 255, 255, 0.95);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    width: 90%;
    max-width: 450px;
    margin: 2rem auto;
    backdrop-filter: blur(10px);
}

.section {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    background: white;
}

.section h2 {
    text-align: center;
    color: #1e3c72;
    font-size: 2rem;
    margin-bottom: 2rem;
}

/* Seção Sobre */
.sobre {
    text-align: center;
}

.beneficios {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.beneficio-item {
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 15px;
    transition: transform 0.3s ease;
}

.beneficio-item:hover {
    transform: translateY(-5px);
}

.beneficio-icon {
    color: #1e3c72;
    width: 40px;
    height: 40px;
    margin-bottom: 1rem;
}

.fonte-info {
    margin-top: 3rem;
}

.fonte-logos {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 1rem;
}

/* Seção Criptomoedas */
.cripto-table-container {
    overflow-x: auto;
    margin: 1rem 0;
    background: white;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.cripto-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.cripto-table th,
.cripto-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.cripto-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #1e3c72;
}

.cripto-table tr:hover {
    background: #f8f9fa;
}

.cripto-name {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cripto-name img {
    width: 24px;
    height: 24px;
}

.cripto-symbol {
    color: #666;
    font-size: 0.8rem;
}

.price-change-positive {
    color: #28a745;
}

.price-change-negative {
    color: #dc3545;
}

.loading-row td {
    text-align: center;
    padding: 2rem;
}

.loading-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #eee;
    border-top: 4px solid #1e3c72;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
}

.page-button {
    padding: 0.5rem 1rem;
    border: 1px solid #eee;
    border-radius: 4px;
    background: white;
    color: #1e3c72;
    cursor: pointer;
    transition: all 0.2s;
}

.page-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.page-button:not(:disabled):hover {
    background: #f8f9fa;
}

#page-info {
    font-size: 0.9rem;
    color: #666;
}

.cripto-card {
    min-width: 280px;
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 15px;
    scroll-snap-align: start;
}

.cripto-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.cripto-info img {
    width: 32px;
    height: 32px;
}

/* Seção Como Funciona */
.steps-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.step {
    text-align: center;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 15px;
    transition: transform 0.3s ease;
}

.step:hover {
    transform: translateY(-5px);
}

.step-icon {
    color: #1e3c72;
    width: 48px;
    height: 48px;
    margin-bottom: 1rem;
}

/* Seção FAQ */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: #f8f9fa;
    border-radius: 10px;
    margin-bottom: 1rem;
    overflow: hidden;
}

.faq-item summary {
    padding: 1.5rem;
    cursor: pointer;
    font-weight: 500;
    list-style: none;
    position: relative;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '+';
    position: absolute;
    right: 1.5rem;
    transition: transform 0.3s ease;
}

.faq-item[open] summary::after {
    transform: rotate(45deg);
}

.faq-item p {
    padding: 0 1.5rem 1.5rem;
    line-height: 1.6;
}

/* Seção Newsletter */
.newsletter {
    text-align: center;
    background: #f8f9fa;
}

.newsletter-form {
    max-width: 500px;
    margin: 2rem auto 0;
    display: flex;
    gap: 1rem;
}

.newsletter-form input {
    flex: 1;
    padding: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 30px;
    font-size: 1rem;
}

/* Footer */
.footer {
    background: #1e3c72;
    color: white;
    padding: 3rem 2rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.social-links {
    display: flex;
    gap: 1.5rem;
}

.social-icon {
    color: white;
    width: 24px;
    height: 24px;
    transition: transform 0.3s ease;
}

.social-icon:hover {
    transform: translateY(-3px);
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: white;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.footer-links a:hover {
    opacity: 0.8;
}

/* Responsividade */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }

    nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .footer-links {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
}

.container {
    background: rgba(255, 255, 255, 0.95);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    width: 90%;
    max-width: 450px;
    backdrop-filter: blur(10px);
}

h1 {
    text-align: center;
    margin-bottom: 2rem;
    color: #1e3c72;
    font-size: 1.8rem;
    position: relative;
    padding-bottom: 10px;
}

h1::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, #1e3c72, #2a5298);
    border-radius: 3px;
}

.converter-box {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.input-group {
    display: flex;
    gap: 1rem;
    align-items: center;
}

input, select {
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

input:focus, select:focus {
    border-color: #1e3c72;
    outline: none;
}

input {
    width: 60%;
    background: #f8f9fa;
}

select {
    width: 40%;
    cursor: pointer;
    background: #f8f9fa;
}

optgroup {
    font-weight: 600;
    color: #1e3c72;
}

option {
    padding: 10px;
}

#swap-button {
    align-self: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: #1e3c72;
    color: white;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    transition: transform 0.3s ease;
}

#swap-button:hover {
    transform: rotate(180deg);
    background: #2a5298;
}

#convert-button {
    padding: 1rem;
    background: linear-gradient(90deg, #1e3c72, #2a5298);
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 500;
    transition: transform 0.3s ease;
}

#convert-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(30, 60, 114, 0.3);
}

#result {
    background: #f0f2f5;
    font-weight: 500;
    color: #1e3c72;
}

/* Estilos para o histórico */
.history-section {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid #e0e0e0;
}

.history-section h2 {
    font-size: 1.2rem;
    color: #1e3c72;
    margin-bottom: 1rem;
}

#history-list {
    max-height: 200px;
    overflow-y: auto;
    padding-right: 5px;
}

#history-list::-webkit-scrollbar {
    width: 6px;
}

#history-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

#history-list::-webkit-scrollbar-thumb {
    background: #1e3c72;
    border-radius: 10px;
}

.history-item {
    background: #f8f9fa;
    padding: 12px;
    margin-bottom: 8px;
    border-radius: 8px;
    font-size: 0.9rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.history-item:hover {
    background: #f0f2f5;
    transform: translateX(5px);
}

.delete-history {
    color: #dc3545;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.delete-history:hover {
    background: #ffebee;
}

/* Estilos para o botão de compartilhamento */
#share-button {
    background: #1e3c72;
    color: white;
    border: none;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 5px;
}

#share-button:hover {
    background: #2a5298;
    transform: scale(1.1);
}

/* Estilos para loading */
.loading {
    position: relative;
    opacity: 0.7;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    border: 2px solid #fff;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsividade */
@media (max-width: 480px) {
    .container {
        padding: 1.5rem;
    }

    h1 {
        font-size: 1.5rem;
    }

    .input-group {
        flex-direction: column;
    }

    input, select {
        width: 100%;
    }

    #share-button {
        margin-top: 10px;
        align-self: flex-end;
    }
}

.mini-chart {
    width: 150px;
    height: 50px;
}