/* ================== RESET E ESTILOS GERAIS ================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    background: #f4f4f9; /* Fundo claro e moderno */
    color: #333;
    line-height: 1.6;
}

/* ================== NAVBAR (MENU) ================== */
.navbar {
    background: #007bff; /* Azul principal */
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);

    .logo {
    display: flex;
    align-items: center;
    gap: 10px; /* Espaçamento entre imagem e texto */
}

.logo div {
    display: flex;
    flex-direction: column;
}

.logo h2 {
    color: white;
    margin: 0;
    font-size: 24px;
    font-weight: bold;
}

.logo p {
    color: #ffd700; /* Dourado para destaque */
    margin: 0;
    font-size: 14px;
    font-style: italic;
    text-align: left; /* Alinha à esquerda ao lado da imagem */
}

/* Responsivo: Em mobile, empilha se necessário */
@media (max-width: 768px) {
    .logo {
        flex-direction: column;
        text-align: center;
        gap: 5px;
    }
    
    .logo p {
        text-align: center;
    }
}
}

.logo-img {
    height: 50px;
    width: auto;
    border-radius: 8px;
}

.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
}

.nav-links li {
    margin: 0 15px;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-size: 18px;
    font-weight: bold;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #ffd700; /* Dourado no hover para destaque */
    text-decoration: underline;
}

/* ================== CONTAINER PRINCIPAL ================== */
.container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px;
}

/* ================== SEÇÃO HERO (IMAGEM DE FUNDO ILUSTRATIVA) ================== */
.hero {
    background: url('../images/acao.jpg') no-repeat center center/cover; /* Imagem ilustrativa de ações */
    padding: 50px 20px;
    text-align: center;
    color: white;
    border-radius: 10px;
    margin-bottom: 20px;
    position: relative; /* Para overlay se necessário */
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4); /* Overlay escuro para legibilidade */
    border-radius: 10px;
}

.hero h1, .hero p {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
}

/* ================== FORMULÁRIOS ================== */
.form-container {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
    max-width: 500px;
    margin: 20px auto;
}

.form-container h2 {
    text-align: center;
    margin-bottom: 20px;
    color: #007bff;
}

.form-container input, 
.form-container select,
.form-container textarea {
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.form-container input:focus,
.form-container select:focus {
    border-color: #007bff;
    outline: none;
}

.form-container button {
    width: 100%;
    padding: 12px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
    transition: background 0.3s ease;
}

.form-container button:hover {
    background: #0056b3; /* Azul mais escuro no hover */
}

.form-container button.sucesso {
    background: #28a745; /* Verde para ações de sucesso */
}

.form-container button.sucesso:hover {
    background: #218838;
}

/* ================== MENSAGENS DE SUCESSO/ERRO ================== */
.message {
    margin: 10px 0;
    padding: 15px;
    border-radius: 5px;
    font-weight: bold;
    text-align: center;
}

.sucesso {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.erro {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* ================== CARDS DE ATIVOS (AÇÕES E CRIPTOS) ================== */
.assets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.asset-card {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.asset-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.asset-card img {
    max-width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 5px;
    margin-bottom: 10px;
}

.asset-card h3 {
    color: #007bff;
    margin-bottom: 10px;
}

.asset-card p {
    font-size: 1.2em;
    font-weight: bold;
    color: #28a745; /* Verde para preços */
}

/* ================== ESTILOS PARA SAQUE E CONFIRMAÇÃO ================== */
.button {
    display: inline-block;
    padding: 12px 24px;
    background: #28a745; /* Verde para botões de ação */
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background 0.3s ease;
    margin: 10px;
}

.button:hover {
    background: #218838;
}

.saque-info {
    background: #e9ecef;
    padding: 15px;
    border-radius: 5px;
    margin: 10px 0;
    font-size: 0.9em;
}

.saque-info small {
    color: #6c757d;
}

/* ================== LINKS E TEXTOS ================== */
a {
    color: #007bff;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

p small {
    color: #6c757d;
}

/* ================== RODAPÉ ================== */
footer {
    text-align: center;
    padding: 20px;
    background: #007bff;
    color: white;
    margin-top: 40px;
}

/* ================== RESPONSIVO (MOBILE-FIRST) ================== */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        padding: 10px;
    }

    .nav-links {
        flex-direction: column;
        margin-top: 10px;
    }

    .nav-links li {
        margin: 5px 0;
    }

    .hero {
        padding: 30px 10px;
    }

    .hero h1 {
        font-size: 2em;
    }

    .form-container {
        padding: 20px;
        margin: 10px;
    }

    .assets {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .asset-card {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 10px;
    }

    .hero {
        background-size: cover;
        padding: 20px 10px;
    }
}

/* ================== ANIMAÇÕES E TRANSições ================== */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.form-container, .asset-card {
    animation: fadeIn 0.5s ease-in;
}

/* ================== ESTILOS PARA TABELAS (SE NECESSÁRIO, EX: HISTÓRICO DE SAQUES) ================== */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

th, td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

th {
    background: #007bff;
    color: white;
}

tr:hover {
    background: #f8f9fa;
}