:root {
    /* DARK MODE (DEFAULT) - Black with Neon Blue (Minimalist) */
    --accent-color: #00FFFF;        /* Neon Blue for highlight and primary buttons */
    --accent-text: #000000;         /* Text for Neon buttons (Black) */
    --bg-color: #000000;            /* Pure Black main background */
    --main-bg: #0a0a0a;             /* Main content background */
    --card-bg: #1c1c21;             /* Card and list background */
    --text-primary: #ffffff;        /* White primary text */
    --text-secondary: #b0b0b0;      /* Light gray secondary text */
    --highlight-card: #25252a;
    --active-btn-bg: rgba(0, 255, 255, 0.1); /* Subtle background for active item (Neon) */
    --border-color: #2c2c33;        /* Border color in Dark Mode */

    /* Colors for Outline Effect */
    --outline-light: rgba(255, 255, 255, 0.1); /* Light contour for non-accent elements */
    --outline-subtle: rgba(0, 255, 255, 0.4); /* Subtle Neon Blue for accent elements (Normal State) */
    
    --sidebar-width: 80px;
}

/* =========================================
   Light Theme (Minimalist - White)
   ========================================= */
@media (prefers-color-scheme: light) {
    :root {
        /* LIGHT MODE - White with Subtle Blue */
        --accent-color: #1A73E8;        /* Subtle Blue for accent */
        --accent-text: #FFFFFF;         /* Text for blue buttons (White) */
        --bg-color: #FFFFFF;            /* Pure White main background */
        --main-bg: #F4F4F9;             /* Main content background (Off-white) */
        --card-bg: #FFFFFF;             /* Card and list background */
        --text-primary: #1c1c21;        /* Dark text */
        --text-secondary: #6a6a6a;      /* Gray secondary text */
        --highlight-card: #e8e8e8;
        --active-btn-bg: rgba(26, 115, 232, 0.1); /* Subtle background for active item (Blue) */
        --border-color: #e0e0e0;        /* Border color in Light Mode */

        /* Colors for Outline Effect */
        --outline-light: var(--border-color); /* Light contour for non-accent elements */
        --outline-subtle: rgba(26, 115, 232, 0.5); /* Subtle Blue for accent elements (Normal State) */
    }

    /* Specific Adjustments for Light Theme */
    .sidebar {
        border-right: 1px solid var(--border-color);
    }
    .menu-btn {
        color: var(--text-secondary);
    }
    .menu-btn.active {
        color: var(--accent-color);
        background-color: var(--active-btn-bg);
    }
    
    .main-content {
        box-shadow: 0 0 15px rgba(0,0,0,0.1);
    }
    .hero-card {
        background: var(--card-bg);
        border: 1px solid var(--border-color);
        box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    }
    .abstract-art .shape.star {
        background-color: var(--accent-color);
        opacity: 0.15;
    }
    
    /* Tabs Active in Light Mode (Contour Only) */
    .tab-btn.active {
        background-color: transparent;
        color: var(--accent-color);
        border: 1px solid var(--outline-subtle);
    }
    .tab-btn.active:hover {
        border-color: var(--accent-color);
    }
    
    .tab-btn.inactive {
        background-color: var(--main-bg); 
        color: var(--text-secondary);
        border: 1px solid var(--border-color);
    }
    .tab-btn.inactive:hover {
        background-color: var(--highlight-card);
        color: var(--text-primary);
    }
    .list-item {
        background-color: var(--card-bg);
        border: 1px solid var(--border-color);
        box-shadow: 0 5px 10px rgba(0,0,0,0.05);
    }
    .list-item:hover {
        background-color: var(--main-bg);
        transform: translateY(-2px);
        border-color: var(--accent-color);
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    }
    .item-icon {
        background-color: var(--main-bg);
        border: 1px solid var(--border-color);
    }
    
    .info-grid {
        background-color: var(--main-bg);
        border: 1px solid var(--border-color);
    }
    .changelog-list {
        background-color: var(--main-bg);
        border: 1px solid var(--border-color);
        color: var(--text-primary);
    }

    /* Primary Button (Outline Blue) in Light Mode */
    .action-btn.primary {
        background-color: transparent;
        color: var(--accent-color);
        border: 2px solid var(--outline-subtle); /* Light */
    }
    .action-btn.primary:hover {
        border-color: var(--accent-color); /* Dark */
        color: var(--text-primary);
        background-color: var(--active-btn-bg);
    }
    
    .action-btn.secondary {
        background-color: var(--main-bg);
        color: var(--text-primary);
        border: 1px solid var(--border-color);
    }
    
    /* Secondary Action Button (Neutral Outline) in Light Mode */
    .action-btn.outline {
        border: 2px solid var(--outline-light);
        color: var(--text-secondary);
    }
    .action-btn.outline:hover {
        border-color: var(--accent-color); 
        color: var(--text-primary);
    }

    .dropdown-menu {
        background-color: var(--card-bg);
        border: 1px solid var(--border-color);
    }
    .social-card {
        background-color: var(--main-bg);
        border: 1px solid var(--border-color);
        color: var(--text-primary);
    }
    .social-card:hover {
        background-color: var(--highlight-card);
        border-color: var(--accent-color);
    }
    .about-section {
        background-color: var(--card-bg);
        border: 1px solid var(--border-color);
    }
    .mini-tag {
        background-color: var(--main-bg);
        border: 1px solid var(--border-color);
        color: var(--text-secondary);
    }
    .terminal-window {
        background-color: #ffffff;
        border: 1px solid var(--border-color);
        color: #1c1c21;
    }
    .mini-terminal {
        background-color: #ffffff;
        border: 1px solid var(--border-color);
    }
    
    /* Active Filter Button in Light Mode (Contour Only) */
    .filter-btn.active {
        background-color: transparent;
        color: var(--accent-color);
        border-color: var(--outline-subtle); /* Subtle contour */
    }
    .filter-btn.active:hover {
        border-color: var(--accent-color); /* Darker contour on hover */
    }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    display: flex;
    height: 100vh;
    overflow: hidden;
}

/* =======
   SIDEBAR
   ======= */
.sidebar {
    width: var(--sidebar-width);
    background-color: var(--bg-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 0;
    border-right: 1px solid var(--border-color);
    height: 100vh;
    z-index: 10;
}

/* --- Profile --- */
.top-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.profile-icon {
    width: 40px;
    height: 40px;
    background-color: var(--accent-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--accent-text); 
}

/* --- Nav --- */
.nav-links {
    flex: 1; 
    display: flex;
    flex-direction: column;
    justify-content: center; 
    align-items: center;
    width: 100%;
    gap: 25px; 
}

/* --- BTN Style --- */
.menu-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
    width: 100%;
    padding: 10px 0;
    transition: all 0.3s ease;
    position: relative;
}

/* Btn Active */
.menu-btn.active {
    color: var(--accent-color);
    background-color: var(--active-btn-bg);
    border-radius: 0 16px 16px 0; 
    width: 90%; 
    align-self: flex-start; 
}


.menu-btn.active .icon-box {
    background: none;
    padding: 0;
}

.material-symbols-outlined {
    font-size: 26px;
}


/* =========================================
   MAIN CONTENT
   ========================================= */
.main-content {
    flex: 1;
    padding: 30px 40px;
    overflow-y: auto;

    background-color: var(--main-bg);
    border-radius: 30px;      
    margin: 15px 15px 15px 0;
    box-shadow: 0 0 20px rgba(0,0,0,0.4); 
}

/* --- Header --- */
header {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
}

.back-arrow {
    font-size: 24px;
    margin-right: 15px;
    cursor: pointer;
    color: var(--text-secondary);
}

/* --- Card --- */
.hero-card {
    /* Minimalist adjustment: solid background */
    background: var(--card-bg);
    border-radius: 28px;
    padding: 40px;
    height: 260px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    margin-bottom: 35px;
    overflow: hidden;
}

.hero-card h1 {
    font-size: 3rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.tags {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.tag {
    background-color: rgba(255,255,255,0.05);
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 6px;
    border: 1px solid rgba(255,255,255,0.1);
}

.abstract-art {
    position: absolute;
    right: 60px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    gap: 15px;
}
.shape {
    width: 70px;
    height: 70px;
    background-color: var(--text-secondary);
    opacity: 0.3;
    backdrop-filter: blur(5px);
}
.circle { border-radius: 50%; }
.square { border-radius: 20px; }
.star { clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); background-color: var(--text-secondary);}

/* --- (Tabs) --- */
.tabs {
    display: flex;
    justify-content: center; 
    align-items: center;
    gap: 15px; 
    margin-bottom: 30px;
    width: 100%; 
}

.tab-btn {
    padding: 10px 24px; 
    border-radius: 24px; 
    border: none;
    font-weight: 600;
    cursor: pointer;
    font-size: 0.95rem;
    font-family: 'Inter', sans-serif;
    
    display: flex;
    align-items: center;
    gap: 8px;
    
    transition: transform 0.2s ease;
}

.tab-btn:hover {
    transform: scale(1.05); /* Animation */
}

/* Btn Active (Outline Blue) */
.tab-btn.active {
    background-color: transparent; /* Fundo transparente */
    color: var(--accent-color);
    border: 1px solid var(--outline-subtle); /* Contorno mais claro */
}

.tab-btn.active .material-symbols-outlined {
    font-size: 18px; 
    font-weight: bold;
}

.tab-btn.active:hover {
    border-color: var(--accent-color); /* Contorno escuro/brilhante no hover */
}

/* Btn Inactive */
.tab-btn.inactive {
    background-color: rgba(255, 255, 255, 0.08); 
    color: var(--text-secondary);
}

.tab-btn.inactive:hover {
    background-color: rgba(255, 255, 255, 0.15);
    color: var(--text-primary);
}

/* --- List --- */
.list-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.list-item {
    background-color: var(--card-bg);
    padding: 25px;
    border-radius: 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.2s ease;
    cursor: pointer;
    border: 1px solid transparent;
}

.list-item:hover {
    transform: translateY(-3px);
    background-color: #232329;
    border-color: var(--accent-color); /* Neon/Blue on hover */
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.item-icon {
    width: 55px;
    height: 55px;
    background-color: #2c2c33;
    border-radius: 18px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #ccc;
}

.item-info h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: white;
}

.item-info p {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: 4px;
    font-weight: 500;
}

.item-desc {
    font-size: 0.8rem;
    color: #666;
    display: block;
}









/* =========================================
   Post
   ========================================= */

.post-hero {
    height: auto;
    min-height: 200px;
    padding: 30px;
}

.post-header-content {
    display: flex;
    align-items: center;
    gap: 25px;
}

.post-logo {
    width: 80px;
    height: 80px;
    object-fit: contain;
    background-color: rgba(255,255,255,0.05);
    padding: 10px;
    border-radius: 20px;
}

/* Layout */
.post-container {
    display: flex;
    gap: 40px;
    margin-top: 10px;
}

.post-details {
    flex: 2;
}

.post-actions {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Post */
.post-details h2 {
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.post-details h3 {
    margin-top: 30px;
    margin-bottom: 15px;
    font-size: 1.2rem;
    color: var(--accent-color);
}

.description {
    color: #ccc;
    line-height: 1.6;
    margin-bottom: 30px;
}

/* (Maintainer, Date) */
.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    background-color: var(--card-bg);
    padding: 20px;
    border-radius: 20px;
}

.info-item {
    display: flex;
    flex-direction: column;
}

.info-item .label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.info-item .value {
    font-size: 1rem;
    font-weight: 600;
}

/* Changelog */
.changelog-list {
    list-style: none;
    background-color: rgba(0,0,0,0.2);
    padding: 20px;
    border-radius: 20px;
}

.changelog-list li {
    margin-bottom: 10px;
    display: flex;
    align-items: start;
    gap: 10px;
    color: #ddd;
}

.changelog-list li::before {
    content: '•';
    color: var(--accent-color);
    font-weight: bold;
}

/* (Download) */
.action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 18px;
    border-radius: 18px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: transform 0.2s, filter 0.2s;
}

.action-btn:hover {
    transform: translateY(-3px);
    filter: brightness(1.1);
}


/* === 1. PRIMARY BUTTON (OUTLINE BLUE) === */
.action-btn.primary {
    /* Normal State: Transparent background, subtle blue contour/text */
    background-color: transparent;
    color: var(--outline-subtle);
    border: 2px solid var(--outline-subtle); 
}
.action-btn.primary:hover {
    /* Hover State: Darker/Brighter contour, white text, subtle background */
    border-color: var(--accent-color);
    color: var(--text-primary);
    background-color: rgba(0, 255, 255, 0.05); /* Subtle effect */
}


.action-btn.secondary {
    background-color: var(--card-bg);
    color: white;
}


/* === 2. SECONDARY ACTION BUTTON (NEUTRAL OUTLINE) === */
.action-btn.outline {
    /* Normal State: Neutral contour */
    border: 2px solid var(--outline-light); 
    color: var(--text-secondary);
}
.action-btn.outline:hover {
    /* Hover State: Accent contour */
    border-color: var(--accent-color); 
    color: var(--text-primary);
}


@media (max-width: 768px) {
    .post-container {
        flex-direction: column;
    }
    .post-header-content {
        flex-direction: column;
        text-align: center;
    }
}








/* =========================================
   Download and Screenshots in Post
   ========================================= */

/* --- Download --- */
.download-group {
    display: flex;
    position: relative; 
    width: 100%;
}

.main-dl {
    flex: 1; /* Takes most of the space */
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    /* Remove a borda direita nativa e usa o CSS do .action-btn.primary */
    border-right: none !important; 
}

/* The arrow button now uses the primary outline style for the contour */
.arrow-dl {
    width: 60px; 
    padding: 0;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    cursor: pointer;

    /* Reapplying the Primary Style */
    background-color: transparent;
    color: var(--outline-subtle);
    border: 2px solid var(--outline-subtle);
}
.arrow-dl:hover {
    filter: none; /* Disable default filter:brightness */
    border-color: var(--accent-color);
    color: var(--text-primary);
    background-color: rgba(0, 255, 255, 0.05);
}


/* --- Version Menu --- */
.dropdown-menu {
    display: none; /* Start Hidden */
    position: absolute;
    top: 110%; 
    right: 0;
    width: 100%;
    background-color: #25252a;
    border-radius: 16px;
    padding: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    z-index: 100;
    border: 1px solid #333;
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.dropdown-title {
    font-size: 0.75rem;
    color: #888;
    padding: 5px 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.dropdown-item {
    display: block;
    padding: 12px;
    color: white;
    text-decoration: none;
    border-radius: 10px;
    font-size: 0.9rem;
    transition: background 0.2s;
}

.dropdown-item:hover {
    background-color: rgba(255,255,255,0.1);
}

/* --- Donate BTN --- */
.action-btn.donate-btn {
    /* Gradient maintained for special action button */
    background: linear-gradient(45deg, var(--accent-color), #40e0d0); 
    color: var(--accent-text);
    border: none;
}
@media (prefers-color-scheme: light) {
    .action-btn.donate-btn {
        /* Softer Blue gradient in Light Mode */
        background: linear-gradient(45deg, var(--accent-color), #4a90e2); 
        color: var(--accent-text);
    }
}

/* --- Screenshots --- */
.screenshots-container {
    margin-top: 60px;
    margin-bottom: 20px;
}

.screenshots-container h3 {
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.carousel {
    display: flex;
    gap: 20px;
    overflow-x: auto; 
    padding-bottom: 20px; 
    
    /* Scroll behavior */
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
}

.carousel::-webkit-scrollbar {
    height: 8px;
}
.carousel::-webkit-scrollbar-track {
    background: #1c1c21;
    border-radius: 4px;
}
.carousel::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 4px;
}

.carousel-item {
    height: 400px; 
    width: auto;
    border-radius: 16px;
    scroll-snap-align: start; 
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    transition: transform 0.3s;
}

.carousel-item:hover {
    transform: scale(1.02);
}








/* =========================================
   Mobile Adaptation
   ========================================= */

@media screen and (max-width: 768px) {

    /* Layout */
    body {
        flex-direction: column;
    }

    /* Sidebar */
    .sidebar {
        width: 100%;
        height: 70px;        
        flex-direction: row; 
        position: fixed;     
        bottom: 0;           
        left: 0;
        border-right: none;
        border-top: 1px solid #1f1f1f;
        padding: 0;
        justify-content: center;
        z-index: 1000;       
        background-color: rgba(11, 11, 14, 0.95); 
        backdrop-filter: blur(10px); 
    }

    @media (prefers-color-scheme: light) {
        .sidebar {
            background-color: rgba(255, 255, 255, 0.95);
            border-top: 1px solid var(--border-color);
        }
    }
    
    .top-section {
        display: none;
    }

    
    .nav-links {
        flex-direction: row;
        justify-content: space-evenly; 
        gap: 0;
    }

    /* Nav Btn */
    .menu-btn {
        width: auto;
        padding: 0 20px;
        font-size: 10px; 
    }

    .menu-btn .material-symbols-outlined {
        font-size: 24px;
    }

    /* Mobile */
    .menu-btn.active {
        width: auto;
        align-self: center;
        border-radius: 16px; /* Radius */
        background-color: var(--active-btn-bg); /* Background Neon/Subtle Blue */
        margin: 0;
    }

    /* (Main Content) */
    .main-content {
        margin: 0;           
        border-radius: 0;    
        padding: 20px;       
        padding-bottom: 90px; 
        height: 100vh;      
        width: 100%;
    }

    /* Text and Card for mobile */
    .hero-card {
        height: auto;
        padding: 30px 20px;
        margin-bottom: 20px;
    }

    .hero-card h1 {
        font-size: 2rem; /* Title */
    }

    .abstract-art {
        opacity: 0.15; 
        right: -10px;  
    }

    /* List */
    .list-item {
        padding: 15px;
        gap: 15px;
    }

    .item-icon {
        width: 45px;
        height: 45px;
        min-width: 45px; 
    }

    .item-icon img {
        width: 24px !important;
        height: 24px !important;
    }

    .item-info h3 {
        font-size: 1rem;
    }
    
    /* Post Page Adjustments */
    .post-hero {
        flex-direction: column;
        text-align: center;
    }
    
    .post-header-content {
        flex-direction: column;
        gap: 15px;
    }
    
    .tags {
        justify-content: center;
    }

    /* Hide Elements */
    .back-arrow {
        font-size: 20px;
    }
}




/* Bash Style */


.terminal-window {
    background-color: #1E1E1E; 
    border: 1px solid #333;
    border-radius: 12px;
    padding: 25px;
    font-family: 'Fira Code', 'Source Code Pro', monospace; /* Terminal Font */
    font-size: 0.9rem;
    overflow: hidden;
    color: #E0E0E0; /* Text Color */
}

/* Container for line bash */
.terminal-line {
    display: block;
    line-height: 1.6;
    white-space: pre-wrap; 
    word-break: break-all; 
}


.terminal-line.comment {
    color: #6A9955; 
    margin-top: 15px; 
    font-style: italic;
    font-weight: 500;
}

/* (Prompt + Command) */
.terminal-line.command {
    color: #9CDCFE; 
    margin-top: 10px;
}

/* The "user@host:~$" */
.terminal-line .prompt {
    color: #DCDCAA; 
    font-weight: 600;
    margin-right: 8px;
}

/* (Output) */
.terminal-line.output {
    color: #B5CEA8; 
}

/* =========================================
   Mac Terminal Style
   ========================================= */

.mini-terminal {
    background-color: #2E2E2E; 
    border-radius: 10px;       
    margin: 25px 5px;         
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.4);
    border: 1px solid #4a4a4a;
    overflow: hidden;         
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.mini-terminal-header {
    background: linear-gradient(#E8E6E8, #D5D3D5); 
    padding: 9px 12px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #BDBBBC;
}

.terminal-controls {
    display: flex;
    gap: 7px;
}

.traffic-light {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.15);
}
.btn-red    { background-color: #FF5F57; }
.btn-yellow { background-color: #FFBD2E; }
.btn-green  { background-color: #28C940; }

.mini-terminal-body {
    padding: 15px;
    font-family: 'Fira Code', monospace;
    font-size: 0.9rem;
}


.mini-terminal-body .prompt {
    color: #DCDCAA; 
    font-weight: 600;
    margin-right: 8px;
}

.mini-terminal-body .command {
     color: #9CDCFE;
}

:root {
    /* DARK MODE (DEFAULT) - Black with Neon Blue (Minimalist) */
    --accent-color: #00FFFF;        /* Neon Blue for highlight and primary buttons */
    --accent-text: #000000;         /* Text for Neon buttons (Black) */
    --bg-color: #000000;            /* Pure Black main background */
    --main-bg: #0a0a0a;             /* Main content background */
    --card-bg: #1c1c21;             /* Card and list background (Original Value) */
    --list-bg-subtle: rgba(255, 255, 255, 0.03); /* NEW: Very subtle background for list items */
    --text-primary: #ffffff;        /* White primary text */
    --text-secondary: #b0b0b0;      /* Light gray secondary text */
    --highlight-card: #25252a;
    --active-btn-bg: rgba(0, 255, 255, 0.1); /* Subtle background for active item (Neon) */
    --border-color: #2c2c33;        /* Border color in Dark Mode */

    /* Colors for Outline Effect */
    --outline-light: rgba(255, 255, 255, 0.1); /* Light contour for non-accent elements */
    --outline-subtle: rgba(0, 255, 255, 0.4); /* Subtle Neon Blue for accent elements (Normal State) */
    
    --sidebar-width: 80px;
}

/* =========================================
   Light Theme (Minimalist - White)
   ========================================= */
@media (prefers-color-scheme: light) {
    :root {
        /* LIGHT MODE - White with Subtle Blue */
        --accent-color: #1A73E8;        /* Subtle Blue for accent */
        --accent-text: #FFFFFF;         /* Text for blue buttons (White) */
        --bg-color: #FFFFFF;            /* Pure White main background */
        --main-bg: #F4F4F9;             /* Main content background (Off-white) */
        --card-bg: #FFFFFF;             /* Card and list background */
        --list-bg-subtle: #FFFFFF;      /* NEW: White background for list items */
        --text-primary: #1c1c21;        /* Dark text */
        --text-secondary: #6a6a6a;      /* Gray secondary text */
        --highlight-card: #e8e8e8;
        --active-btn-bg: rgba(26, 115, 232, 0.1); /* Subtle background for active item (Blue) */
        --border-color: #e0e0e0;        /* Border color in Light Mode */

        /* Colors for Outline Effect */
        --outline-light: var(--border-color); /* Light contour for non-accent elements */
        --outline-subtle: rgba(26, 115, 232, 0.5); /* Subtle Blue for accent elements (Normal State) */
    }

    /* Specific Adjustments for Light Theme */
    .sidebar {
        border-right: 1px solid var(--border-color);
    }
    /* ... (rest of light mode styles are the same, adjusted below) */

    /* List Item in Light Mode */
    .list-item {
        background-color: var(--list-bg-subtle);
        border: 1px solid var(--border-color);
        box-shadow: 0 2px 5px rgba(0,0,0,0.05); /* Softer shadow */
        transition: all 0.3s ease;
    }
    .list-item:hover {
        background-color: var(--highlight-card);
        transform: translateY(-2px);
        /* Neon effect in Light Mode: Shadow with accent color */
        border-color: var(--accent-color);
        box-shadow: 0 0 15px rgba(26, 115, 232, 0.3); /* Subtle Blue Neon Glow */
    }
}
/* ... (rest of general styles) */

/* =========================================
   MAIN CONTENT (Starting from here)
   ========================================= */

/* ... (styles before list-container) */

/* --- List --- */
.list-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.list-item {
    background-color: var(--list-bg-subtle); /* Applied subtle background / background removed */
    padding: 25px;
    border-radius: 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.3s ease, box-shadow 0.3s ease; /* Increased transition time */
    cursor: pointer;
    border: 1px solid var(--border-color); /* Added subtle border */
    box-shadow: 0 0 5px rgba(255, 255, 255, 0.05); /* NEW: Initial subtle gray neon glow */
}

.list-item:hover {
    transform: translateY(-3px);
    background-color: var(--highlight-card); /* Slight color change on hover */
    border-color: var(--accent-color); /* Accent color on border */
    /* NEW: Intense Neon Glow Effect - changes from gray to accent color */
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.5), 0 0 10px rgba(0, 255, 255, 0.3); 
}

/* Fix for Light Mode hover (already handled in the @media block above) */

.item-icon {
    width: 55px;
    height: 55px;
    background-color: #2c2c33;
    border-radius: 18px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #ccc;
}
@media (prefers-color-scheme: light) {
    .item-icon {
        background-color: var(--main-bg);
        border: 1px solid var(--border-color);
    }
}
/* ========================================= */
/* --- MODAL DE DOWNLOAD (popup) STYLES --- */
/* ========================================= */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.85);
    padding-top: 50px;
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: var(--card-bg);
    color: var(--text-primary);
    margin: 5% auto;
    padding: 25px;
    border: 1px solid var(--border-color);
    width: 90%;
    max-width: 550px;
    border-radius: 16px;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}

.modal-info-header {
    margin-bottom: 25px;
    font-size: 1.5em;
    font-weight: 600;
    color: var(--accent-color);
}

/* --- Informações do Pop-up --- */
.info-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.info-block {
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}

.info-block-label {
    display: flex;
    align-items: center;
    font-size: 0.9em;
    color: var(--text-secondary);
    margin-bottom: 5px;
}

.info-block-label .material-symbols-outlined {
    font-size: 18px;
    margin-right: 8px;
}

.info-block-value {
    font-size: 1.1em;
    font-weight: 500;
    color: var(--text-primary);
}

/* --- Tags de Build Variants (Clicáveis) --- */
.tags-container {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.tag-variant {
    background-color: var(--highlight-card);
    color: var(--text-primary);
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.9em;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.2s;
}

.tag-variant.active,
.tag-variant:hover {
    border-color: var(--accent-color);
    background-color: var(--active-btn-bg);
    color: var(--accent-color);
}

/* --- Changelog Dropdown e Older Versions Container --- */
.modal-options-group {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

#modal-changelog-dropdown,
#modal-older-versions-container {
    position: relative;
}

.changelog-dropdown-btn,
.older-versions-btn {
    background-color: var(--card-bg);
    color: var(--accent-color);
    padding: 8px 15px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    transition: all 0.2s;
    width: 100%; /* Faz o botão preencher o espaço */
}

.changelog-dropdown-btn:hover,
.older-versions-btn:hover {
    border-color: var(--accent-color);
    background-color: var(--highlight-card);
}

.changelog-dropdown-btn .material-symbols-outlined,
.older-versions-btn .material-symbols-outlined {
    font-size: 20px;
    margin-right: 5px;
}

#modal-changelog-content {
    background-color: var(--highlight-card);
    padding: 15px;
    border-radius: 8px;
    margin-top: 10px;
    list-style-type: none;
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid var(--border-color);
}

#modal-changelog-content li {
    font-size: 0.9em;
    color: var(--text-secondary);
    margin-bottom: 5px;
}

#modal-changelog-content li::before {
    content: "•";
    color: var(--accent-color);
    font-weight: bold;
    display: inline-block;
    width: 1em;
    margin-left: -1em;
}


.modal-footer {
    display: flex;
    justify-content: flex-end; /* Alinha o botão de download à direita */
    align-items: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}



.modal-download-btn {
    background-color: var(--accent-color);
    color: var(--accent-text);
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s;
}
.modal-download-btn:hover {
    filter: brightness(1.2);
}

/* --- Pop-up Versões Antigas (Menu de Versões) --- */
#older-versions-menu {
    display: none;
    position: absolute;
    top: 100%;
    /* Centraliza sob o botão */
    left: 50%;
    transform: translateX(-50%); 
    width: 100%; /* Ocupa a largura total do container */
    max-width: 300px; 
    background-color: var(--highlight-card);
    border-radius: 12px;
    padding: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
    border: 1px solid var(--accent-color);
    z-index: 1001;
}

.version-item-btn {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    margin-bottom: 5px;
    background-color: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 0.95em;
    width: 100%;
    text-align: left;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s;
}

.version-item-btn:hover {
    background-color: var(--active-btn-bg);
    color: var(--accent-color);
}

.version-date {
    font-size: 0.8em;
    color: var(--text-secondary);
}

/* Ajuste para telas menores */
@media (max-width: 600px) {
    .modal-options-group {
        flex-direction: column;
        gap: 15px;
    }
}
/* Estilos do Modal de Lista */
.download-list-modal {
    max-width: 700px;
    padding: 25px;
}

.versions-list-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
    margin-bottom: 25px;
}

/* Card de Versão */
.version-card {
    background-color: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 18px;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    cursor: default;
}

.version-card:hover {
    border-color: var(--accent-color);
}

.version-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.version-number {
    font-size: 1.5rem;
    font-weight: 600;
}

.version-label-tag {
    background-color: var(--accent-color);
    color: var(--accent-text);
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-block;
    margin-left: 10px;
}

.version-download-btn {
    background-color: var(--accent-color);
    color: var(--accent-text);
    padding: 12px 20px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.2s;
}

.version-download-btn:hover {
    filter: brightness(0.9);
}

.modal-footer-list-view {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 10px;
}

.modal-close-text {
    color: var(--text-secondary);
    font-weight: 500;
    cursor: pointer;
    padding: 8px 15px;
    border-radius: 8px;
    transition: color 0.2s;
}

.modal-close-text:hover {
    color: var(--text-primary);
}

/* --- Estilos específicos para o Modal de Doação --- */

.donation-content {
    max-width: 400px; 
    text-align: center;
    padding: 30px;
}

.donation-content h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 25px;
    text-align: left;
}

.donation-message {
    font-size: 1.05rem;
    color: var(--text-primary);
    line-height: 1.5;
    margin-bottom: 30px;
}

.donation-actions {
    display: flex;
    justify-content: space-between;
    gap: 15px;
}

.donation-actions button,
.donation-actions a {
    flex: 1; 
    padding: 12px;
    font-size: 1rem;
    text-decoration: none;
    display: flex;
    justify-content: center;
    align-items: center;
}


.donation-actions .donate-btn {
  
    color: var(--accent-text) !important; 
   
    background: linear-gradient(45deg, var(--accent-color), #40e0d0); 
}

/* Ajuste para o botão Next Time */
.donation-actions .secondary {
    background-color: var(--highlight-card);
    color: var(--text-secondary);
    border: none;
}

.download-list-modal { max-width: 700px; padding: 25px; }
.versions-list-container { display: flex; flex-direction: column; gap: 15px; margin-top: 20px; margin-bottom: 25px; }
.version-card { background-color: var(--card-bg); border: 2px solid var(--border-color); border-radius: 18px; padding: 20px; display: flex; justify-content: space-between; align-items: center; transition: all 0.3s ease; cursor: default; }
.version-card:hover { border-color: var(--accent-color); }
.version-info { display: flex; flex-direction: column; gap: 5px; }
.version-number { font-size: 1.5rem; font-weight: 600; }
.version-label-tag { background-color: var(--accent-color); color: var(--accent-text); padding: 4px 8px; border-radius: 6px; font-size: 0.8rem; font-weight: 600; display: inline-block; margin-left: 10px; }
.version-download-btn:hover { filter: brightness(0.9); }
.modal-footer-list-view { width: 100%; display: flex; justify-content: center; align-items: center; padding-top: 10px; }
.modal-close-text { color: var(--text-secondary); font-weight: 500; cursor: pointer; padding: 8px 15px; border-radius: 8px; transition: color 0.2s; }
.modal-close-text:hover { color: var(--text-primary); }
.donation-content { max-width: 400px; text-align: center; padding: 30px; }
.donation-content h2 { font-size: 1.5rem; font-weight: 600; margin-bottom: 25px; text-align: left; }
.heart-icon { font-size: 80px; color: var(--accent-color); display: block; margin: 0 auto 30px; }
.donation-message { font-size: 1.05rem; color: var(--text-primary); line-height: 1.5; margin-bottom: 30px; }
.donation-actions { display: flex; justify-content: space-between; gap: 15px; }
.donation-actions button, .donation-actions a { flex: 1; padding: 12px; font-size: 1rem; text-decoration: none; display: flex; justify-content: center; align-items: center; }
.donation-actions .secondary { background-color: var(--highlight-card); color: var(--text-secondary); border: none; }