/* WOW Vegas - Accurate Clone Styles */

/* CSS Variables */
:root {
    --bg-primary: #1a1d29;
    --bg-secondary: #242938;
    --bg-tertiary: #2d3142;
    --bg-sidebar: #1e2130;
    --text-primary: #ffffff;
    --text-secondary: #a0a3bd;
    --text-muted: #6b7280;
    --accent-blue: #3b82f6;
    --accent-orange: #f97316;
    --accent-purple: #8b5cf6;
    --accent-pink: #ec4899;
    --accent-green: #10b981;
    --accent-yellow: #fbbf24;
    --border-color: #374151;
    --hover-bg: #374151;
    --card-bg: #2d3142;
    --gradient-blue: linear-gradient(135deg, #3b82f6, #1d4ed8);
    --gradient-orange: linear-gradient(135deg, #f97316, #ea580c);
    --gradient-purple: linear-gradient(135deg, #8b5cf6, #7c3aed);
    --gradient-pink: linear-gradient(135deg, #ec4899, #db2777);
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: #18181B;
    color: var(--text-primary);
    line-height: 1.5;
    overflow-x: hidden;
}

/* Main Container */
.main-container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 18rem;
    background:#202024;
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    z-index: 1000;
}

.sidebar-toggle {
    padding: 1rem;
  
}
/* Profile Section Custom Styles */
.profile-section {
    color: #fff;
}

.profile-section h4 {
    color: #fff;
}

.profile-section .form-label {
    color: #bbb;
    font-weight: 500;
    font-size: 0.9rem;
}

.profile-section .form-control {
    background: #1a1b1f;
    border: 1px solid #333;
    color: #fff;
}

.profile-section .form-control:disabled {
    background: #111;
    color: #888;
}

.profile-section .btn-primary {
    background: #2d6cdf;
    border: none;
    font-weight: 600;
}

.profile-section .btn-primary:hover {
    background: #2458b8;
}

.form-control::placeholder {
  color: #6c757d; 
}

/* Container para cada preferência */
.preference-item {
  display: flex;
  align-items: center;
  margin-bottom: 0.75rem;
  gap: 0.5rem;
}

/* o rótulo funciona como o botão do switch */
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 42px; /* largura do switch */
  height: 22px; /* altura do switch */
}

/* esconder o checkbox real */
.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

/* trilho do switch */
.toggle-switch .slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: .3s;
  border-radius: 34px;
}

/* “bolinha” do switch */
.toggle-switch .slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .3s;
  border-radius: 50%;
}


.toggle-switch input:checked + .slider {
  background-color: #0d6efd; /* azul bootstrap */
}


.toggle-switch input:checked + .slider:before {
  transform: translateX(20px);
}

/* opcional: hover */
.toggle-switch .slider:hover {
  background-color: #b3b3b3;
}
.account-link {
    color:white !important;
}
/* texto ao lado */
.preference-label {
  color: #f1f1f1; /* cor do texto, ajuste conforme tema */
  font-size: 0.95rem;
}


.form-control:disabled::placeholder {
  color: #bbb;
}
.sidebar-toggle i {
    font-size: 1.5rem;
    color: #003FFF;
   
    cursor: pointer;
}

/* Coin Balances */
.coin-balances {
    padding: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

.coin-balances h6 {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 1rem;
    letter-spacing: 0.05em;
}

.balance-item {
    position: relative; /* necessário pro ::before funcionar */
    display: flex;
    align-items: center;
    padding: 0.75rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    background: transparent; /* ou a cor padrão */
}

.balance-item.active {
    background: #292A2F; /* mantém o fundo quando ativo */
}

.balance-item:hover:not(.active) {
    background: var(--hover-bg); /* mantém o fundo no hover */
}

/* Barrinha lateral */
.balance-item::before {
    content: "";
    position: absolute;
    left: 0;
    top: 25%;           /* desloca pra baixo */
    height: 50%;        /* altura menor que o item */
    width: 4px;         /* largura da barrinha */
    border-radius: 4px;
    background: transparent; /* invisível inicialmente */
    transition: all 0.2s ease;
}

.balance-item.active::before {
    background: #003FFF; /* ativa junto com o background */
}

.balance-item:hover:not(.active)::before {
    background: #003FFF; /* aparece no hover */
}


.balance-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.75rem;
}

.balance-icon i {
    color: #3b82f6;
    font-size: 0.875rem;
}

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

.balance-label {

    font-size: 0.875rem;
    font-weight: 500;
    color: #3b82f6;
}

#nav-search i {
  color: #0d6efd;
}


.balance-amount {
    font-size: 0.75rem;
    color: white;
    font-weight: bold;
}

.btn-buy-coins {
    width: 100%;
    background: var(--accent-orange);
    border: none;
    color: white;
    padding: 0.75rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-buy-coins:hover {
    background: #ea580c;
    transform: translateY(-1px);
}

.btn-buy-coins i {
    margin-right: 0.5rem;
}

/* Sidebar Navigation */
.sidebar-nav {
    flex: 1;
    padding: 1rem 0;
}

.nav-list {
    list-style: none;
}



.nav-list, ol, ul{
   padding-left: 0.4rem !important
}


.nav-item {
    margin-bottom: 0.25rem;
}

.nav-link {
    position: relative; /* precisa pro ::before funcionar */
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s ease;
    border-radius: 0;
}

/* barrinha lateral */
.nav-link::before {
    content: "";
    position: absolute;
    left: 0;
    top: 25%;           /* desce um pouco pra centralizar */
    height: 50%;        /* ocupa só parte da altura */
    width: 4px;         /* largura da barrinha */
    border-radius: 4px;
    background: transparent; /* invisível por padrão */
    transition: all 0.2s ease;
}

.nav-link:hover {
    background: var(--hover-bg);
    color: var(--text-primary);
}

.nav-link:hover::before {
    background: #003FFF; /* aparece no hover */
}

.nav-item.active .nav-link {
    background: #292A2F;
    color: white;
}

.nav-item.active .nav-link i {
    color: #003FFF; 
}


.nav-item.active .nav-link::before {
    background: #003FFF; /* aparece no ativo */
}

.nav-link i {
    width: 20px;
    margin-right: 0.75rem;
    font-size: 1rem;
}


/* Theme Toggle */
.theme-toggle {
    padding: 1rem;
  
    display: flex;
    gap: 0.5rem;
}


.footer 
{

    background: #202024;
}

.theme-btn {
    flex: 1;
    padding: 0.5rem;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    border-radius: 6px;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.header-right i {
    color: #3B82F6 !important;
}
.theme-btn.active {
    background: #292A2F;
    border: none !important;
    color: var(--text-primary);
    border-color: var(--accent-blue);
}

/* Main Content */
.main-content {
    margin-left: 18rem;
    transition: margin-left 0.3s ease;
}

/* Top Header */
.top-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2rem;
    background: 202024;
    border-bottom: 1px solid var(--border-color);
   /* position: sticky;
    top: 0; */
    z-index: 100;
}

.header-left .logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 800;
}

.logo-wow {
    color: var(--text-primary);
    margin-right: 0.25rem;
}

.logo-vegas {
    color: var(--accent-blue);
}

.header-center {
    display: flex;
    align-items: center;
}

.balance-display {
    display: flex;
    gap: 1rem;
}

.balance-coin,
.balance-sweeps {
    display: flex;
    align-items: center;
    background: var(--bg-tertiary);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
}

.balance-coin {
    color: var(--accent-blue);
}

.balance-sweeps {
    color: var(--accent-orange);
}

.balance-coin i,
.balance-sweeps i {
    margin-right: 0.5rem;
}

.header-right {
    display: flex;
    gap: 0.5rem;
}

.header-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: var(--hover-bg);
    color: var(--text-primary);
}

/* Promotional Banner */
.promo-banner {
    margin: 2rem;
    background: var(--gradient-blue);
    border-radius: 16px;
    overflow: hidden;
    position: relative;
}

.banner-content {
    display: flex;
    align-items: center;
    padding: 2rem;
    position: relative;
    z-index: 2;
}

.banner-text {
    flex: 1;
}

.banner-text h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.banner-text p {
    font-size: 0.875rem;
    opacity: 0.9;
    margin-bottom: 1.5rem;
}

.btn-details {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--text-primary);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-details:hover {
    background: rgba(255, 255, 255, 0.3);
}

.btn-details i {
    margin-left: 0.5rem;
    font-size: 0.75rem;
}

.banner-image {
    width: 200px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.coin-animation {
    font-size: 4rem;
    color: rgba(255, 255, 255, 0.3);
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

/* Game Categories */
.game-categories {
    padding: 0 2rem;
    margin-bottom: 2rem;
}

.category-tabs {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
}

.category-tab {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.category-tab:hover {
    background: var(--hover-bg);
    color: var(--text-primary);
}

.category-tab.active {
    background: var(--accent-blue);
    color: var(--text-primary);
    border-color: var(--accent-blue);
}

.category-tab i {
    margin-right: 0.5rem;
    font-size: 0.875rem;
}

/* Game Sections */
.game-section {
    margin-bottom: 3rem;
    padding: 0 2rem;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.section-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
}

.section-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.section-nav {
    display: flex;
    gap: 0.5rem;
}

.nav-arrow {
    width: 32px;
    height: 32px;
    border: 1px solid var(--border-color);
    background: var(--bg-secondary);
    color: var(--text-secondary);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.nav-arrow:hover {
    background: var(--hover-bg);
    color: var(--text-primary);
}

.view-all-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.view-all-btn:hover {
    background: var(--hover-bg);
    color: var(--text-primary);
}

/* Games Grid */
.games-grid {
    display: grid;
    gap: 1rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
}

.daily-duel {
    grid-template-columns: repeat(4, 280px);
}

.new-games,
.popular-games {
    grid-template-columns: repeat(8, 160px);
}

/* Game Cards */
.game-card {
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
}

.game-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.game-card.featured {
    background: var(--gradient-purple);
}

/* Game Badges */
.game-badge,
.game-badges {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    z-index: 10;
}

.game-badges {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.daily-duel-badge {
    background: var(--gradient-orange);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
}

.badge-new {
    background: var(--accent-blue);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.625rem;
    font-weight: 700;
}

.badge-exclusive {
    background: var(--accent-purple);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.625rem;
    font-weight: 700;
}

/* Game Images */
.game-image {
    height: 200px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.daily-duel .game-image {
    height: 160px;
}

.new-games .game-image,
.popular-games .game-image {
    height: 120px;
}

/* Game Image Backgrounds */
.disco-dazzle {
    background: linear-gradient(135deg, #ec4899, #8b5cf6);
}

.sweety-treats {
    background: linear-gradient(135deg, #f97316, #fbbf24);
}

.all-about-fish {
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
}

.man-eater {
    background: linear-gradient(135deg, #10b981, #059669);
}

.clover-coins {
    background: linear-gradient(135deg, #10b981, #059669);
}

.cloverland-riches {
    background: linear-gradient(135deg, #ec4899, #be185d);
}

.turbo-diamonds {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
}

.disco-lady {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
}

.joker-coins {
    background: linear-gradient(135deg, #dc2626, #991b1b);
}

.wild-tiger {
    background: linear-gradient(135deg, #f97316, #ea580c);
}

.pyramid-ra {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
}

.lunar-wilds {
    background: linear-gradient(135deg, #1e40af, #1e3a8a);
}

/* Favorite Button */
.favorite-btn {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 32px;
    height: 32px;
    border: none;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 10;
}

.favorite-btn:hover {
    background: var(--accent-pink);
    transform: scale(1.1);
}

/* Game Overlay */
.game-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.game-card:hover .game-overlay {
    opacity: 1;
}

.play-btn {
    background: var(--accent-orange);
    border: none;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.play-btn:hover {
    background: #ea580c;
    transform: scale(1.05);
}

/* Game Info */
.game-info {
    padding: 1rem;
    text-align: center;
}

.game-info h4 {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.game-provider {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }
    
    .sidebar.open {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .games-grid {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    }
    
    .daily-duel {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    }
}

@media (max-width: 768px) {
    .top-header {
        padding: 1rem;
    }
    
    .promo-banner {
        margin: 1rem;
    }
    
    .banner-content {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
    }
    
    .banner-text h2 {
        font-size: 1.5rem;
    }
    
    .banner-image {
        width: 100%;
        height: 80px;
        margin-top: 1rem;
    }
    
    .game-section {
        padding: 0 1rem;
    }
    
    .category-tabs {
        padding: 0 1rem;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .section-actions {
        width: 100%;
        justify-content: space-between;
    }
}

@media (max-width: 480px) {
    .balance-display {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .header-right {
        gap: 0.25rem;
    }
    
    .header-btn {
        width: 36px;
        height: 36px;
    }
    
    .games-grid {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    }
    
    .daily-duel {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

/* Scrollbar Styles */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid var(--border-color);
    border-top-color: var(--accent-blue);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Focus States */
button:focus,
.nav-link:focus,
.category-tab:focus {
    outline: 2px solid var(--accent-blue);
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .sidebar,
    .header-right,
    .game-overlay,
    .favorite-btn {
        display: none !important;
    }
    
    .main-content {
        margin-left: 0;
    }
    
    body {
        background: white;
        color: black;
    }
}