* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #F5F5F0;
    min-height: 100vh;
}

/* =========================================
   HEADER PRINCIPAL COM LOGOS ANIMADAS
   ========================================= */
.main-header {
    background: #000000;
    border-bottom: 3px solid #FFD700;
    padding: 8px 20px;
    height: 70px;
    display: flex;
    align-items: center;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.header-title h1 {
    color: #FFD700;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 1px;
}

/* Container das logos */
.header-logos {
    position: relative;
    width: 200px;
    height: 70px;
    overflow: visible;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo {
    position: absolute;
    max-height: 80px;
    max-width: 180px;
    width: auto;
    height: auto;
    object-fit: contain;
    opacity: 0;
}

/* Animação da Logo 1 */
@keyframes slideLogo1 {
    0% {
        opacity: 0;
        transform: translateX(300px);
    }
    10% {
        opacity: 1;
        transform: translateX(0);
    }
    40% {
        opacity: 1;
        transform: translateX(0);
    }
    50% {
        opacity: 0;
        transform: translateX(-300px);
    }
    100% {
        opacity: 0;
        transform: translateX(-300px);
    }
}

/* Animação da Logo 2 */
@keyframes slideLogo2 {
    0%, 50% {
        opacity: 0;
        transform: translateX(300px);
    }
    60% {
        opacity: 1;
        transform: translateX(0);
    }
    90% {
        opacity: 1;
        transform: translateX(0);
    }
    100% {
        opacity: 0;
        transform: translateX(-300px);
    }
}

.logo1 {
    animation: slideLogo1 12s infinite ease-in-out;
}

.logo2 {
    animation: slideLogo2 12s infinite ease-in-out;
}

/* =========================================
   BARRA DE NAVEGAÇÃO
   ========================================= */
.nav-bar {
    background: #E0E0E0;
    padding: 12px 20px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    border-bottom: 2px solid #FFD700;
}

.nav-btn {
    background: #F4D03F;
    color: #000000;
    border: 1px solid #D4AC0D;
    border-bottom: 4px solid #D4AC0D;
    padding: 10px 20px;
    border-radius: 8px 8px 0 0;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.85rem;
    white-space: nowrap;
    text-decoration: none;
    display: inline-block;
    font-family: inherit;
}

.nav-btn:hover {
    background: #F7DC6F;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.nav-btn.active {
    background: #000000;
    color: #FFD700;
    border-color: #FFD700;
    border-bottom: 4px solid #FFD700;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.2);
    transform: translateY(2px);
    font-weight: 700;
}

.nav-btn-link {
    background: #F4D03F;
    color: #000000;
    border: 1px solid #D4AC0D;
    border-bottom: 4px solid #D4AC0D;
    padding: 10px 20px;
    border-radius: 8px 8px 0 0;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.85rem;
    white-space: nowrap;
    text-decoration: none;
    display: inline-block;
}

.nav-btn-link:hover {
    background: #F7DC6F;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* =========================================
   CONTAINER E SEÇÕES
   ========================================= */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

.section {
    display: none;
    animation: fadeIn 0.3s ease;
}

.section.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* =========================================
   CAMPO DE BUSCA
   ========================================= */
.search-container {
    margin-bottom: 30px;
}

.search-box {
    width: 100%;
    max-width: 500px;
    padding: 12px 20px;
    border: 2px solid #FFD700;
    border-radius: 25px;
    font-size: 1rem;
    background: #1a1a1a;
    color: white;
    outline: none;
    transition: all 0.3s ease;
    display: block;
    margin: 0 auto;
}

.search-box:focus {
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
}

.search-box::placeholder {
    color: #a0a0a0;
}

/* =========================================
   LISTA DE BANCOS
   ========================================= */
.banks-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 40px;
}

.bank-item {
    background: #1a1a2e;
    border-radius: 10px;
    padding: 12px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    border: none;
    width: 100%;
}

.bank-item:hover {
    transform: translateX(5px);
    background: #252540;
}

.bank-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.bank-name {
    color: white;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.bank-date {
    color: #8a8aa0;
    font-size: 0.75rem;
}

.bank-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.download-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.download-btn:hover {
    transform: translateX(3px) scale(1.1);
    background: #f0f0f0;
}

.download-btn svg {
    width: 18px;
    height: 18px;
}

/* =========================================
   LINKS ÚTEIS / SIMULADORES - GRID
   ========================================= */
.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 15px;
    margin-bottom: 40px;
}

.link-card {
    background: #1a1a2e;
    border-radius: 10px;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.link-card:hover {
    transform: translateY(-3px);
    background: #252540;
    border-color: #FFD700;
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.2);
}

.link-info {
    flex: 1;
}

.link-name {
    color: white;
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 5px;
}

.link-date {
    color: #8a8aa0;
    font-size: 0.75rem;
    margin-bottom: 3px;
}

.link-url {
    color: #8a8aa0;
    font-size: 0.75rem;
    word-break: break-all;
}

.link-btn {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: #000000;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    white-space: nowrap;
    margin-left: 15px;
}

.link-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.4);
}

.no-results {
    text-align: center;
    color: white;
    font-size: 1.1rem;
    padding: 40px;
    display: none;
}

/* =========================================
   RODAPÉ
   ========================================= */
footer {
    text-align: center;
    color: #1a1a2e;
    padding: 20px;
    font-size: 0.9rem;
    margin-top: 40px;
}

/* =========================================
   RESPONSIVIDADE
   ========================================= */
@media (max-width: 1100px) {
    .banks-list {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .header-content {
        flex-direction: column;
        gap: 15px;
    }
    
    .main-header {
        height: auto;
        padding: 15px 20px;
    }
    
    .header-logos {
        width: 250px;
        height: 80px;
    }
    
    .nav-bar {
        justify-content: center;
    }
    
    .banks-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .links-grid {
        grid-template-columns: 1fr;
    }
    
    .nav-btn,
    .nav-btn-link {
        font-size: 0.75rem;
        padding: 8px 12px;
    }
}

@media (max-width: 500px) {
    .banks-list {
        grid-template-columns: 1fr;
    }
    
    .bank-item {
        padding: 15px 18px;
    }
    
    .bank-name {
        font-size: 1rem;
    }
    
    .header-title h1 {
        font-size: 1.2rem;
    }
    
    .header-logos {
        width: 200px;
        height: 70px;
    }
}