:root {
    --bs-body-bg: #0a0a0f;
    --bs-body-color: #d0d0e0;
    --bs-border-color: #2a2a3a;
}

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    min-height: 100vh;
}

html { background: #0a0a0f; }

body {
    background: transparent;
    color: #d0d0e0;
    position: relative;
    z-index: 0;
}

/* Wrapper que empurra o footer para baixo */
.layout-flex {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Navbar / Header */
.bg-darker { background-color: rgba(5, 5, 10, 0.75) !important; }

/* Cards com fundo escuro */
.bg-card { background-color: rgba(10, 10, 15, 0.55) !important; }

/* Tabelas dark transparentes */
.table-dark { --bs-table-bg: transparent; --bs-table-hover-bg: rgba(255,255,255,0.04); }

/* Footer transparente */
.site-footer, footer { background-color: rgba(5, 5, 10, 0.75) !important; }

/* Inputs dark */
.form-control-dark {
    background-color: #1a1a24;
    border-color: #2a2a3a;
    color: #d0d0e0;
}
.form-control-dark:focus {
    background-color: #1a1a24;
    border-color: #c0392b;
    color: #d0d0e0;
    box-shadow: 0 0 0 0.2rem rgba(192, 57, 43, 0.25);
}
.form-control-dark::placeholder { color: #5a5a7a; }

/* Hero */
.hero-section {
    background: linear-gradient(135deg, rgba(5,5,10,0.6) 0%, rgba(26,5,5,0.6) 50%, rgba(5,5,10,0.6) 100%);
    border: none;
}
}

/* Section title */
.section-title {
    color: #f0c040;
    border-bottom: 1px solid #2a2a3a;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

/* List group dark */
.list-group-item.bg-transparent { color: #d0d0e0; }

/* Blazor error */
#blazor-error-ui {
    display: none;
}
#blazor-error-ui.show { display: block; }

/* Background image */
.bg-slideshow {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -2;
    pointer-events: none;
    background-image: url('/assets/1.png');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #0a0a0f;
    filter: brightness(0.5);
}

/* Dark gradient overlay */
.bg-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(0,0,0,0.3) 0%, rgba(10,10,15,0.15) 40%, rgba(0,0,0,0.4) 100%);
}

/* Remove focus outline from headings and sections */
h1:focus, h1:focus-visible,
section:focus, section:focus-visible,
.hero-section:focus, .hero-section:focus-visible {
    outline: none;
}

/* Info tooltip icon */
.info-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.1);
    color: #8a8aaa;
    font-size: 10px;
    margin-left: 5px;
    cursor: help;
    vertical-align: middle;
    position: relative;
}
.info-icon:hover {
    background-color: rgba(255,255,255,0.2);
    color: #f0c040;
}

/* Password toggle eye icon */
.eye-icon {
    font-size: 14px;
    line-height: 1;
    width: 18px;
    display: inline-block;
    text-align: center;
}

/* News link */
.news-link {
    cursor: pointer;
    transition: color 0.2s;
}
.news-link:hover {
    color: #fff !important;
    text-decoration: underline;
}

/* News modal */
.modal-backdrop-custom {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1040;
}
.news-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1050;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
}

/* Download button image */
.download-btn-img {
    height: 70px;
    max-width: 200px;
    border-radius: 8px;
    object-fit: contain;
    transition: transform 0.2s;
}
.download-btn-img:hover {
    transform: scale(1.05);
}
.download-btn-nav {
    height: 35px;
    max-width: 120px;
    object-fit: contain;
    transition: transform 0.2s;
}
.download-btn-nav:hover {
    transform: scale(1.1);
}

/* Rank icon */
.rank-icon {
    height: 20px;
    width: auto;
}

/* Tutorial content styling */
.tutorial-content h1 { color: #f0c040; font-size: 1.8rem; margin-bottom: 1rem; }
.tutorial-content h2 { color: #f0c040; font-size: 1.4rem; margin-top: 1.5rem; margin-bottom: 0.75rem; border-bottom: 1px solid #2a2a3a; padding-bottom: 0.4rem; }
.tutorial-content h3 { color: #e0e0e0; font-size: 1.1rem; margin-top: 1rem; margin-bottom: 0.5rem; }
.tutorial-content p { color: #b0b0c0; }
.tutorial-content ul, .tutorial-content ol { color: #b0b0c0; padding-left: 1.5rem; }
.tutorial-content li { margin-bottom: 0.3rem; }
.tutorial-content table { width: 100%; border-collapse: collapse; margin: 1rem 0; }
.tutorial-content th { background-color: rgba(240, 192, 64, 0.1); color: #f0c040; padding: 0.5rem; border: 1px solid #2a2a3a; }
.tutorial-content td { color: #b0b0c0; padding: 0.5rem; border: 1px solid #2a2a3a; }
.tutorial-content code { background-color: rgba(255,255,255,0.05); color: #e06060; padding: 0.15rem 0.4rem; border-radius: 3px; }
