/*********************************************
 ** DaggerRO Theme - Modern Website Style
 ** Clean, Professional & Responsive
 *********************************************/

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

:root {
    /* Colors - Medieval & Modern */
    --primary: #2563eb;
    --secondary: #f97316;
    --gold: #fbbf24;
    --dark: #0f172a;
    --light: #f1f5f9;
    --white: #ffffff;
    --gray: #64748b;
    --gray-light: #e2e8f0;

    /* Gradients */
    --gradient-hero: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    --gradient-accent: linear-gradient(135deg, #f97316 0%, #fb923c 100%);

    /* Shadows */
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);

    /* Spacing */
    --container: 1200px;
    --spacing: 1rem;

    /* Typography */
    --font: 'Poppins', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.6;
    color: var(--dark);
    background: #f1f5f9 url('../img/header_bg_chars.png') no-repeat fixed center bottom;
    background-size: cover;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(241, 245, 249, 0.85);
    /* Overlay claro para manter "clean" */
    z-index: -1;
}

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 20px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--dark);
    text-shadow: none;
}

h1 {
    font-size: 3rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.75rem;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: all 0.3s;
}

a:hover {
    color: var(--secondary);
}

/* ===== HEADER & NAVIGATION ===== */
.site-header {
    background: var(--white);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05);
    padding: 0.75rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.site-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-logo img {
    height: 45px;
    width: auto;
}

.main-nav {
    list-style: none;
    display: flex;
    gap: 0.25rem;
    margin: 0;
    padding: 0;
    align-items: center;
}

.main-nav>li {
    position: relative;
}

.main-nav>li>a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 700;
    font-size: 0.82rem;
    padding: 0.75rem 0.6rem;
    border-radius: 8px;
    transition: all 0.3s;
    letter-spacing: 0.2px;
    display: block;
    white-space: nowrap;
}

.main-nav>li>a:hover {
    background: var(--light);
    color: var(--primary);
    text-shadow: none;
}

.nav-container {
    flex: 1;
    display: flex;
    justify-content: center;
}

/* Menu Toggle (Hamburger) */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.menu-toggle span {
    width: 100%;
    height: 3px;
    background-color: var(--dark);
    border-radius: 10px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.menu-toggle.active span:nth-child(1) {
    transform: translateY(8.5px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-8.5px) rotate(-45deg);
}

/* Redesigned highlighted button */
.nav-btn-highlight {
    background: var(--primary) !important;
    color: white !important;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.nav-btn-highlight:hover {
    background: #1d4ed8 !important;
    transform: translateY(-2px);
}

/* Dropdown */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    min-width: 220px;
    box-shadow: var(--shadow-lg);
    border-radius: 12px;
    padding: 0.75rem 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s;
    margin-top: 0.5rem;
    border: 1px solid var(--gray-light);
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu a {
    display: block;
    padding: 0.6rem 1.5rem;
    color: var(--dark);
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s;
}

.dropdown-menu a:hover {
    background: var(--light);
    color: var(--primary);
    padding-left: 1.75rem;
}

/* Header Stats */
.header-stats {
    display: flex;
    gap: 1.5rem;
    margin-right: 1.5rem;
    padding-right: 1.5rem;
    border-right: 1px solid var(--gray-light);
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.stat-icon {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.stat-icon.status-online {
    background: #22c55e;
    box-shadow: 0 0 8px #22c55e;
}

.stat-icon.status-offline {
    background: #ef4444;
    box-shadow: 0 0 8px #ef4444;
}

.stat-info {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--gray);
    letter-spacing: 0.5px;
}

.stat-info span {
    color: var(--dark);
    font-weight: 800;
    margin-left: 0.25rem;
}

/* User Actions */
.user-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Buttons */
.btn,
.dagger-btn {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    display: inline-block;
    text-align: center;
    font-size: 0.9rem;
}

.btn-primary,
.dagger-btn-primary {
    background: var(--primary);
    color: var(--white);
}

.btn-primary:hover,
.dagger-btn-primary:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
}

.btn-secondary,
.dagger-btn-secondary {
    background: var(--secondary);
    color: var(--white);
}

.btn-secondary:hover,
.dagger-btn-secondary:hover {
    background: #ea580c;
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--gray-light);
    color: var(--dark);
}

.btn-outline:hover {
    background: var(--light);
    border-color: var(--primary);
    color: var(--primary);
}

/* ===== MAIN CONTENT ===== */
main {
    padding: 3rem 0;
}

.content-box {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

/* ===== LANDING PAGE SPECIFIC ===== */
.main-layout-container {
    padding-top: 3rem;
}

.login-grid {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 2rem;
    align-items: start;
}

/* News Card System */
.news-card-wrapper {
    background: var(--white);
    border-radius: 16px;
    box-shadow: var(--shadow);
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.news-tabs {
    display: flex;
    background: var(--light);
    border-bottom: 1px solid var(--gray-light);
    overflow-x: auto;
    scrollbar-width: none;
}

.news-tab-item {
    padding: 1rem 1.5rem;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--gray);
    cursor: pointer;
    white-space: nowrap;
    border-bottom: 3px solid transparent;
    transition: all 0.3s;
    letter-spacing: 0.5px;
}

.news-tab-item.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
    background: var(--white);
}

.news-content-display {
    padding: 2.5rem;
    flex: 1;
}

.news-article-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.news-article-meta {
    font-size: 0.8rem;
    color: var(--gray);
    margin-bottom: 2rem;
    display: flex;
    gap: 1rem;
}

.news-article-body {
    color: #475569;
    line-height: 1.8;
    font-size: 1rem;
}

/* Login box / Profile Card */
.login-box {
    background: var(--white);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: var(--shadow);
    border: 1px solid var(--gray-light);
}

.account-mini-profile {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.profile-avatar {
    width: 48px;
    height: 48px;
    background: var(--light);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.profile-id {
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--dark);
}

.profile-stat-row {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px dashed var(--gray-light);
    font-size: 0.9rem;
}

.profile-stat-row .label {
    color: var(--gray);
}

.profile-stat-row .val {
    font-weight: 700;
    color: var(--dark);
}

/* Form styles */
.dagger-form-group,
.form-group {
    margin-bottom: 2rem;
}

.dagger-form-label,
.form-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.dagger-form-input,
.form-input,
.form-select {
    width: 100%;
    padding: 0.85rem 1.25rem;
    border: 1px solid var(--gray-light);
    border-radius: 12px;
    font-family: inherit;
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: var(--white);
    color: var(--dark);
}

.dagger-form-input:focus,
.form-input:focus,
.form-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
    transform: translateY(-1px);
}

/* Tables (Horizontal & Vertical) */
.horizontal-table {
    width: 100%;
    border-collapse: collapse;
}

.horizontal-table th {
    background: var(--light);
    color: var(--gray);
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 1px;
    padding: 1rem;
    text-align: left;
    border-bottom: 2px solid var(--gray-light);
}

.horizontal-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--gray-light);
    font-size: 0.9rem;
}

.horizontal-table tr:hover td {
    background: rgba(37, 99, 235, 0.02);
}

/* Minimalist & Discrete Footer Style */
.site-footer {
    background: #0f172a;
    /* Azul ultra escuro */
    color: rgba(255, 255, 255, 0.4);
    padding: 2.5rem 0;
    margin-top: 4rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-discrete {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.footer-brand-info {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.footer-min-logo {
    max-width: 90px;
    height: auto;
    filter: brightness(0) invert(1) opacity(0.6);
    transition: opacity 0.3s;
}

.footer-min-logo:hover {
    opacity: 1;
}

.footer-copyright-text p {
    margin: 0;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
}

.footer-stats-discrete {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.2);
}

.footer-social-icons {
    display: flex;
    gap: 1.25rem;
    margin-bottom: 0.5rem;
}

.social-min-link {
    color: rgba(255, 255, 255, 0.5) !important;
    text-decoration: none !important;
    font-size: 0.85rem;
    font-weight: 600;
    transition: color 0.3s;
}

.social-min-link:hover {
    color: var(--primary) !important;
}

.footer-powered {
    font-size: 0.75rem;
    text-align: right;
    color: rgba(255, 255, 255, 0.2);
}

.footer-powered a {
    color: rgba(255, 255, 255, 0.3);
    text-decoration: none;
}

@media (max-width: 768px) {
    .footer-discrete {
        flex-direction: column;
        text-align: center;
    }

    .footer-brand-info {
        flex-direction: column;
        gap: 0.75rem;
    }

    .footer-powered {
        text-align: center;
    }
}

/* Features */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--white);
    padding: 3rem 2rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.3s;
    border: 1px solid var(--gray-light);
}

.feature-card:hover {
    transform: translateY(-10px);
}

.feature-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.feature-card p {
    font-size: 0.9rem;
    color: var(--gray);
}

/* Paginator */
.pages {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 3rem;
}

.pages a,
.pages span {
    padding: 0.5rem 1rem;
    border-radius: 8px;
    border: 1px solid var(--gray-light);
    background: white;
    color: var(--dark);
    font-weight: 600;
    font-size: 0.9rem;
}

.pages a:hover {
    background: var(--light);
    color: var(--primary);
    border-color: var(--primary);
}

.pages .current-page {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

@media (max-width: 991px) {

    .header-stats,
    .user-actions {
        display: none;
    }

    .site-nav {
        justify-content: space-between;
    }

    .menu-toggle {
        display: flex;
    }

    .nav-container {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        z-index: 999;
    }

    .main-nav {
        display: none;
        flex-direction: column;
        background: var(--white);
        width: 100%;
        padding: 1rem 0;
        box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
        border-top: 1px solid var(--gray-light);
    }

    .main-nav.active {
        display: flex;
    }

    .main-nav>li {
        width: 100%;
    }

    .main-nav>li>a {
        padding: 1rem 2rem;
        border-radius: 0;
        width: 100%;
    }

    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: var(--light);
        margin: 0;
        display: none;
        border: none;
        border-radius: 0;
    }

    .dropdown.active .dropdown-menu {
        display: block;
    }

    .login-grid {
        grid-template-columns: 1fr;
    }

    .login-aside {
        order: -1;
    }
}

@media (max-width: 768px) {
    .main-layout-container {
        padding-top: 1.5rem;
    }

    .news-content-display {
        padding: 1.5rem;
    }

    .news-article-title {
        font-size: 1.35rem;
    }

    .features {
        padding-top: 2rem;
    }

    .feature-card {
        padding: 2rem 1.5rem;
    }

    /* Tabelas Responsivas */
    .horizontal-table {
        display: block;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .news-tabs {
        padding: 0 0.5rem;
    }
}



.news-tab-item,
.rank-tab-item {
    padding: 0.75rem 1rem;
    font-size: 0.75rem;
}

@media (max-width: 480px) {
    .site-header {
        padding: 1rem 0;
    }

    .logo img {
        max-width: 180px;
    }

    .btn-create-acc {
        width: 100%;
        text-align: center;
    }
}