/* PokeDataMMO - CSS Ultra Optimizado (Bootstrap-First) */

/* ===== VARIABLES DE TEMA DE COLOR ===== */
:root,
[data-color-theme="red"] {
    --primary-color-dark: #dc2626;
    --primary-color-light: #dc2626;
    --primary-hover-dark: #b91c1c;
    --primary-hover-light: #b91c1c;
    --primary-bg-dark: rgba(220, 38, 38, 0.2);
    --primary-bg-light: rgba(220, 38, 38, 0.15);
    --primary-border-dark: rgba(220, 38, 38, 0.4);
    --primary-border-light: rgba(220, 38, 38, 0.3);
}

/* Green Theme */
[data-color-theme="green"] {
    --primary-color-dark: #16a34a;
    --primary-color-light: #16a34a;
    --primary-hover-dark: #15803d;
    --primary-hover-light: #15803d;
    --primary-bg-dark: rgba(22, 163, 74, 0.2);
    --primary-bg-light: rgba(22, 163, 74, 0.15);
    --primary-border-dark: rgba(22, 163, 74, 0.4);
    --primary-border-light: rgba(22, 163, 74, 0.3);
}

/* Blue Theme */
[data-color-theme="blue"] {
    --primary-color-dark: #2563eb;
    --primary-color-light: #2563eb;
    --primary-hover-dark: #1d4ed8;
    --primary-hover-light: #1d4ed8;
    --primary-bg-dark: rgba(37, 99, 235, 0.2);
    --primary-bg-light: rgba(37, 99, 235, 0.15);
    --primary-border-dark: rgba(37, 99, 235, 0.4);
    --primary-border-light: rgba(37, 99, 235, 0.3);
}

/* Yellow Theme */
[data-color-theme="yellow"] {
    --primary-color-dark: #eab308;
    --primary-color-light: #ca8a04;
    --primary-hover-dark: #ca8a04;
    --primary-hover-light: #a16207;
    --primary-bg-dark: rgba(234, 179, 8, 0.2);
    --primary-bg-light: rgba(202, 138, 4, 0.15);
    --primary-border-dark: rgba(234, 179, 8, 0.4);
    --primary-border-light: rgba(202, 138, 4, 0.3);
}

/* Purple Theme */
[data-color-theme="purple"] {
    --primary-color-dark: #9333ea;
    --primary-color-light: #9333ea;
    --primary-hover-dark: #7c3aed;
    --primary-hover-light: #7c3aed;
    --primary-bg-dark: rgba(147, 51, 234, 0.2);
    --primary-bg-light: rgba(147, 51, 234, 0.15);
    --primary-border-dark: rgba(147, 51, 234, 0.4);
    --primary-border-light: rgba(147, 51, 234, 0.3);
}

/* Pink Theme */
[data-color-theme="pink"] {
    --primary-color-dark: #ec4899;
    --primary-color-light: #ec4899;
    --primary-hover-dark: #db2777;
    --primary-hover-light: #db2777;
    --primary-bg-dark: rgba(236, 72, 153, 0.2);
    --primary-bg-light: rgba(236, 72, 153, 0.15);
    --primary-border-dark: rgba(236, 72, 153, 0.4);
    --primary-border-light: rgba(236, 72, 153, 0.3);
}

/* Orange Theme */
[data-color-theme="orange"] {
    --primary-color-dark: #ea580c;
    --primary-color-light: #ea580c;
    --primary-hover-dark: #c2410c;
    --primary-hover-light: #c2410c;
    --primary-bg-dark: rgba(234, 88, 12, 0.2);
    --primary-bg-light: rgba(234, 88, 12, 0.15);
    --primary-border-dark: rgba(234, 88, 12, 0.4);
    --primary-border-light: rgba(234, 88, 12, 0.3);
}

/* Cyan Theme */
[data-color-theme="cyan"] {
    --primary-color-dark: #06b6d4;
    --primary-color-light: #06b6d4;
    --primary-hover-dark: #0891b2;
    --primary-hover-light: #0891b2;
    --primary-bg-dark: rgba(6, 182, 212, 0.2);
    --primary-bg-light: rgba(6, 182, 212, 0.15);
    --primary-border-dark: rgba(6, 182, 212, 0.4);
    --primary-border-light: rgba(6, 182, 212, 0.3);
}

/* Aquamarine Theme */
[data-color-theme="aquamarine"] {
    --primary-color-dark: #14b8a6;
    --primary-color-light: #14b8a6;
    --primary-hover-dark: #0d9488;
    --primary-hover-light: #0d9488;
    --primary-bg-dark: rgba(20, 184, 166, 0.2);
    --primary-bg-light: rgba(20, 184, 166, 0.15);
    --primary-border-dark: rgba(20, 184, 166, 0.4);
    --primary-border-light: rgba(20, 184, 166, 0.3);
}

/* ===== FUNCIONES DE COLOR DINÁMICO ===== */
body:not(.light-theme) {
    --primary-color: var(--primary-color-dark);
    --primary-hover: var(--primary-hover-dark);
    --primary-bg: var(--primary-bg-dark);
    --primary-border: var(--primary-border-dark);
}

body.light-theme {
    --primary-color: var(--primary-color-light);
    --primary-hover: var(--primary-hover-light);
    --primary-bg: var(--primary-bg-light);
    --primary-border: var(--primary-border-light);
}

/* ===== PÁGINA DE INICIO ===== */
.home-content-wrapper {
    padding: 2rem;
}

.home-header {
    margin-bottom: 3rem;
}

.home-logo {
    max-width: 300px;
    height: auto;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.home-title {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.home-title-icon {
    width: 3rem;
    height: 3rem;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    animation: rotateMasterBall 3s ease-in-out infinite;
}

@keyframes rotateMasterBall {
    0%, 100% { transform: rotate(0deg); }
    50% { transform: rotate(15deg); }
}

.home-subtitle {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

.home-description {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 800px;
    margin: 0 auto;
}

/* Cards comunes (feature, highlight, summary) */
.feature-card,
.highlight-card,
.summary-card {
    border-radius: 15px;
    transition: all 0.3s ease;
}

.feature-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    backdrop-filter: blur(10px);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    border-color: var(--primary-color);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-align: center;
}

.feature-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: white;
    margin-bottom: 1rem;
    text-align: center;
}

.feature-description {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1rem;
    text-align: center;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin-bottom: 1.5rem;
}

.feature-list li {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.highlight-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 2rem 1.5rem;
}

.highlight-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--primary-color);
    transform: translateY(-3px);
}

.highlight-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.highlight-card h4 {
    color: white;
    font-weight: 600;
    margin-bottom: 1rem;
}

.highlight-card p {
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

/* Pie de página */
.home-footer {
    color: rgba(255, 255, 255, 0.8);
}

.home-footer p {
    margin: 0;
}

/* Tema claro para página de inicio */
body.light-theme .home-title {
    color: var(--primary-color);
}

body.light-theme .home-subtitle {
    color: rgba(0, 0, 0, 0.8);
}

body.light-theme .home-description {
    color: rgba(0, 0, 0, 0.7);
}

body.light-theme .feature-card,
body.light-theme .highlight-card {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.1);
}

body.light-theme .feature-card:hover,
body.light-theme .highlight-card:hover {
    background: rgba(0, 0, 0, 0.08);
    border-color: var(--primary-color);
}

body.light-theme .feature-title,
body.light-theme .highlight-card h4 {
    color: #1a1a1a;
}

body.light-theme .feature-description,
body.light-theme .highlight-card p {
    color: rgba(0, 0, 0, 0.7);
}

body.light-theme .feature-list li {
    color: rgba(0, 0, 0, 0.6);
}

body.light-theme .home-footer {
    color: rgba(0, 0, 0, 0.7);
}

/* Responsive para página de inicio */
@media (max-width: 768px) {
    .home-content-wrapper {
        padding: 1rem;
    }
    
    .home-title {
        font-size: 2rem;
    }
    
    .home-title-icon {
        width: 2rem;
        height: 2rem;
    }
    
    .home-subtitle {
        font-size: 1.2rem;
    }
    
    .home-logo {
        max-width: 250px;
    }
    
    .feature-card {
        padding: 1rem;
    }
    
    .highlight-card {
        padding: 1.5rem 1rem;
    }
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #000;
    color: #fff;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Overlay oscuro para el fondo */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.35);
    z-index: 1;
    pointer-events: none;
}

/* ===== LAYOUT CONTAINER ===== */
.main-container {
    min-height: 100vh;
    padding: 20px 0 0 0;
    gap: 20px;
    position: relative;
    z-index: 2;
}

/* ===== HEADER CARD ===== */
.header-card {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(30, 30, 30, 0.6);
    border-radius: 0 0 15px 15px;
    padding: 10px 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(2px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-top: none;
    border-bottom: 5px solid var(--primary-color);
    z-index: 1000;
    width: 93.5%;
    max-width: 1386px;
    gap: 20px;
}

.title-logo {
    height: 80px;
    width: auto;
    max-width: 300px;
}

/* ===== MENU BUTTONS CONTAINER ===== */
.menu-buttons-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* ===== MOBILE MENU CONTAINER ===== */
.mobile-menu-container {
    display: none;
}

.user-pill-container-mobile {
    display: none;
}

/* ===== HAMBURGER MENU ===== */
.hamburger-menu-btn {
    display: none;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.hamburger-menu-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.hamburger-menu-btn:active {
    background: rgba(255, 255, 255, 0.2);
}

.hamburger-menu-dropdown {
    display: none;
    position: fixed;
    top: 70px;
    right: 10px;
    background: rgba(30, 30, 30, 0.98);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    padding: 10px;
    min-width: 220px;
    z-index: 1000;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.hamburger-menu-dropdown.show {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.hamburger-menu-content {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.hamburger-menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: white;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    text-align: left;
}

.hamburger-menu-item:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateX(3px);
}

.hamburger-menu-separator {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 5px 0;
}

.hamburger-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.hamburger-color-preview {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
    flex-shrink: 0;
}

/* Tema claro para menú hamburguesa */
body.light-theme .hamburger-menu-btn {
    background: rgba(0, 0, 0, 0.1);
    border-color: rgba(0, 0, 0, 0.2);
}

body.light-theme .hamburger-menu-btn:hover {
    background: rgba(0, 0, 0, 0.15);
    border-color: rgba(0, 0, 0, 0.3);
}

body.light-theme .hamburger-menu-btn svg path {
    stroke: #1a1a1a;
}

body.light-theme .hamburger-menu-dropdown {
    background: rgba(255, 255, 255, 0.98);
    border-color: rgba(0, 0, 0, 0.1);
}

body.light-theme .hamburger-menu-item {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.1);
    color: #1a1a1a;
}

body.light-theme .hamburger-menu-item:hover {
    background: rgba(0, 0, 0, 0.1);
    border-color: rgba(0, 0, 0, 0.2);
}

body.light-theme .hamburger-menu-item svg path {
    fill: #1a1a1a;
}

body.light-theme .hamburger-menu-separator {
    background: rgba(0, 0, 0, 0.1);
}

/* ===== LANGUAGE FEATURE ===== */
.language-container {
    position: relative;
}

.language-icon {
    width: 26px;
    height: 26px;
    object-fit: cover;
    border-radius: 50%;
}

/* ===== THEME FEATURE ===== */
.theme-container {
    position: relative;
}

/* ===== MUSIC PLAYER FEATURE ===== */
.music-container {
    position: relative;
}

.music-dropdown {
    padding: 13px;
    width: 308px;
    max-height: 385px;
}

/* Headers compartidos (music, wallpaper, dropdown) */
.music-header,
.wallpaper-header,
.dropdown-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.music-header {
    margin-bottom: 9px;
    padding-bottom: 7px;
}

.music-header h6,
.wallpaper-header h6,
.dropdown-header h6 {
    color: white;
    font-weight: 600;
    margin: 0;
}

.music-player {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.song-display {
    text-align: center;
    padding: 7px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 7px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.song-title {
    color: white;
    font-weight: 600;
    font-size: 0.83rem;
    margin-bottom: 7px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.song-info {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.72rem;
    margin-top: 5px;
}

/* Progress Bar */
.progress-container {
    width: 100%;
    height: 16px;
    display: flex;
    align-items: center;
    padding: 0 3px;
    cursor: pointer;
    user-select: none;
}

.progress-bar {
    position: relative;
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 2px;
    overflow: visible;
    transition: height 0.2s ease;
}

.progress-container:hover .progress-bar {
    height: 6px;
}

.progress-bar::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: var(--progress, 0%);
    background: linear-gradient(90deg, #4CAF50, #45a049);
    border-radius: 2px;
    transition: width 0.1s linear;
}

.progress-thumb {
    position: absolute;
    top: 50%;
    left: var(--progress, 0%);
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    background: #4CAF50;
    border: 2px solid white;
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
    pointer-events: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.progress-container:hover .progress-thumb {
    opacity: 1;
}

.progress-container:active .progress-thumb {
    transform: translate(-50%, -50%) scale(1.2);
}

.main-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 7px;
}

.control-btn {
    width: 31px;
    height: 31px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.control-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    transform: scale(1.05);
}

.play-pause-btn {
    width: 35px;
    height: 35px;
    background: var(--primary-bg);
    border-color: var(--primary-border);
}

.play-pause-btn:hover {
    background: var(--primary-hover);
    border-color: var(--primary-color);
}

.volume-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 7px;
}

.volume-display {
    color: white;
    font-size: 0.72rem;
    font-weight: 500;
    min-width: 33px;
    text-align: center;
}

.playlist {
    max-height: 132px;
    overflow-y: auto;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.05);
}

.playlist-item {
    padding: 4px 9px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    cursor: pointer;
    transition: all 0.3s ease;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.72rem;
}

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

.playlist-item.active {
    background: var(--primary-bg);
    color: white;
    border-left: 3px solid var(--primary-color);
}

.playlist-item:last-child {
    border-bottom: none;
}


/* ===== WALLPAPER FEATURE ===== */
.wallpaper-container {
    position: relative;
}

.wallpaper-dropdown {
    padding: 20px;
    width: 400px;
    max-height: 500px;
    overflow-x: hidden;
}

.wallpaper-header {
    margin-bottom: 15px;
}

.close-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.wallpaper-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 10px;
    max-height: 350px;
    overflow-y: auto;
    overflow-x: hidden;
}

.wallpaper-item {
    aspect-ratio: 16/9;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
}

.no-background-item {
    background: rgba(255, 255, 255, 0.05);
    border: 2px dashed rgba(255, 255, 255, 0.3);
}

.no-background-preview {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.no-background-preview span {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.7rem;
    font-weight: 500;
}

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

.wallpaper-item:hover {
    transform: scale(1.05);
    border-color: rgba(255, 255, 255, 0.3);
}

.wallpaper-item.selected {
    border-color: #dc2626;
    box-shadow: 0 0 15px rgba(220, 38, 38, 0.5);
}

.wallpaper-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.wallpaper-item:hover img {
    transform: scale(1.1);
}

.wallpaper-item .pokemon-name {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    font-size: 0.7rem;
    padding: 5px;
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.wallpaper-item:hover .pokemon-name {
    opacity: 1;
}


/* ===== MAIN CONTENT CARD ===== */
.main-card {
    flex: 1;
    width: 88%;
    max-width: 1320px;
    margin-top: 100px;
    position: relative;
    z-index: 5;
}

/* ===== TAB SYSTEM ===== */
.tab-system-container {
    background: rgba(30, 30, 30, 0.6);
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(2px);
    border: 4px solid var(--primary-color);
    overflow: hidden;
}

.nav-tabs-container {
    background: rgba(60, 60, 60, 0.6);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-tab {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    padding: 15px 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    white-space: nowrap;
    position: relative;
}

.nav-tab:hover {
    background: rgba(70, 70, 70, 0.9);
    color: rgba(255, 255, 255, 0.8);
}

.nav-tab.active {
    background: rgba(30, 30, 30, 0.6);
    color: white;
}

.nav-tab.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary-color);
}

.tab-icon {
    font-size: 1.1rem;
}

.tab-text {
    font-weight: 600;
}

/* ===== TAB CONTENT ===== */
.tab-content-area {
    background: rgba(30, 30, 30, 0.6);
    min-height: calc(100vh - 300px);
}

.tab-content {
    padding: 0;
}

.tab-pane {
    display: none;
    padding: 2rem;
    animation: fadeIn 0.3s ease-in-out;
}

.tab-pane.active {
    display: block;
}

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

/* ===== CONTENT STYLING ===== */
.feature-list li {
    padding-left: 1.5rem;
    position: relative;
    color: rgba(255, 255, 255, 0.9);
    cursor: pointer;
    transition: transform 0.15s ease;
}

.feature-list li:active {
    transform: scale(0.98);
}

.feature-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #16a34a;
    font-weight: bold;
    font-size: 1.1rem;
}

.feature-list ul {
    margin-top: 0.5rem;
    margin-left: 1rem;
}

.feature-list ul li::before {
    content: '→';
    color: rgba(255, 255, 255, 0.6);
}

.status-card {
    transition: all 0.3s ease;
}

.status-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.status-card h5 {
    color: #fff;
    font-weight: 600;
}

.alert {
    border-radius: 10px;
    border: none;
}

.alert-info {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
    border-left: 4px solid #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

/* ===== FOOTER ===== */
footer.footer-custom {
    background: rgba(30, 30, 30, 0.6);
    border-radius: 15px 15px 0 0;
    padding: 1rem 2rem;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(2px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: none;
    border-top: 5px solid var(--primary-color);
    width: 93.5%;
    max-width: 1386px;
    margin: 20px auto 0 auto;
}

.footer-content {
    display: flex;
    justify-content: center;
    align-items: center;
}

.footer-text {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    font-weight: 300;
}


/* === BOTONES CIRCULARES DEL HEADER (CONSOLIDADO) === */
.selector-btn, .language-btn, .theme-btn, .music-btn, .wallpaper-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(2px);
    padding: 0;
}

.selector-btn:hover, .language-btn:hover, .theme-btn:hover, .music-btn:hover, .wallpaper-btn:hover {
    background: rgba(0, 0, 0, 0.9);
    border-color: rgba(255, 255, 255, 0.6);
    transform: scale(1.05);
}

.selector-btn svg, .selector-btn img.selector-icon,
.language-btn svg, .theme-btn svg, .music-btn svg, .wallpaper-btn svg,
.language-icon {
    transition: transform 0.3s ease;
}

.selector-btn:hover svg, .selector-btn:hover img.selector-icon,
.language-btn:hover svg, .theme-btn:hover svg, .music-btn:hover svg, .wallpaper-btn:hover svg,
.language-btn:hover .language-icon {
    transform: scale(1.1);
}

.selector-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

/* Color Preview Button */
.color-btn {
    padding: 5px;
}

.color-preview {
    width: calc(100% - 10px);
    height: calc(100% - 10px);
    border-radius: 50%;
    background: var(--primary-color);
    transition: all 0.3s ease;
    box-shadow: 0 0 8px var(--primary-color);
}

.color-btn:hover .color-preview {
    box-shadow: 0 0 15px var(--primary-color);
    transform: scale(1.05);
}

/* Dropdowns compartidos (font, color, wallpaper, music, user) */
.font-dropdown,
.color-dropdown,
.wallpaper-dropdown,
.music-dropdown,
.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 10px;
    background: rgba(30, 30, 30, 0.95);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1001;
}

.font-dropdown.show,
.color-dropdown.show,
.wallpaper-dropdown.show,
.music-dropdown.show,
.user-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.font-dropdown {
    padding: 20px;
    width: 300px;
    max-height: 400px;
}

.dropdown-header {
    margin-bottom: 15px;
}

.font-list {
    max-height: 300px;
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.font-item {
    padding: 10px 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

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

.font-item.selected {
    background: var(--primary-bg);
    border-color: var(--primary-color);
}

.color-dropdown {
    padding: 15px;
    width: 180px;
}

.color-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.color-item {
    width: 45px;
    height: 45px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
}

.color-item:hover {
    transform: scale(1.1);
    border-color: rgba(255, 255, 255, 0.3);
}

.color-item.selected {
    border-color: white;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.4);
}



/* ===== LIGHT THEME ===== */
body.light-theme {
    color: #000;
    background-color: #ffffff;
}

body.light-theme::before {
    background: rgba(255, 255, 255, 0);
}

body.light-theme .header-card {
    background: rgba(255, 255, 255, 0.6);
    border-color: rgba(0, 0, 0, 0.1);
    border-bottom: 5px solid var(--primary-color);
}

body.light-theme .tab-system-container {
    background: rgba(255, 255, 255, 0.6);
    border: 4px solid var(--primary-color);
}

body.light-theme .nav-tabs-container {
    background: rgba(240, 240, 240, 0.6);
    border-bottom-color: rgba(0, 0, 0, 0.1);
}

body.light-theme .nav-tab {
    color: rgba(0, 0, 0, 0.6);
}

body.light-theme .nav-tab:hover {
    background: rgba(200, 200, 200, 0.9);
    color: rgba(0, 0, 0, 0.8);
}

body.light-theme .nav-tab.active {
    background: rgba(255, 255, 255, 0.6);
    color: #000;
}

body.light-theme .tab-text {
    color: rgba(0, 0, 0, 0.8);
}

body.light-theme .tab-icon {
    color: rgba(0, 0, 0, 0.8);
}

body.light-theme .tab-content-area {
    background: rgba(255, 255, 255, 0.6);
}

body.light-theme footer.footer-custom {
    background: rgba(255, 255, 255, 0.6);
    border-color: rgba(0, 0, 0, 0.1);
    border-top: 5px solid var(--primary-color);
}

body.light-theme .footer-text {
    color: rgba(0, 0, 0, 0.7);
}

/* Light theme - Dropdowns */
body.light-theme .font-dropdown,
body.light-theme .color-dropdown,
body.light-theme .wallpaper-dropdown,
body.light-theme .music-dropdown,
body.light-theme .user-dropdown {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(0, 0, 0, 0.1);
}

body.light-theme .dropdown-header h6,
body.light-theme .music-header h6,
body.light-theme .wallpaper-header h6 {
    color: #000;
}

body.light-theme .font-item {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.1);
    color: #1a1a1a;
}

body.light-theme .font-item:hover {
    background: rgba(0, 0, 0, 0.1);
    border-color: rgba(0, 0, 0, 0.3);
}

body.light-theme .font-item.selected {
    background: var(--primary-bg);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

body.light-theme .color-item:hover {
    border-color: rgba(0, 0, 0, 0.3);
}

body.light-theme .color-item.selected {
    border-color: #000;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.4);
}

/* Botones tema claro - ya consolidado arriba */

/* Wallpaper dropdown - ya consolidado */

body.light-theme .close-btn {
    color: rgba(0, 0, 0, 0.6);
}

body.light-theme .close-btn:hover {
    background: rgba(0, 0, 0, 0.1);
    color: #000;
}

body.light-theme .close-btn svg path {
    stroke: #000;
}

body.light-theme .no-background-item {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.3);
}

body.light-theme .no-background-preview svg path {
    fill: rgba(0, 0, 0, 0.5);
}

body.light-theme .no-background-preview span {
    color: rgba(0, 0, 0, 0.7);
}

body.light-theme .no-background-item:hover {
    background: rgba(0, 0, 0, 0.1);
    border-color: rgba(0, 0, 0, 0.5);
}

body.light-theme h4 {
    color: #000;
}

body.light-theme p {
    color: rgba(0, 0, 0, 0.9);
}

body.light-theme .feature-list li {
    color: rgba(0, 0, 0, 0.9);
}

body.light-theme .feature-list li::before {
    color: #16a34a;
}

body.light-theme .feature-list ul li::before {
    color: rgba(0, 0, 0, 0.6);
}

body.light-theme .status-card h5 {
    color: #000;
}

body.light-theme .status-card p {
    color: rgba(0, 0, 0, 0.8);
}

body.light-theme .alert-info {
    background: rgba(34, 197, 94, 0.2);
    color: #16a34a;
    border-color: rgba(34, 197, 94, 0.3);
}

body.light-theme .alert-info strong {
    color: #16a34a;
}

body.light-theme .badge {
    color: #000;
}

body.light-theme .badge.bg-warning {
    background-color: #fbbf24 !important;
    color: #000 !important;
}

body.light-theme .badge.bg-primary {
    background-color: #3b82f6 !important;
    color: #fff !important;
}

body.light-theme .badge.bg-success {
    background-color: #10b981 !important;
    color: #fff !important;
}

body.light-theme strong {
    color: #000;
}

body.light-theme .text-white,
body.light-theme .form-label.text-white,
body.light-theme label.text-white {
    color: #000 !important;
}

/* Music dropdown - ya consolidado con dropdowns compartidos */

body.light-theme .song-display {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.1);
}

body.light-theme .song-title {
    color: #000;
}

body.light-theme .song-info {
    color: rgba(0, 0, 0, 0.7);
}

body.light-theme .progress-bar {
    background: rgba(0, 0, 0, 0.15);
}

body.light-theme .progress-thumb {
    border-color: #333;
}

body.light-theme .control-btn {
    background: rgba(0, 0, 0, 0.1);
    border-color: rgba(0, 0, 0, 0.2);
}

body.light-theme .control-btn:hover {
    background: rgba(0, 0, 0, 0.2);
    border-color: rgba(0, 0, 0, 0.4);
}

body.light-theme .control-btn svg path {
    fill: #000;
}

/* ===== TYPE CHART STYLES ===== */
.type-selector-container {
    margin-bottom: 1rem;
}

.type-selector {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    border-radius: 8px;
    padding: 10px 15px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.type-selector:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px var(--primary-bg);
    outline: none;
}

.type-selector option {
    background: #2a2a2a;
    color: white;
    padding: 8px;
}

/* Type Buttons Grid Styles */
.type-buttons-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 1rem;
    align-items: center;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.type-buttons-row {
    display: flex;
    gap: 10px;
    justify-content: center;
    align-items: center;
}


.type-button {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    padding: 0;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
}

.type-button:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
}

.type-button.selected {
    background: rgba(76, 175, 80, 0.3);
    border-color: #4CAF50;
    box-shadow: 0 0 15px rgba(76, 175, 80, 0.3);
}

.type-button.selected.secondary {
    background: rgba(156, 39, 176, 0.3);
    border-color: #9c27b0;
    box-shadow: 0 0 15px rgba(156, 39, 176, 0.3);
}

.type-button img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.type-button:hover img {
    transform: scale(1.05);
}

.selected-types-info {
    display: flex;
    gap: 2rem;
    align-items: center;
    flex-wrap: wrap;
}

.selected-types-info > div {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ===== TYPE EFFECTIVENESS SYSTEM (UNIFIED) ===== */
.effectiveness-results {
    margin: 2rem 0;
}

/* ===== TYPE CHART EFFECTIVENESS CARDS ===== */
.effectiveness-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    flex: 1;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

.effectiveness-card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
}

.effectiveness-card h5 {
    color: white;
    font-weight: 600;
    margin-bottom: 1rem;
    flex-shrink: 0;
    text-align: center;
}

/* ===== TYPE CHART GRID ===== */
.effectiveness-grid {
    display: flex;
    gap: 15px;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: stretch;
}

/* ===== TYPE CHART TYPE CONTAINERS ===== */
.effectiveness-list,
.pokedex-effectiveness-types-grid {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    justify-content: center;
    align-items: flex-start;
}

/* ===== TYPE CHART TYPE ICONS ===== */
.effectiveness-type {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px;
    transition: all 0.3s ease;
    margin: 0px;
}

.effectiveness-type:hover {
    transform: scale(1.05);
}

.effectiveness-type img {
    width: 80px;
    height: 50px;
    object-fit: contain;
}

/* ===== TYPE CHART EFFECTIVENESS COLORS (UNIFIED) ===== */
/* 0x - No Effect (Black) */
.no-effect,
.effectiveness-card.no-effect,
.effectiveness-category[data-multiplier="0x"],
.pokedex-effectiveness-category[data-multiplier="0x"] {
    background: rgba(54, 54, 54, 0.6) !important;
    border-color: rgba(124, 124, 124, 0.8) !important;
}

/* 0.5x - Not Very Effective (Orange) */
.not-very-effective,
.effectiveness-card.not-very-effective,
.effectiveness-category[data-multiplier="0.5x"],
.pokedex-effectiveness-category[data-multiplier="0.5x"] {
    background: rgba(255, 165, 0, 0.3) !important;
    border-color: rgba(255, 165, 0, 0.5) !important;
}

/* 0.25x - Super Resistant (Red) */
.super-resistant,
.effectiveness-card.super-resistant,
.effectiveness-category[data-multiplier="0.25x"],
.pokedex-effectiveness-category[data-multiplier="0.25x"] {
    background: rgba(189, 0, 0, 0.3) !important;
    border-color: rgba(255, 0, 0, 0.664) !important;
}

/* 2x - Super Effective (Green) */
.super-effective,
.effectiveness-card.super-effective,
.effectiveness-category[data-multiplier="2x"],
.pokedex-effectiveness-category[data-multiplier="2x"] {
    background: rgba(76, 175, 80, 0.3) !important;
    border-color: rgba(76, 175, 80, 0.5) !important;
}

/* 4x - Ultra Effective (Purple) */
.ultra-effective,
.effectiveness-card.ultra-effective,
.effectiveness-category[data-multiplier="4x"],
.pokedex-effectiveness-category[data-multiplier="4x"] {
    background: rgba(156, 39, 176, 0.3) !important;
    border-color: rgba(156, 39, 176, 0.5) !important;
}

/* ===== FORCE POKEDEX LAYOUT (DEBUGGING) ===== */
#typeEffectiveness {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    gap: 15px !important;
    justify-content: space-between !important;
    align-items: stretch !important;
}

#typeEffectiveness > .pokedex-effectiveness-category {
    display: flex !important;
    flex-direction: column !important;
    flex: 1 !important;
    min-width: 0 !important;
    max-width: none !important;
    width: auto !important;
}

.type-chart-container {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow-x: auto;
    text-align: center;
}

.type-chart-table {
    display: inline-grid;
    grid-template-columns: 42.5px repeat(17, 42.5px);
    gap: 2px;
    min-width: 850px;
    table-layout: fixed;
}

.type-chart-cell {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    font-weight: 900;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    width: 42.5px;
    height: 42.5px;
    min-width: 42.5px;
    min-height: 42.5px;
    max-width: 42.5px;
    max-height: 42.5px;
    box-sizing: border-box;
}

.type-chart-cell:hover {
    transform: none;
    z-index: 10;
}

.hover-row {
    border-left: 2px solid rgba(255, 255, 255, 0.8) !important;
    border-right: 2px solid rgba(255, 255, 255, 0.8) !important;
    z-index: 20;
}

.hover-col {
    border-top: 2px solid rgba(255, 255, 255, 0.8) !important;
    border-bottom: 2px solid rgba(255, 255, 255, 0.8) !important;
    z-index: 20;
}

.type-chart-header {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 8px;
}

.type-chart-header img {
    width: 34px;
    height: 34px;
    object-fit: contain;
}

.corner-cell {
    background: transparent !important;
    border: none !important;
}

.type-chart-cell.effectiveness-0 {
    background: rgba(255, 0, 0, 0.3);
    color: #ff6b6b;
}

.type-chart-cell.effectiveness-05 {
    background: rgba(255, 165, 0, 0.3);
    color: #ffa500;
}

.type-chart-cell.effectiveness-1 {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.type-chart-cell.effectiveness-2 {
    background: rgba(76, 175, 80, 0.3);
    color: #4CAF50;
}

.type-chart-cell.effectiveness-4 {
    background: rgba(156, 39, 176, 0.3);
    color: #9c27b0;
}

/* Light theme adjustments */
body.light-theme .type-selector {
    background: rgba(0, 0, 0, 0.1);
    border-color: rgba(0, 0, 0, 0.2);
    color: #333;
}

body.light-theme .type-selector:focus {
    background: rgba(0, 0, 0, 0.15);
    border-color: #4CAF50;
}

body.light-theme .type-selector option {
    background: #f5f5f5;
    color: #333;
}

body.light-theme .effectiveness-card h5 {
    color: #333;
}

body.light-theme .type-chart-container {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.1);
}

body.light-theme .type-chart-header {
    background: rgba(0, 0, 0, 0.1);
    color: #333;
}

body.light-theme .type-chart-cell.effectiveness-1 {
    background: rgba(0, 0, 0, 0.1);
    color: #333;
}

body.light-theme .hover-row {
    border-left: 2px solid rgba(0, 0, 0, 0.8) !important;
    border-right: 2px solid rgba(0, 0, 0, 0.8) !important;
}

body.light-theme .hover-col {
    border-top: 2px solid rgba(0, 0, 0, 0.8) !important;
    border-bottom: 2px solid rgba(0, 0, 0, 0.8) !important;
}

body.light-theme .play-pause-btn {
    background: rgba(220, 38, 38, 0.8);
    border-color: rgba(220, 38, 38, 0.6);
}

body.light-theme .play-pause-btn:hover {
    background: rgba(220, 38, 38, 0.9);
    border-color: rgba(220, 38, 38, 0.8);
}

body.light-theme .play-pause-btn svg path {
    fill: #fff;
}

body.light-theme .volume-display {
    color: #000;
}

body.light-theme .playlist {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.1);
}

body.light-theme .playlist-item {
    color: rgba(0, 0, 0, 0.8);
    border-bottom-color: rgba(0, 0, 0, 0.05);
}

body.light-theme .playlist-item:hover {
    background: rgba(0, 0, 0, 0.1);
    color: #000;
}

body.light-theme .playlist-item.active {
    background: rgba(220, 38, 38, 0.2);
    color: #000;
    border-left-color: #dc2626;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1200px) {
    .header-card {
        width: 99%;
    }
    
    .main-card {
        width: 96.8%;
        margin-top: 95px;
    }
    
    footer.footer-custom {
        margin: 20px auto 0 auto;
    }
    
    .nav-tab {
        padding: 12px 16px;
        font-size: 0.8rem;
    }
    
    .selector-btn,
    .theme-btn,
    .wallpaper-btn,
    .music-btn,
    .language-btn {
        width: 40px;
        height: 40px;
    }
    
    .music-dropdown {
        width: 320px;
    }
    
    .wallpaper-dropdown {
        width: 350px;
    }
}

/* ===== MOBILE FIXES - CRITICAL ===== */
@media (max-width: 768px) {
    /* Fix para evitar que elementos se salgan del viewport */
    body {
        overflow-x: hidden;
        position: relative;
        -webkit-overflow-scrolling: touch; /* Smooth scrolling en iOS */
    }
    
    /* Fix para evitar zoom en inputs en iOS */
    input[type="text"],
    input[type="password"],
    input[type="email"],
    textarea,
    select {
        font-size: 16px !important;
    }
    
    /* Asegurar que el header esté siempre encima */
    .header-card {
        z-index: 9999 !important;
        position: fixed !important;
        top: 0 !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        width: 100% !important;
        max-width: 100vw !important;
    }
    
    /* Fix para auth card en móvil */
    .auth-card {
        position: fixed !important;
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
        z-index: 10000 !important;
        width: 95% !important;
        max-width: 400px !important;
        max-height: 90vh !important;
        overflow-y: auto !important;
        margin: 0 !important;
    }
    
    /* Fix para main card */
    .main-card {
        margin-top: 80px !important;
        width: 98% !important;
        position: relative;
        z-index: 1;
    }
    
    /* Fix para dropdowns - asegurar que estén encima de todo */
    .color-dropdown,
    .font-dropdown,
    .wallpaper-dropdown,
    .music-dropdown,
    .user-dropdown {
        z-index: 10001 !important;
    }
    
    /* Fix para hamburger menu */
    .hamburger-menu-dropdown {
        z-index: 10002 !important;
    }
    
    /* Fix para evitar que elementos se salgan horizontalmente */
    * {
        max-width: 100vw;
        box-sizing: border-box;
    }
    
    /* Fix para tabs en móvil */
    .nav-tabs-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none; /* Firefox */
        -ms-overflow-style: none; /* IE/Edge */
    }
    
    .nav-tabs-container::-webkit-scrollbar {
        display: none; /* Chrome/Safari */
    }
}

/* ===== POKÉDEX STYLES ===== */
/* Pokemon Search */
.pokemon-search-container {
    position: relative;
    margin-bottom: 2rem;
}

.pokemon-search-input {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    color: white;
    padding: 15px 20px;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    width: 100%;
}

.pokemon-search-input:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--primary-bg);
    outline: none;
}

.pokemon-search-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(30, 30, 30, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    z-index: 1000;
    max-height: 300px;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.search-suggestions.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.suggestion-item {
    padding: 12px 20px;
    cursor: pointer;
    transition: background 0.3s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.suggestion-item:last-child {
    border-bottom: none;
}

.suggestion-item:hover,
.suggestion-item.selected {
    background: var(--primary-bg);
}

.suggestion-content {
    display: flex;
    align-items: center;
    gap: 15px;
}

.suggestion-id {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    font-weight: 500;
    min-width: 50px;
}

.suggestion-name {
    color: white;
    font-size: 1rem;
    font-weight: 600;
    text-transform: capitalize;
}

/* Pokemon Card */
.pokemon-card-container {
    min-height: 400px;
}

/* Empty State */
.pokemon-card-container .text-muted {
    color: rgba(255, 255, 255, 0.7);
}

.pokemon-card-container .text-muted h4 {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    margin-bottom: 15px;
}

.pokemon-card-container .text-muted p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 1rem;
}

.pokemon-main-card {
    display: flex;
    flex-direction: column;
    gap: 25px;
    animation: fadeInUp 0.5s ease;
}

.pokemon-card-section {
    background: rgba(30, 30, 30, 0.6);
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border: 4px solid var(--primary-color);
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.pokemon-card-section:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    border-color: var(--primary-hover);
}

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

/* Card Sections */
.section-title {
    font-size: 1.5rem;
    font-weight: 680;
    color: white;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.basic-info-row {
    display: grid;
    grid-template-columns: 530px 1fr;
    gap: 30px;
    margin-bottom: 25px;
    align-items: start;
}

.pokemon-image-column {
    text-align: center;
}

.pokemon-main-sprite {
    width: 540px;
    height: 540px;
    object-fit: contain;
    filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.5));
    transition: transform 0.3s ease;
}

.pokemon-main-sprite:hover {
    transform: scale(1.05);
}

.pokemon-info-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.pokemon-name {
    font-size: 2.2rem;
    font-weight: 700;
    color: white;
    margin: 0;
    text-transform: capitalize;
}

.pokemon-id {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.1rem;
    font-weight: 500;
}

.info-section h4 {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pokemon-types {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.type-badge {
    display: flex;
    align-items: center;
}

.type-badge img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.generation-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(220, 38, 38, 0.2);
    border: 1px solid rgba(220, 38, 38, 0.4);
    color: #dc2626;
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
}

.generation-badge img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.abilities-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ability-item {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    padding: 8px 12px;
}

.ability-name {
    color: white;
    font-weight: 600;
    text-transform: capitalize;
}

.hidden-badge {
    color: #dc2626;
    font-size: 1rem;
    margin-left: 8px;
    font-weight: 500;
}

.egg-groups {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.egg-group-badge {
    background: rgba(34, 197, 94, 0.2);
    border: 1px solid rgba(34, 197, 94, 0.4);
    color: #22c55e;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: capitalize;
}

.physical-stats {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.physical-stat-badge {
    background: rgba(139, 92, 246, 0.2);
    border: 1px solid rgba(139, 92, 246, 0.4);
    color: #8b5cf6;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.held-items {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.held-item-badge {
    background: rgba(59, 130, 246, 0.2);
    border: 1px solid rgba(59, 130, 246, 0.4);
    color: #3b82f6;
    padding: 0px 3px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: capitalize;
    display: flex;
    align-items: center;
    gap: 2px;
}

.item-sprite {
    width: 35px;
    height: 35px;
    object-fit: contain;
}

.no-held-items {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    font-style: italic;
    font-weight: 500;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px dashed rgba(255, 255, 255, 0.2);
}

/* Description Row */
.description-row {
    margin-bottom: 25px;
}

.description-row h4 {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pokemon-description {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    line-height: 1.6;
    font-style: italic;
    margin: 0;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    border-left: 4px solid rgba(255, 255, 255, 0.2);
}

/* Evolution Row */
.evolution-row h4 {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Evolution Chain */
.evolution-chain {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.evolution-item {
    text-align: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.evolution-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.evolution-sprite {
    width: 120px;
    height: 120px;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.5));
    margin-bottom: 10px;
}

.evolution-name {
    color: white;
    font-weight: 600;
    text-transform: capitalize;
    margin-bottom: 5px;
}

.evolution-condition {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.75rem;
    font-weight: 500;
    text-align: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 6px 10px;
    margin-top: 8px;
    line-height: 1.3;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
}

.evolution-item-sprite {
    width: 35px;
    height: 35px;
    object-fit: contain;
}

.evolution-arrow {
    color: rgba(255, 255, 255, 0.5);
    font-size: 1.5rem;
    margin: 0 10px;
}

/* Stats Card */
.stats-container {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    margin-bottom: 15px;
}

.stat-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 12px 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-header {
    display: flex;
    align-items: center;
    gap: 15px;
}

.stat-name {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    min-width: 60px;
}

.stat-bar-container {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.stat-value {
    color: white;
    font-size: 1.1rem;
    font-weight: 700;
    min-width: 40px;
}

.stat-bar {
    flex: 1;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.stat-bar-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.5s ease;
    /* Color set inline per stat */
}

.stat-percentage {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.8rem;
    font-weight: 500;
    min-width: 40px;
}

.stats-note {
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8rem;
    font-style: italic;
}

/* Moves Card */
.moves-container {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.moves-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.move-tab {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    padding: 10px 20px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.move-tab:hover {
    background: rgba(255, 255, 255, 0.15);
}

.move-tab.active {
    background: rgba(220, 38, 38, 0.2);
    border-color: #dc2626;
    color: #dc2626;
}

.moves-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    max-height: 550px;
    overflow-y: auto;
    padding: 10px;
}

.move-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 12px 15px;
}

.move-row-1 {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 6px;
    flex-wrap: wrap;
}

.move-name {
    color: white;
    font-weight: 600;
    text-transform: capitalize;
    font-size: 0.9rem;
    min-width: 120px;
}

.move-type {
    display: flex;
    align-items: center;
}

.move-type img {
    width: 100%;
    height: auto;
    object-fit: contain;
    max-width: 80px;
}

.move-class {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.move-power, .move-pp {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.8rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
    min-width: 30px;
    text-align: center;
}

.move-accuracy {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.8rem;
    background: rgba(34, 197, 94, 0.2);
    border: 1px solid rgba(34, 197, 94, 0.3);
    padding: 2px 6px;
    border-radius: 4px;
    min-width: 30px;
    text-align: center;
}

.move-level {
    color: #ffffff;
    font-size: 0.8rem;
    font-weight: 600;
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    border: 1px solid rgba(220, 38, 38, 0.4);
    padding: 3px 8px;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(220, 38, 38, 0.2);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    min-width: 35px;
    text-align: center;
}

.move-description {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.8rem;
    line-height: 1.3;
    font-style: italic;
}

/* Pokédex Effectiveness */
.pokedex-effectiveness-container {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.pokedex-effectiveness-grid {
    display: flex !important;
    gap: 15px !important;
    flex-wrap: nowrap !important;
    justify-content: space-between !important;
    align-items: stretch !important;
    flex-direction: row !important;
}

.pokedex-effectiveness-category {
    background: rgba(255, 255, 255, 0.05) !important;
    border-radius: 12px !important;
    padding: 1.5rem !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    flex: 1 !important;
    min-height: 200px !important;
    display: flex !important;
    flex-direction: column !important;
    transition: all 0.3s ease !important;
}

.pokedex-effectiveness-category:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
}

.pokedex-effectiveness-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-bottom: 1rem;
}

.pokedex-effectiveness-label {
    color: white;
    font-weight: 700;
    font-size: 1.1rem;
    text-align: center;
}

.pokedex-effectiveness-count {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    font-weight: 500;
    text-align: center;
}

.pokedex-effectiveness-type-box {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.pokedex-effectiveness-type-box:hover {
    transform: scale(1.05);
}

.pokedex-effectiveness-type-box img {
    width: 80px;
    height: 50px;
    object-fit: contain;
}

/* Loading & Error States */
.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    color: rgba(255, 255, 255, 0.7);
}

.loading-spinner {
    width: 30px;
    height: 30px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top: 3px solid #dc2626;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.error {
    background: rgba(220, 38, 38, 0.2);
    border: 1px solid rgba(220, 38, 38, 0.4);
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    color: #dc2626;
}

/* Responsive Design */
@media (max-width: 768px) {
    .pokemon-main-card {
        gap: 20px;
    }
    
    .pokemon-card-section {
        padding: 20px;
    }
    
    .basic-info-row {
        grid-template-columns: 1fr;
        gap: 20px;
        text-align: center;
    }
    
    .pokemon-main-sprite {
        width: 200px;
        height: 200px;
    }
    
    
    .pokemon-name {
        font-size: 1.8rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    /* Type Chart responsive */
    .effectiveness-grid {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .effectiveness-card {
        flex: 1 1 calc(50% - 5px);
        min-height: 150px;
    }
    
    /* Pokédex responsive */
    .pokedex-effectiveness-grid {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .pokedex-effectiveness-category {
        flex: 1 1 calc(50% - 5px);
        min-height: 150px;
    }
    
    /* On very small screens, stack vertically */
    @media (max-width: 480px) {
        .effectiveness-card,
        .pokedex-effectiveness-category {
            flex: 1 1 100%;
        }
    }
    
    .moves-list {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .moves-tabs {
        flex-direction: column;
        gap: 8px;
    }
    
    .move-tab {
        text-align: center;
    }
    
    .evolution-chain {
        flex-direction: column;
        align-items: center;
    }
    
    .evolution-arrow {
        transform: rotate(90deg);
        margin: 10px 0;
    }
    
    .header-card {
        width: 98%;
        padding: 8px 16px;
        flex-direction: column;
        gap: 15px;
    }
    
    .title-logo {
        height: 50px;
        max-width: 250px;
    }
    
    .menu-buttons-container {
        gap: 6px;
    }
    
    .main-card {
        width: 98.8%;
        margin-top: 120px;
    }
    
    footer.footer-custom {
        padding: 0.8rem 1.5rem;
        margin: 20px auto 0 auto;
    }
    
    .selector-btn,
    .theme-btn,
    .wallpaper-btn,
    .music-btn,
    .language-btn {
        width: 35px;
        height: 35px;
    }
    
    .music-dropdown {
        width: 300px;
        padding: 15px;
    }
    
    .wallpaper-dropdown {
        width: 300px;
        padding: 15px;
    }
    
    .wallpaper-grid {
        grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
        gap: 8px;
    }
    
    .tab-pane {
        padding: 1.5rem;
    }
    
    .nav-tab {
        padding: 10px 12px;
        font-size: 0.75rem;
    }
    
    .footer-text {
        font-size: 0.8rem;
    }
    
    .font-dropdown {
        width: 280px;
    }
    
    .color-dropdown {
        width: 160px;
    }
}

@media (max-width: 480px) {
    .header-card {
        width: 99%;
        padding: 6px 12px;
    }
    
    .main-card {
        width: 99.5%;
        margin-top: 110px;
    }
}

/* Hamburger Menu - Móvil < 450px */
@media (max-width: 450px) {
    /* Ocultar menu-buttons-container normal */
    .menu-buttons-container {
        display: none !important;
    }
    
    /* Mostrar mobile-menu-container */
    .mobile-menu-container {
        display: flex !important;
        align-items: center;
        gap: 8px;
    }
    
    /* Mostrar user pill mobile */
    .user-pill-container-mobile {
        display: block !important;
        position: relative;
    }
    
    /* Mostrar botón hamburguesa */
    .hamburger-menu-btn {
        display: block !important;
        background: rgba(255, 255, 255, 0.1);
        border: 1px solid rgba(255, 255, 255, 0.2);
        border-radius: 8px;
        padding: 8px;
        cursor: pointer;
        transition: all 0.3s ease;
        z-index: 10003;
    }
    
    /* Ajustar posición del dropdown hamburguesa */
    .hamburger-menu-dropdown {
        position: fixed !important;
        top: 70px !important;
        right: 10px !important;
        left: auto !important;
        min-width: 200px !important;
        max-width: 250px !important;
        z-index: 10003 !important;
        background: rgba(30, 30, 30, 0.98) !important;
        border-radius: 15px !important;
        border: 1px solid rgba(255, 255, 255, 0.1) !important;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5) !important;
        backdrop-filter: blur(10px) !important;
        padding: 10px !important;
        transform: none !important;
    }
    
    /* Ajustar tamaño del user pill en móvil */
    .user-pill-container-mobile .user-pill-btn {
        min-width: 80px;
        padding: 6px 10px;
        font-size: 0.85rem;
        background: rgba(255, 255, 255, 0.1);
        border: 1px solid rgba(255, 255, 255, 0.2);
        border-radius: 20px;
        color: white;
        cursor: pointer;
        transition: all 0.3s ease;
    }
    
    .user-pill-container-mobile .username-display {
        max-width: 60px;
        font-size: 0.8rem;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    
    /* Fix para user dropdown en móvil */
    .user-pill-container-mobile .user-dropdown {
        position: fixed !important;
        top: 50% !important;
        left: 50% !important;
        right: auto !important;
        transform: translate(-50%, -50%) !important;
        width: 90% !important;
        max-width: 300px !important;
        z-index: 10004 !important;
        margin-top: 0 !important;
    }
    
    /* ===== DROPDOWNS CENTRADOS EN MÓVIL ===== */
    
    /* Color Dropdown */
    .color-dropdown {
        position: fixed !important;
        top: 50% !important;
        left: 50% !important;
        right: auto !important;
        transform: translate(-50%, -50%) !important;
        width: 90% !important;
        max-width: 280px !important;
        z-index: 10005 !important;
        margin-top: 0 !important;
        background: rgba(30, 30, 30, 0.98) !important;
        border-radius: 15px !important;
        border: 1px solid rgba(255, 255, 255, 0.1) !important;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5) !important;
        backdrop-filter: blur(10px) !important;
    }
    
    .color-dropdown.show {
        transform: translate(-50%, -50%) !important;
    }
    
    /* Font Dropdown */
    .font-dropdown {
        position: fixed !important;
        top: 50% !important;
        left: 50% !important;
        right: auto !important;
        transform: translate(-50%, -50%) !important;
        width: 90% !important;
        max-width: 320px !important;
        z-index: 10005 !important;
        margin-top: 0 !important;
        background: rgba(30, 30, 30, 0.98) !important;
        border-radius: 15px !important;
        border: 1px solid rgba(255, 255, 255, 0.1) !important;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5) !important;
        backdrop-filter: blur(10px) !important;
    }
    
    .font-dropdown.show {
        transform: translate(-50%, -50%) !important;
    }
    
    /* Wallpaper Dropdown */
    .wallpaper-dropdown {
        position: fixed !important;
        top: 50% !important;
        left: 50% !important;
        right: auto !important;
        transform: translate(-50%, -50%) !important;
        width: 90% !important;
        max-width: 350px !important;
        z-index: 10005 !important;
        max-height: 60vh !important;
        overflow-y: auto !important;
        margin-top: 0 !important;
        background: rgba(30, 30, 30, 0.98) !important;
        border-radius: 15px !important;
        border: 1px solid rgba(255, 255, 255, 0.1) !important;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5) !important;
        backdrop-filter: blur(10px) !important;
    }
    
    .wallpaper-dropdown.show {
        transform: translate(-50%, -50%) !important;
    }
    
    /* Music Dropdown */
    .music-dropdown {
        position: fixed !important;
        top: 50% !important;
        left: 50% !important;
        right: auto !important;
        transform: translate(-50%, -50%) !important;
        width: 90% !important;
        max-width: 350px !important;
        z-index: 10005 !important;
        max-height: 60vh !important;
        overflow-y: auto !important;
        margin-top: 0 !important;
        background: rgba(30, 30, 30, 0.98) !important;
        border-radius: 15px !important;
        border: 1px solid rgba(255, 255, 255, 0.1) !important;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5) !important;
        backdrop-filter: blur(10px) !important;
    }
    
    .music-dropdown.show {
        transform: translate(-50%, -50%) !important;
    }
    
    /* Overlay de fondo para dropdowns móviles */
    .dropdown-overlay {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        background: rgba(0, 0, 0, 0.5) !important;
        z-index: 10004 !important;
        display: none;
    }
    
    .dropdown-overlay.show {
        display: block !important;
    }
    
    /* Fix para tabs en móvil */
    .nav-tab {
        padding: 8px 6px !important;
        font-size: 0.7rem !important;
        min-width: 40px !important;
    }
    
    .nav-tab .tab-icon {
        font-size: 1.2rem !important;
    }
    
    footer.footer-custom {
        padding: 0.6rem 1rem;
        margin: 20px auto 0 auto;
    }
    
    .selector-btn,
    .theme-btn,
    .wallpaper-btn,
    .music-btn,
    .language-btn {
        width: 30px;
        height: 30px;
    }
    
    .music-dropdown {
        width: 280px;
        padding: 12px;
    }
    
    .wallpaper-dropdown {
        width: 280px;
        padding: 12px;
    }
    
    .wallpaper-grid {
        grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
        gap: 6px;
    }
    
    .tab-pane {
        padding: 1rem;
    }
    
    .nav-tab {
        padding: 8px 10px;
        font-size: 0.7rem;
    }
    
    .footer-text {
        font-size: 0.75rem;
    }
    
    .selector-btn svg {
        width: 16px;
        height: 16px;
    }
    
    .font-dropdown {
        width: 240px;
        padding: 15px;
    }
    
    .color-dropdown {
        width: 150px;
        padding: 12px;
    }
    
    .color-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }
}

/* ===== CUSTOM SCROLLBARS (UNIFIED) ===== */
::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

::-webkit-scrollbar-track {
    background: rgba(30, 30, 30, 0.8);
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--primary-color) 0%, var(--primary-hover) 100%);
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    box-shadow: 0 0 8px var(--primary-bg);
}

::-webkit-scrollbar-corner {
    background: rgba(30, 30, 30, 0.8);
}

* {
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) rgba(30, 30, 30, 0.8);
}

/* Scrollbars más pequeños para elementos específicos */
.playlist, .wallpaper-grid, .font-list, .moves-list, .search-suggestions {
    scroll-behavior: smooth;
}

.playlist::-webkit-scrollbar,
.wallpaper-grid::-webkit-scrollbar,
.font-list::-webkit-scrollbar,
.moves-list::-webkit-scrollbar,
.search-suggestions::-webkit-scrollbar {
    width: 6px;
}

.playlist::-webkit-scrollbar-track,
.wallpaper-grid::-webkit-scrollbar-track,
.font-list::-webkit-scrollbar-track,
.moves-list::-webkit-scrollbar-track,
.search-suggestions::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.playlist::-webkit-scrollbar-thumb,
.font-list::-webkit-scrollbar-thumb,
.moves-list::-webkit-scrollbar-thumb,
.search-suggestions::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 3px;
}

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

.playlist::-webkit-scrollbar-thumb:hover,
.wallpaper-grid::-webkit-scrollbar-thumb:hover,
.font-list::-webkit-scrollbar-thumb:hover,
.moves-list::-webkit-scrollbar-thumb:hover,
.search-suggestions::-webkit-scrollbar-thumb:hover {
    background: var(--primary-hover);
}

/* ===== LIGHT THEME - POKEDEX OPTIMIZATION ===== */
body.light-theme .pokemon-card-section {
    background: rgba(255, 255, 255, 0.9);
    border: 4px solid var(--primary-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

body.light-theme .pokemon-card-section:hover {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-hover);
}

/* Light theme - Textos (consolidado) */
body.light-theme .pokemon-name,
body.light-theme .evolution-name,
body.light-theme .suggestion-name,
body.light-theme .ability-name,
body.light-theme .move-name,
body.light-theme .item-name,
body.light-theme .pokemon-name-display {
    color: #1a1a1a;
}

body.light-theme .pokemon-id,
body.light-theme .suggestion-id {
    color: rgba(0, 0, 0, 0.7);
}

body.light-theme .info-section h4,
body.light-theme .section-title {
    color: rgba(0, 0, 0, 0.8);
}

body.light-theme .generation-badge {
    background: rgba(220, 38, 38, 0.15);
    border-color: rgba(220, 38, 38, 0.3);
    color: #dc2626;
}

body.light-theme .ability-item,
body.light-theme .stat-item,
body.light-theme .move-item {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.1);
}

body.light-theme .ability-item:hover,
body.light-theme .stat-item:hover,
body.light-theme .move-item:hover {
    background: rgba(0, 0, 0, 0.05);
}

body.light-theme .egg-group-badge {
    background: rgba(34, 197, 94, 0.15);
    border-color: rgba(34, 197, 94, 0.3);
    color: #22c55e;
}

body.light-theme .physical-stat-badge {
    background: rgba(139, 92, 246, 0.15);
    border-color: rgba(139, 92, 246, 0.3);
    color: #7c3aed;
}

body.light-theme .no-held-items {
    color: rgba(0, 0, 0, 0.6);
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.2);
}

body.light-theme .pokemon-description {
    color: rgba(0, 0, 0, 0.9);
    background: rgba(0, 0, 0, 0.03);
    border-left: 4px solid rgba(0, 0, 0, 0.2);
}

body.light-theme .evolution-item {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.1);
}

body.light-theme .evolution-item:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

body.light-theme .evolution-name {
    color: #1a1a1a;
}

body.light-theme .evolution-condition {
    color: rgba(0, 0, 0, 0.7);
}

body.light-theme .stats-container,
body.light-theme .moves-container,
body.light-theme .pokedex-effectiveness-container {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.1);
}

body.light-theme .pokedex-effectiveness-label {
    color: #1a1a1a;
}

body.light-theme .pokedex-effectiveness-count {
    color: rgba(0, 0, 0, 0.6);
}

body.light-theme .stat-name {
    color: rgba(0, 0, 0, 0.8);
}

body.light-theme .stat-value {
    color: #1a1a1a;
}

body.light-theme .stat-bar {
    background: rgba(0, 0, 0, 0.1);
}

body.light-theme .stat-percentage {
    color: rgba(0, 0, 0, 0.6);
}

body.light-theme .stats-note {
    color: rgba(0, 0, 0, 0.5);
}


body.light-theme .move-tab {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.1);
    color: #1a1a1a;
}

body.light-theme .move-tab:hover {
    background: rgba(0, 0, 0, 0.1);
}


body.light-theme .move-type span {
    color: rgba(0, 0, 0, 0.8);
}

body.light-theme .move-power {
    color: rgba(0, 0, 0, 0.7);
    background: rgba(0, 0, 0, 0.05);
}

body.light-theme .move-accuracy {
    color: rgba(0, 0, 0, 0.7);
    background: rgba(34, 197, 94, 0.15);
    border-color: rgba(34, 197, 94, 0.25);
}

body.light-theme .move-pp {
    color: rgba(0, 0, 0, 0.7);
    background: rgba(0, 0, 0, 0.05);
}

body.light-theme .move-level {
    color: #ffffff;
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    border: 1px solid rgba(220, 38, 38, 0.4);
    box-shadow: 0 2px 4px rgba(220, 38, 38, 0.2);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

body.light-theme .move-description {
    color: rgba(0, 0, 0, 0.8);
}


body.light-theme .loading {
    color: rgba(0, 0, 0, 0.7);
}

body.light-theme .error {
    background: rgba(220, 38, 38, 0.15);
    border-color: rgba(220, 38, 38, 0.3);
    color: #dc2626;
}

/* Light Theme Scrollbars */
body.light-theme ::-webkit-scrollbar-track {
    background: rgba(240, 240, 240, 0.8);
    border-color: rgba(0, 0, 0, 0.1);
}

body.light-theme ::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--primary-color) 0%, var(--primary-hover) 100%);
    opacity: 0.7;
}

body.light-theme * {
    scrollbar-color: var(--primary-color) rgba(240, 240, 240, 0.8);
}

/* Light Theme - Search */
body.light-theme .pokemon-search-input {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.2);
    color: #1a1a1a;
}

body.light-theme .pokemon-search-input:focus {
    background: rgba(0, 0, 0, 0.08);
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--primary-bg);
}

body.light-theme .pokemon-search-input::placeholder {
    color: rgba(0, 0, 0, 0.6);
}

body.light-theme .search-suggestions {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(0, 0, 0, 0.2);
}

body.light-theme .suggestion-item {
    border-bottom-color: rgba(0, 0, 0, 0.1);
}

body.light-theme .suggestion-item:hover,
body.light-theme .suggestion-item.selected {
    background: var(--primary-bg);
}

body.light-theme .suggestion-id {
    color: rgba(0, 0, 0, 0.6);
}

body.light-theme .suggestion-name {
    color: #1a1a1a;
}

body.light-theme .pokemon-card-container .text-muted {
    color: rgba(0, 0, 0, 0.7);
}

body.light-theme .pokemon-card-container .text-muted h4 {
    color: rgba(0, 0, 0, 0.9);
}

body.light-theme .pokemon-card-container .text-muted p {
    color: rgba(0, 0, 0, 0.6);
}

/* ===== CARDS PRINCIPALES (CONSOLIDADO) ===== */
.berry-calculator-container,
.pvp-teams-container,
.pokedex-container,
.type-calculator-container {
    padding: 2rem;
    background: rgba(30, 30, 30, 0.6);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border: 4px solid var(--primary-color);
    backdrop-filter: blur(10px);
}

.berry-calculator-header,
.pvp-teams-header,
.pokedex-header,
.type-calculator-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--primary-color);
}

.berry-calculator-header h2,
.pvp-teams-header h2,
.pokedex-header h2,
.type-calculator-header h2 {
    color: white;
    font-weight: 700;
    font-size: 2.2rem;
}

.berry-calculator-header .lead,
.pvp-teams-header .lead,
.pokedex-header .lead,
.type-calculator-header .lead {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
}

/* Ajuste específico solo para pokedex y type-calculator */
.pokedex-header h2,
.type-calculator-header h2 {
    font-size: 2.5rem;
}

.berry-calculator-controls {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 2rem;
}

.berry-calculator-controls .form-label {
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Form controls compartidos */
.berry-calculator-controls .form-select,
.berry-calculator-controls .form-control,
.auth-input,
#loadCalculationSelect,
#loadTeamSelect,
#calculationNameInput,
#teamNameInput {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    color: white;
    transition: all 0.3s ease;
}

.berry-calculator-controls .form-select,
.berry-calculator-controls .form-control {
    font-weight: 500;
}

.berry-calculator-controls .form-select:focus,
.berry-calculator-controls .form-control:focus,
.auth-input:focus,
#loadCalculationSelect:focus,
#loadTeamSelect:focus,
#calculationNameInput:focus,
#teamNameInput:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--primary-bg);
    outline: none;
}

.berry-calculator-controls .form-select:disabled,
.berry-calculator-controls .form-control:disabled {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    cursor: not-allowed;
}

.btn.disabled, .btn:disabled {
    background-color: rgb(100, 100, 100);
}

/* Placeholders globales */
.berry-calculator-controls .form-control::placeholder,
.auth-input::placeholder,
#calculationNameInput::placeholder,
#teamNameInput::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

body.light-theme .berry-calculator-controls .form-control::placeholder,
body.light-theme .auth-input::placeholder,
body.light-theme #calculationNameInput::placeholder,
body.light-theme #teamNameInput::placeholder {
    color: rgba(0, 0, 0, 0.6);
}

/* ===== DROPDOWN CUSTOM PARA BERRY CALCULATOR ===== */
.custom-dropdown {
    position: relative;
    width: 100%;
}

.custom-dropdown-selected {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    padding: 0.75rem 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s ease;
    min-height: 48px;
}

.custom-dropdown-selected:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.custom-dropdown-selected:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--primary-bg);
    outline: none;
}

.custom-dropdown-selected.open {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--primary-bg);
}

.dropdown-text {
    color: white;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dropdown-arrow {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.custom-dropdown.open .dropdown-arrow {
    transform: rotate(180deg);
}

.custom-dropdown-options {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(30, 30, 30, 0.95);
    border: 2px solid var(--primary-color);
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    display: none;
    backdrop-filter: blur(10px);
}

.custom-dropdown.open .custom-dropdown-options {
    display: block;
}

.custom-dropdown-option {
    padding: 0.75rem 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: background-color 0.2s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.custom-dropdown-option:last-child {
    border-bottom: none;
}

.custom-dropdown-option:hover {
    background: rgba(168, 85, 247, 0.2);
}

.dropdown-sprite {
    width: 30px;
    height: 30px;
    object-fit: contain;
    margin-right: 8px;
    vertical-align: middle;
}

.dropdown-option-text {
    color: white;
    font-weight: 500;
}

/* Tema claro para dropdown custom */
body.light-theme .custom-dropdown-selected {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.2);
    color: #212529;
}

body.light-theme .custom-dropdown-selected:hover {
    background: rgba(0, 0, 0, 0.08);
    border-color: rgba(0, 0, 0, 0.3);
}

body.light-theme .custom-dropdown-selected:focus,
body.light-theme .custom-dropdown-selected.open {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.2);
}

body.light-theme .dropdown-text {
    color: #212529;
}

body.light-theme .dropdown-arrow {
    color: rgba(0, 0, 0, 0.7);
}

body.light-theme .custom-dropdown-options {
    background: rgba(255, 255, 255, 0.95);
    border-color: var(--primary-color);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

body.light-theme .custom-dropdown-option {
    border-bottom-color: rgba(0, 0, 0, 0.1);
}

body.light-theme .custom-dropdown-option:hover {
    background: rgba(168, 85, 247, 0.15);
}

body.light-theme .dropdown-option-text {
    color: #212529;
}

/* Section Titles */
.section-title {
    color: white;
    font-weight: 700;
    font-size: 1.4rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Tables */
.irrigation-schedule-table,
.seeds-profits-table {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

.irrigation-schedule-table .table,
.seeds-profits-table .table {
    margin-bottom: 0;
    color: white;
}

.irrigation-schedule-table .table th,
.seeds-profits-table .table th {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
    padding: 1rem 0.75rem;
}

.irrigation-schedule-table .table td,
.seeds-profits-table .table td {
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.75rem;
    vertical-align: middle;
}

.irrigation-schedule-table .table tbody tr:hover,
.seeds-profits-table .table tbody tr:hover {
    background: rgba(255, 255, 255, 0.05);
}

/* Berry and Seed Info */
.berry-info,
.seed-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.berry-sprite,
.seed-sprite {
    width: 40px;
    height: 40px;
    object-fit: contain;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.1);
    padding: 4px;
}

.berry-info span,
.seed-info span {
    font-weight: 600;
    color: white;
}

body.light-theme .berry-info span,
body.light-theme .seed-info span {
    color: #000 !important;
}

/* Form Controls in Tables */
.irrigation-schedule-table .form-control-sm,
.seeds-profits-table .form-control-sm {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    color: white;
    font-size: 0.8rem;
    padding: 0.4rem 0.6rem;
    transition: all 0.3s ease;
}

.irrigation-schedule-table .form-control-sm:focus,
.seeds-profits-table .form-control-sm:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px var(--primary-bg);
    outline: none;
}

/* Loss Time Display */
.loss-time {
    color: #ff6b6b;
    font-weight: 600;
    font-size: 0.9rem;
}

/* Calculated Time Display */
.calculated-time {
    color: #3b82f6;
    font-weight: 600;
    font-size: 0.9rem;
    background: rgba(59, 130, 246, 0.1);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

/* Plant Time Inputs */
.plant-time-input {
    background: rgba(168, 85, 247, 0.2);
    border-color: rgba(168, 85, 247, 0.3);
}

.plant-time-input:focus {
    background: rgba(168, 85, 247, 0.3);
    border-color: #a855f7;
    box-shadow: 0 0 0 2px rgba(168, 85, 247, 0.2);
}

/* Irrigation Inputs */
.irrigation-input {
    background: rgba(59, 130, 246, 0.2);
    border-color: rgba(59, 130, 246, 0.3);
}

.irrigation-input:focus {
    background: rgba(59, 130, 246, 0.3);
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

/* Harvest Time Inputs */
.harvest-input {
    background: rgba(34, 197, 94, 0.2);
    border-color: rgba(34, 197, 94, 0.3);
}

.harvest-input:focus {
    background: rgba(34, 197, 94, 0.3);
    border-color: #22c55e;
    box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.2);
}

/* Loss Time Display (read-only) */
.loss-time-display {
    color: #ff6b6b;
    font-weight: 600;
    font-size: 0.9rem;
    background: rgba(239, 68, 68, 0.1);
    padding: 0.4rem 0.6rem;
    border-radius: 6px;
    border: 1px solid rgba(239, 68, 68, 0.2);
    display: block;
    min-height: 1.5rem;
}

/* Harvest Units */
.harvest-units {
    background: rgba(34, 197, 94, 0.2);
    border-color: rgba(34, 197, 94, 0.3);
}

.harvest-units:focus {
    background: rgba(34, 197, 94, 0.3);
    border-color: #22c55e;
    box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.2);
}

/* Price Inputs */
.price-input {
    background: rgba(59, 130, 246, 0.2);
    border-color: rgba(59, 130, 246, 0.3);
}

.price-input:focus {
    background: rgba(59, 130, 246, 0.3);
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

/* Amount Displays */
.harvest-amount,
.conservation-amount,
.zanamas-amount,
.sellable-amount,
.profit-amount {
    font-weight: 600;
    font-size: 0.9rem;
}

.harvest-amount {
    color: #22c55e;
}

.conservation-amount {
    color: #fbbf24;
}

.zanamas-amount {
    color: #a78bfa;
}

.sellable-amount {
    color: #06b6d4;
}

.profit-amount {
    color: #10b981;
    font-size: 1rem;
}

/* Zanamas Row */
.zanamas-row {
    background: rgba(168, 85, 247, 0.1);
    border-left: 4px solid var(--primary-color);
}

.zanamas-row:hover {
    background: rgba(168, 85, 247, 0.15);
}

/* Expenses Summary */
.expenses-summary-section {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.summary-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    height: 100%;
    transition: all 0.3s ease;
}

.summary-card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
}

.summary-card h5 {
    color: white;
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.summary-item:last-child {
    border-bottom: none;
}

.summary-item span:first-child {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

.summary-item span:last-child {
    color: white;
    font-weight: 600;
}

.summary-item.total {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 0.75rem;
    margin-top: 0.5rem;
    border-bottom: none;
}

.summary-card.final-total {
    background: rgba(168, 85, 247, 0.08);
    border: 3px solid var(--primary-color);
    box-shadow: 0 8px 25px rgba(168, 85, 247, 0.15);
}

.summary-card.final-total h5 {
    color: var(--primary-color);
}

.summary-card.final-total .summary-item span:last-child {
    color: var(--primary-color);
    font-size: 2rem;
    font-weight: 800;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    letter-spacing: 0.5px;
}

/* Extraction Costs */
.extraction-costs {
    max-height: 200px;
    overflow-y: auto;
}

.extraction-costs .summary-item {
    padding: 0.25rem 0;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .berry-calculator-container {
        padding: 1rem;
    }
    
    .berry-calculator-header h2 {
        font-size: 1.8rem;
    }
    
    .berry-calculator-controls {
        padding: 1rem;
    }
    
    .berry-info,
    .seed-info {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
    
    .berry-sprite,
    .seed-sprite {
        width: 30px;
        height: 30px;
    }
    
    .irrigation-schedule-table,
    .seeds-profits-table {
        padding: 0.5rem;
    }
    
    .irrigation-schedule-table .table th,
    .seeds-profits-table .table th {
        padding: 0.5rem 0.25rem;
        font-size: 0.7rem;
    }
    
    .irrigation-schedule-table .table td,
    .seeds-profits-table .table td {
        padding: 0.5rem 0.25rem;
    }
    
    .expenses-summary-section {
        padding: 1rem;
    }
    
    .summary-card {
        padding: 1rem;
        margin-bottom: 1rem;
    }
}

/* === TEMA CLARO - CARDS PRINCIPALES (CONSOLIDADO) === */
body.light-theme .berry-calculator-container,
body.light-theme .pvp-teams-container,
body.light-theme .pokedex-container,
body.light-theme .type-calculator-container {
    background: rgba(255, 255, 255, 0.9);
    border: 4px solid var(--primary-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

body.light-theme .berry-calculator-header h2,
body.light-theme .pvp-teams-header h2,
body.light-theme .pokedex-header h2,
body.light-theme .type-calculator-header h2 {
    color: #1a1a1a;
}

body.light-theme .berry-calculator-header .lead,
body.light-theme .pvp-teams-header .lead,
body.light-theme .pokedex-header .lead,
body.light-theme .type-calculator-header .lead {
    color: rgba(0, 0, 0, 0.8);
}

body.light-theme .berry-calculator-controls,
body.light-theme .pvp-teams-load-new-controls,
body.light-theme .berry-calculator-load-new-controls {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.1);
}

body.light-theme .berry-calculator-controls .form-label {
    color: #1a1a1a;
}

/* Section title - ya consolidado arriba */


/* ===== TYPE CALCULATOR CONTAINER - MISMO ESTILO QUE BERRY CALCULATOR ===== */
.type-calculator-container {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 2rem;
    border: 4px solid var(--primary-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    margin-bottom: 2rem;
}

.type-calculator-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--primary-color);
}

.type-calculator-header h2 {
    color: white;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.type-calculator-header .lead {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    margin-bottom: 0;
}

/* Tema claro para Type Calculator */
body.light-theme .type-calculator-container {
    background: rgba(255, 255, 255, 0.9);
    border: 4px solid var(--primary-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

body.light-theme .type-calculator-header h2 {
    color: #1a1a1a;
}

body.light-theme .type-calculator-header .lead {
    color: rgba(0, 0, 0, 0.8);
}

.pokedex-container {
    margin-bottom: 2rem;
}

body.light-theme .irrigation-schedule-table .berry-sprite,
body.light-theme .seeds-profits-table .seed-sprite {
    filter: none;
}

body.light-theme .loss-time,
body.light-theme .irrigation-schedule-table .loss-time,
body.light-theme .seeds-profits-table .loss-time {
    color: #dc2626;
}

body.light-theme .irrigation-schedule-table .table th,
body.light-theme .irrigation-schedule-table .table td,
body.light-theme .seeds-profits-table .table th,
body.light-theme .seeds-profits-table .table td {
    color: #212529;
}

body.light-theme .calculated-time {
    color: #1d4ed8;
    background: rgba(29, 78, 216, 0.1);
    border-color: rgba(29, 78, 216, 0.2);
}

body.light-theme .harvest-input {
    background: rgba(21, 128, 61, 0.2);
    border-color: rgba(21, 128, 61, 0.3);
}

body.light-theme .harvest-input:focus {
    background: rgba(21, 128, 61, 0.3);
    border-color: #15803d;
    box-shadow: 0 0 0 2px rgba(21, 128, 61, 0.2);
}

body.light-theme .plant-time-input {
    background: rgba(124, 58, 237, 0.2);
    border-color: rgba(124, 58, 237, 0.3);
}

body.light-theme .plant-time-input:focus {
    background: rgba(124, 58, 237, 0.3);
    border-color: #7c3aed;
    box-shadow: 0 0 0 2px rgba(124, 58, 237, 0.2);
}

body.light-theme .irrigation-input {
    background: rgba(29, 78, 216, 0.2);
    border-color: rgba(29, 78, 216, 0.3);
}

body.light-theme .irrigation-input:focus {
    background: rgba(29, 78, 216, 0.3);
    border-color: #1d4ed8;
    box-shadow: 0 0 0 2px rgba(29, 78, 216, 0.2);
}

body.light-theme .loss-input {
    background: rgba(185, 28, 28, 0.2);
    border-color: rgba(185, 28, 28, 0.3);
}

body.light-theme .loss-time-display {
    color: #dc2626;
    background: rgba(185, 28, 28, 0.1);
    border-color: rgba(185, 28, 28, 0.2);
}

body.light-theme .expenses-summary-section {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.1);
}

body.light-theme .summary-card {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.1);
}

body.light-theme .summary-card:hover {
    background: rgba(0, 0, 0, 0.05);
}

body.light-theme .summary-card h5 {
    color: #1a1a1a;
}

body.light-theme .summary-item {
    border-bottom-color: rgba(0, 0, 0, 0.1);
}

body.light-theme .summary-item span:first-child {
    color: rgba(0, 0, 0, 0.8);
}

/* Light theme - Berry tables */
body.light-theme .berry-calculator-container .table-dark {
    background-color: transparent;
}

body.light-theme .berry-calculator-container .table-dark thead th {
    background-color: #e9ecef;
    color: #495057;
    border-color: #dee2e6;
    font-weight: 600;
}

body.light-theme .berry-calculator-container .table-dark tbody tr:nth-of-type(odd) {
    background-color: #f8f9fa;
    color: #212529;
}

body.light-theme .berry-calculator-container .table-dark tbody tr:nth-of-type(even) {
    background-color: #ffffff;
    color: #212529;
}

body.light-theme .berry-calculator-container .table-dark tbody tr:hover {
    background-color: #e2e6ea;
}

body.light-theme .berry-calculator-container .table-dark td {
    border-color: #dee2e6;
    color: #212529;
}

/* Light theme - Berry form controls */
body.light-theme .berry-calculator-container .form-control,
body.light-theme .berry-calculator-container .form-select,
body.light-theme .berry-calculator-controls .form-control,
body.light-theme .berry-calculator-controls .form-select,
body.light-theme .irrigation-schedule-table .form-control-sm,
body.light-theme .seeds-profits-table .form-control-sm,
body.light-theme .cost-input-group .form-control {
    background-color: #ffffff;
    border-color: #ced4da;
    color: #212529;
}

body.light-theme .berry-calculator-container .form-control:focus,
body.light-theme .berry-calculator-container .form-select:focus,
body.light-theme .berry-calculator-controls .form-control:focus,
body.light-theme .berry-calculator-controls .form-select:focus,
body.light-theme .irrigation-schedule-table .form-control-sm:focus,
body.light-theme .seeds-profits-table .form-control-sm:focus,
body.light-theme .cost-input-group .form-control:focus {
    background-color: #ffffff;
    border-color: var(--primary-color);
    color: #212529;
    box-shadow: 0 0 0 0.2rem rgba(34, 197, 94, 0.25);
}

body.light-theme .summary-item span:last-child {
    color: #1a1a1a;
}

/* Net Profit más prominente en tema claro */
body.light-theme .summary-card.final-total .summary-item span:last-child {
    color: var(--primary-color);
    font-size: 2rem;
    font-weight: 800;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    letter-spacing: 0.5px;
}

/* Light theme - Valores de stats */
body.light-theme .harvest-amount {
    color: #15803d;
}

body.light-theme .conservation-amount {
    color: #b45309;
}

body.light-theme .zanamas-amount {
    color: #6d28d9;
}

body.light-theme .sellable-amount {
    color: #0891b2;
}

body.light-theme .profit-amount {
    color: #059669;
}

/* ===== ESTILO MEJORADO DEL TOTAL FINAL EN TEMA CLARO ===== */
body.light-theme .summary-card.final-total {
    background: rgba(168, 85, 247, 0.08);
    border: 3px solid var(--primary-color);
    box-shadow: 0 8px 25px rgba(168, 85, 247, 0.2);
}

body.light-theme .summary-card.final-total h5 {
    color: var(--primary-color);
}

body.light-theme .summary-card.final-total .summary-item span:last-child {
    color: var(--primary-color);
    font-size: 2.2rem;
    font-weight: 900;
    text-shadow: 0 3px 6px rgba(168, 85, 247, 0.3);
    letter-spacing: 1px;
}

body.light-theme .summary-item.total {
    background: rgba(0, 0, 0, 0.05);
}

/* ===== EXPENSE INPUTS STYLES ===== */
.cost-input-group {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    align-items: center;
}

.cost-input-group .form-control {
    flex: 1;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    color: white;
    font-size: 0.8rem;
    padding: 0.4rem 0.6rem;
    transition: all 0.3s ease;
}

.cost-input-group .form-control:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px var(--primary-bg);
    outline: none;
}

/* Botones de añadir/eliminar gastos - Estilos base */
.add-cost-btn,
.remove-cost-btn,
.add-purchase-cost-btn,
.remove-purchase-cost-btn,
.add-management-cost-btn,
.remove-management-cost-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-weight: 900;          /* Más grueso */
    font-size: 1.3rem;         /* Más grande */
    transition: all 0.3s ease;
    border: 2px solid;
}

/* Botones de añadir - Usan el color primario del tema */
.add-cost-btn,
.add-purchase-cost-btn,
.add-management-cost-btn {
    background: var(--primary-bg-dark);
    border-color: var(--primary-border-dark);
    color: var(--primary-color-dark);
}

.add-cost-btn:hover,
.add-purchase-cost-btn:hover,
.add-management-cost-btn:hover {
    background: var(--primary-color-dark);
    border-color: var(--primary-color-dark);
    color: white;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Botones de eliminar - Rojo */
.remove-cost-btn,
.remove-purchase-cost-btn,
.remove-management-cost-btn {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

.remove-cost-btn:hover,
.remove-purchase-cost-btn:hover,
.remove-management-cost-btn:hover {
    background: #ef4444;
    border-color: #ef4444;
    color: white;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.5);
}

/* Berry Info Small */
.berry-info-small {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.berry-sprite-small {
    width: 35px;
    height: 35px;
    object-fit: contain;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.1);
    padding: 2px;
}

.berry-name {
    font-weight: 500;
    font-size: 0.85rem;
    color: white;
}

body.light-theme .berry-name {
    color: #000 !important;
}

.extraction-item {
    padding: 0.25rem 0;
    font-size: 0.9rem;
}

/* Light Theme Adjustments */
/* Tema claro - Botones de añadir usan el color primario del tema */
body.light-theme .add-cost-btn,
body.light-theme .add-purchase-cost-btn,
body.light-theme .add-management-cost-btn {
    background: var(--primary-bg-light);
    border-color: var(--primary-border-light);
    color: var(--primary-color-light);
}

body.light-theme .add-cost-btn:hover,
body.light-theme .add-purchase-cost-btn:hover,
body.light-theme .add-management-cost-btn:hover {
    background: var(--primary-color-light);
    border-color: var(--primary-color-light);
    color: white;
}

/* Tema claro - Botones de eliminar */
body.light-theme .remove-cost-btn,
body.light-theme .remove-purchase-cost-btn,
body.light-theme .remove-management-cost-btn {
    background: rgba(185, 28, 28, 0.15);
    border-color: rgba(185, 28, 28, 0.3);
    color: #b91c1c;
}

body.light-theme .remove-cost-btn:hover,
body.light-theme .remove-purchase-cost-btn:hover,
body.light-theme .remove-management-cost-btn:hover {
    background: #b91c1c;
    border-color: #b91c1c;
    color: white;
}

/* ===== PVP LOADING OVERLAY ===== */
.pvp-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.3s ease;
}

.pvp-loading-spinner-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    padding: 3rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.pvp-loading-spinner {
    width: 80px;
    height: 80px;
    border: 6px solid rgba(255, 255, 255, 0.1);
    border-top: 6px solid var(--primary-color-dark);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.pvp-loading-text {
    color: white;
    font-size: 1.3rem;
    font-weight: 600;
    text-align: center;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Tema claro */
body.light-theme .pvp-loading-overlay {
    background: rgba(255, 255, 255, 0.9);
}

body.light-theme .pvp-loading-spinner-container {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.1);
}

body.light-theme .pvp-loading-spinner {
    border-color: rgba(0, 0, 0, 0.1);
    border-top-color: var(--primary-color-light);
}

body.light-theme .pvp-loading-text {
    color: #1f2937;
}

/* ===== CURRENCY INPUT STYLES ===== */
.currency-input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.currency-symbol {
    position: absolute;
    left: 8px;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 600;
    font-size: 0.8rem;
    z-index: 2;
    pointer-events: none;
}

.currency-input {
    padding-left: 24px !important;
    text-align: right;
}

/* ===== CUSTOM FORM CONTROLS STYLES ===== */
/* Estilos para inputs de fecha */
input[type="time"]::-webkit-calendar-picker-indicator,
input[type="date"]::-webkit-calendar-picker-indicator {
    background: var(--primary-color);
    border-radius: 4px;
    padding: 4px;
    cursor: pointer;
    filter: brightness(0) invert(1);
}

input[type="time"]::-webkit-calendar-picker-indicator:hover,
input[type="date"]::-webkit-calendar-picker-indicator:hover {
    background: var(--primary-color);
    opacity: 0.8;
}

/* Estilos para spinners de inputs numéricos */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type="number"] {
    -moz-appearance: textfield;
    appearance: textfield;
}

/* Custom spinner buttons */
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: inner-spin-button;
    background: var(--primary-color);
    border-radius: 4px;
    padding: 2px;
    cursor: pointer;
}

/* Eliminar controles de tiempo (spinners y dropdowns) */
input[type="time"]::-webkit-calendar-picker-indicator {
    display: none !important;
}

input[type="time"]::-webkit-inner-spin-button,
input[type="time"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type="time"] {
    -moz-appearance: textfield;
    appearance: textfield;
}

/* Light Theme Adjustments */
body.light-theme .currency-symbol {
    color: rgba(0, 0, 0, 0.7);
}

/* ===== AUTHENTICATION SYSTEM ===== */
/* User Pill */
.user-pill-container {
    position: relative;
}

.user-pill-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 25px;
    padding: 8px 16px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(2px);
    min-width: 120px;
}

.user-pill-btn:hover {
    background: rgba(0, 0, 0, 0.9);
    border-color: var(--primary-color);
    transform: scale(1.02);
}

.username-display {
    font-weight: 600;
    font-size: 0.9rem;
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dropdown-arrow-svg {
    transition: transform 0.3s ease;
}

.user-pill-btn:hover .dropdown-arrow-svg {
    transform: translateY(2px);
}

.user-dropdown {
    padding: 20px;
    width: 280px;
}

.user-info-section {
    display: flex;
    align-items: center;
    gap: 15px;
    padding-bottom: 15px;
    margin-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.user-avatar {
    width: 50px;
    height: 50px;
    background: var(--primary-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--primary-color);
}

.user-avatar svg {
    width: 28px;
    height: 28px;
}

.user-avatar svg path {
    fill: var(--primary-color);
}

.user-details {
    flex: 1;
}

.user-name {
    color: white;
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 4px;
}

.user-email {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.8rem;
}

.user-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.logout-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 10px;
    padding: 10px 15px;
    color: #ef4444;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    width: 100%;
}

.logout-btn:hover {
    background: rgba(239, 68, 68, 0.3);
    border-color: #ef4444;
    transform: translateY(-2px);
}

.login-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: rgba(34, 197, 94, 0.2);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: 10px;
    padding: 10px 15px;
    color: #22c55e;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    width: 100%;
}

.login-btn:hover {
    background: rgba(34, 197, 94, 0.3);
    border-color: #22c55e;
    transform: translateY(-2px);
}

/* User pill states */
.user-pill-container.user-pill-logged-in .user-pill-btn {
    background: linear-gradient(135deg, var(--primary-color), #2d2d2d);
    border: 2px solid var(--primary-color);
}

body.light-theme .user-pill-container.user-pill-logged-in .user-pill-btn {
    background: linear-gradient(135deg, var(--primary-color), #f5f5f5);
    border: 2px solid var(--primary-color);
}

.user-pill-container.user-pill-no-user .user-pill-btn {
    background: linear-gradient(135deg, #6c757d, #495057);
    border: 2px solid #6c757d;
    opacity: 0.8;
}

.user-pill-container.user-pill-no-user .user-pill-btn:hover {
    background: linear-gradient(135deg, #5a6268, #343a40);
    border-color: #5a6268;
    opacity: 1;
}

/* User pill dropdown states */
.user-pill-container.user-pill-no-user .user-dropdown {
    border-color: #6c757d;
}

.user-pill-container.user-pill-no-user .user-dropdown-item:hover {
    background-color: rgba(108, 117, 125, 0.1);
}

/* Auth Card */
.auth-card {
    flex: 1;
    width: 88%;
    max-width: 500px;
    margin-top: 100px;
    position: relative;
    z-index: 5;
}

.auth-container {
    background: rgba(30, 30, 30, 0.6);
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(2px);
    border: 4px solid var(--primary-color);
    overflow: hidden;
    padding: 2rem;
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--primary-color);
}

.auth-title {
    color: white;
    font-weight: 700;
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.auth-subtitle {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    margin: 0;
}

/* Auth Tabs */
.auth-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 2rem;
}

.auth-tab {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 12px 20px;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.auth-tab:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.auth-tab.active {
    background: var(--primary-bg);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* Auth Content */
.auth-content {
    position: relative;
}

.auth-pane {
    display: none;
    animation: fadeIn 0.3s ease-in-out;
}

.auth-pane.active {
    display: block;
}

.auth-form {
    display: flex;
    flex-direction: column;
}

.auth-form .form-label {
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.auth-input {
    padding: 12px 16px;
    font-size: 0.95rem;
}

.auth-input:focus {
    color: white;
}

.form-text {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.75rem;
    margin-top: 4px;
    display: block;
}

.text-muted {
    color: rgba(255, 255, 255, 0.6);
}

/* Required asterisk styling */
.auth-form .form-label .text-danger,
.form-label .text-danger,
body .text-danger,
body.light-theme .text-danger {
    color: #ff4444 !important;
    font-weight: bold !important;
    margin-left: 3px;
    font-size: 1.1em;
}

.auth-submit-btn {
    background: var(--primary-color);
    border: none;
    border-radius: 10px;
    padding: 14px 20px;
    color: white;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.auth-submit-btn:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.auth-submit-btn:active {
    transform: translateY(0);
}

/* Auth Messages */
.auth-message {
    min-height: 24px;
    margin-bottom: 12px;
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    text-align: center;
    transition: all 0.3s ease;
}

.auth-message.error {
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #ef4444;
}

.auth-message.success {
    background: rgba(34, 197, 94, 0.2);
    border: 1px solid rgba(34, 197, 94, 0.4);
    color: #22c55e;
}

body.light-theme .user-pill-btn {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(0, 0, 0, 0.3);
}

body.light-theme .user-pill-btn:hover {
    background: rgba(255, 255, 255, 0.9);
    border-color: var(--primary-color);
}

body.light-theme .user-pill-btn svg path {
    fill: #000;
}

body.light-theme .username-display {
    color: #000;
}

/* User dropdown - ya consolidado */

body.light-theme .user-info-section {
    border-bottom-color: rgba(0, 0, 0, 0.1);
}

body.light-theme .user-name {
    color: #1a1a1a;
}

body.light-theme .user-email {
    color: rgba(0, 0, 0, 0.6);
}

body.light-theme .logout-btn {
    background: rgba(185, 28, 28, 0.15);
    border-color: rgba(185, 28, 28, 0.3);
    color: #b91c1c;
}

body.light-theme .logout-btn:hover {
    background: rgba(185, 28, 28, 0.25);
    border-color: #b91c1c;
}

body.light-theme .auth-container {
    background: rgba(255, 255, 255, 0.9);
}

body.light-theme .auth-title {
    color: #1a1a1a;
}

body.light-theme .auth-subtitle {
    color: rgba(0, 0, 0, 0.8);
}

body.light-theme .auth-tab {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.1);
    color: rgba(0, 0, 0, 0.7);
}

body.light-theme .auth-tab:hover {
    background: rgba(0, 0, 0, 0.08);
    color: #1a1a1a;
}

body.light-theme .auth-tab.active {
    background: var(--primary-bg);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

body.light-theme .auth-form .form-label {
    color: #1a1a1a;
}

body.light-theme .auth-input {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.2);
    color: #1a1a1a;
}

body.light-theme .auth-input:focus {
    background: rgba(0, 0, 0, 0.08);
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--primary-bg);
    color: #1a1a1a;
}

body.light-theme .auth-input::placeholder {
    color: rgba(0, 0, 0, 0.5);
}

body.light-theme .form-text {
    color: rgba(0, 0, 0, 0.6);
}

body.light-theme .text-muted {
    color: rgba(0, 0, 0, 0.6);
}

body.light-theme .auth-message.error {
    background: rgba(185, 28, 28, 0.15);
    border-color: rgba(185, 28, 28, 0.3);
    color: #b91c1c;
}

body.light-theme .auth-message.success {
    background: rgba(21, 128, 61, 0.15);
    border-color: rgba(21, 128, 61, 0.3);
    color: #15803d;
}

/* Responsive - Authentication */
@media (max-width: 768px) {
    .auth-card {
        position: fixed !important;
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
        z-index: 10000 !important;
        width: 95% !important;
        max-width: 400px !important;
        max-height: 90vh !important;
        overflow-y: auto !important;
        margin: 0 !important;
    }
    
    .auth-container {
        padding: 1.5rem;
        background: rgba(30, 30, 30, 0.95) !important;
        border-radius: 15px !important;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5) !important;
        backdrop-filter: blur(10px) !important;
        border: 4px solid var(--primary-color) !important;
    }
    
    .auth-title {
        font-size: 1.6rem;
    }
    
    .user-pill-btn {
        min-width: 100px;
        padding: 6px 12px;
    }
    
    .username-display {
        max-width: 80px;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .auth-card {
        width: 98% !important;
        max-width: 350px !important;
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
        z-index: 10000 !important;
        margin: 0 !important;
    }
    
    .auth-container {
        padding: 1rem;
        background: rgba(30, 30, 30, 0.98) !important;
    }
    
    .auth-tabs {
        flex-direction: column;
        gap: 8px;
    }
    
    .auth-tab {
        padding: 12px 16px;
        font-size: 0.9rem;
    }
    
    .user-pill-btn {
        min-width: 80px;
        padding: 5px 10px;
    }
    
    .username-display {
        max-width: 60px;
        font-size: 0.8rem;
    }
    
    .auth-form .form-control {
        font-size: 16px; /* Evita zoom en iOS */
        padding: 12px 15px;
    }
    
    .auth-submit-btn {
        padding: 12px 20px;
        font-size: 1rem;
    }
}

/* ===== BERRY CALCULATOR - SAVE SYSTEM ===== */
/* Save Indicator */
.save-indicator {
    position: fixed;
    top: 100px;
    right: 20px;
    background: rgba(30, 30, 30, 0.95);
    border-radius: 10px;
    padding: 12px 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: slideInRight 0.3s ease;
    border: 2px solid;
}

.save-indicator.success {
    border-color: #22c55e;
    color: #22c55e;
}

.save-indicator.error {
    border-color: #ef4444;
    color: #ef4444;
}

.save-indicator.saving {
    border-color: #3b82f6;
    color: #3b82f6;
}

#saveIndicatorText {
    font-weight: 600;
    font-size: 0.9rem;
}

@keyframes slideInRight {
    from {
        transform: translateX(100px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Load selects específicos */
#loadCalculationSelect,
#loadTeamSelect {
    padding: 12px 16px;
    font-size: 0.95rem;
    cursor: pointer;
}

#loadCalculationSelect:disabled,
#loadTeamSelect:disabled {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.4);
    cursor: not-allowed;
}

#loadCalculationSelect:not(:disabled):hover,
#loadTeamSelect:not(:disabled):hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--primary-color);
}

#loadCalculationSelect option,
#loadTeamSelect option {
    background: #1a1a1a;
    color: white;
    padding: 10px;
}

/* === NEW BUTTONS (CONSOLIDADO) === */
#newCalculationBtn,
#newTeamBtn {
    background: var(--primary-color);
    border: none;
    border-radius: 10px;
    padding: 12px 20px;
    color: white;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

#newCalculationBtn:hover,
#newTeamBtn:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

#newCalculationBtn:active,
#newTeamBtn:active {
    transform: translateY(0);
}

/* === TEMA CLARO - SAVE & LOAD CONTROLS === */
body.light-theme .save-indicator {
    background: rgba(255, 255, 255, 0.95);
}

body.light-theme .berry-calculator-load-new-controls,
body.light-theme .pvp-teams-load-new-controls {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.1);
}

/* Light theme - Load & Name inputs */
body.light-theme #loadCalculationSelect,
body.light-theme #loadTeamSelect,
body.light-theme #calculationNameInput,
body.light-theme #teamNameInput {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.2);
    color: #1a1a1a;
}

body.light-theme #loadCalculationSelect:disabled,
body.light-theme #loadTeamSelect:disabled {
    background: rgba(0, 0, 0, 0.02);
    border-color: rgba(0, 0, 0, 0.1);
    color: rgba(0, 0, 0, 0.4);
}

body.light-theme #loadCalculationSelect:not(:disabled):hover,
body.light-theme #loadTeamSelect:not(:disabled):hover,
body.light-theme #calculationNameInput:focus,
body.light-theme #teamNameInput:focus {
    background: rgba(0, 0, 0, 0.08);
}

body.light-theme #loadCalculationSelect option,
body.light-theme #loadTeamSelect option {
    background: #ffffff;
    color: #1a1a1a;
}

/* ===== POKÉMON CALCULATOR TAB ===== */
.pokemon-calculator-container {
    padding: 2rem 1rem;
}

.calculator-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 2rem;
    border: 3px solid var(--primary-color);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
}

.calculator-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--primary-color);
}

.calculator-content {
    padding: 1rem 0;
}

body.light-theme .calculator-card {
    background: rgba(255, 255, 255, 0.7);
    border-color: var(--primary-color);
}

/* === CONTROLES LOAD/NEW (CONSOLIDADO) === */
.berry-calculator-load-new-controls,
.pvp-teams-load-new-controls {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 1.5rem;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

/* Pokémon Team Grid (2x3) */
.pokemon-team-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

/* Pokémon Slot Card */
.pokemon-slot-card {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    min-height: 450px;
}

.pokemon-slot-card.empty {
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-style: dashed;
}

.pokemon-slot-card.empty:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--primary-color);
    transform: scale(1.02);
}

.pokemon-slot-card.filled {
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.08);
}

/* Empty Pokémon Content */
.empty-pokemon-content {
    text-align: center;
    width: 100%;
}

.add-pokemon-icon {
    color: rgba(255, 255, 255, 0.3);
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.pokemon-slot-card.empty:hover .add-pokemon-icon {
    color: var(--primary-color);
    transform: scale(1.1);
}

.add-pokemon-text {
    color: rgba(255, 255, 255, 0.5);
    font-weight: 500;
    margin: 0;
}

.pokemon-slot-card.empty:hover .add-pokemon-text {
    color: var(--primary-color);
}

/* Pokémon Card Header */
.pokemon-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.pokemon-sprite-large {
    width: 100px;
    height: 100px;
    object-fit: contain;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 5px;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.5));
}

.pokemon-card-title {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.pokemon-name-display {
    color: white;
    font-weight: 700;
    font-size: 1.1rem;
    margin: 0;
}

.remove-pokemon-btn {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.3);
    color: #ef4444;
    padding: 0.25rem 0.5rem;
    transition: all 0.3s ease;
}

.remove-pokemon-btn:hover {
    background: rgba(239, 68, 68, 0.3);
    border-color: #ef4444;
    transform: scale(1.1);
}

/* Level Selector Inline */
.level-selector-inline {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: auto;
    margin-right: 4rem;
}

.level-label {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
    font-weight: 500;
}

/* Botones de nivel personalizados */
.btn-outline-custom {
    color: var(--primary-color);
    border-color: var(--primary-color);
    background: transparent;
    font-weight: 600;
    font-size: 0.8rem;
    padding: 0.25rem 0.75rem;
    transition: all 0.3s ease;
}

.btn-outline-custom:hover {
    color: white;
    background: var(--primary-hover);
    border-color: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.btn-check:checked + .btn-outline-custom {
    color: white;
    background: var(--primary-color);
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(var(--primary-color-rgb), 0.3);
}

.btn-check:focus + .btn-outline-custom {
    box-shadow: 0 0 0 0.2rem rgba(var(--primary-color-rgb), 0.5);
}

/* Light Theme - Level Selector */
body.light-theme .level-label {
    color: rgba(0, 0, 0, 0.7);
}

body.light-theme .btn-outline-custom {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

body.light-theme .btn-outline-custom:hover {
    color: white;
    background: var(--primary-hover);
    border-color: var(--primary-hover);
}

body.light-theme .btn-check:checked + .btn-outline-custom {
    color: white;
    background: var(--primary-color);
    border-color: var(--primary-color);
}

/* ===== TABLA DE ESTADÍSTICAS POKÉMON ===== */
.pokemon-stats-section {
    margin-bottom: 1rem;
}

.pokemon-stats-table {
    width: 100%;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.pokemon-stats-table th {
    color: rgba(255, 255, 255, 0.7);
    font-weight: 600;
    font-size: 0.85rem;
    text-align: center;
    padding: 0.3rem 0.2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.pokemon-stats-table td {
    color: white;
    text-align: center;
    padding: 0.4rem 0.2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.pokemon-stats-table .stat-name {
    text-align: left;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
}

.pokemon-stats-table .base-stat {
    color: rgba(255, 255, 255, 0.6);
    font-weight: 500;
}

.pokemon-stats-table .final-stat {
    color: var(--primary-color);
    font-weight: 700;
}

.pokemon-stats-table input {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    color: white;
    text-align: center;
    padding: 0.25rem;
    width: 100%;
    font-size: 0.9rem;
}

.pokemon-stats-table input:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--primary-color);
    outline: none;
    color: white;
}

/* Light theme - Pokemon stats table */
body.light-theme .pokemon-stats-table th {
    color: rgba(0, 0, 0, 0.7);
}

body.light-theme .pokemon-stats-table td {
    color: #1a1a1a;
}

body.light-theme .pokemon-stats-table .stat-name {
    color: rgba(0, 0, 0, 0.9);
}

body.light-theme .pokemon-stats-table .base-stat {
    color: rgba(0, 0, 0, 0.6);
}

.ev-input,
.iv-input {
    color: white;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.ev-input:focus,
.iv-input:focus {
    color: white;
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--primary-color);
}

/* Light theme - EV/IV inputs (consolidado único) */
body.light-theme .ev-input,
body.light-theme .iv-input {
    color: #1a1a1a;
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.2);
}

body.light-theme .ev-input:focus,
body.light-theme .iv-input:focus {
    color: #1a1a1a;
    background: rgba(0, 0, 0, 0.08);
    border-color: var(--primary-color);
}

/* Light theme - PVP Teams inputs (consolidado) */
body.light-theme .pokemon-slot-card input,
body.light-theme .pokemon-slot-card .form-control,
body.light-theme .pokemon-slot-card select,
body.light-theme .pokemon-slot-card .form-select,
body.light-theme .pokemon-stats-table input {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.2);
    color: #1a1a1a;
}

body.light-theme .pokemon-slot-card input:focus,
body.light-theme .pokemon-slot-card .form-control:focus,
body.light-theme .pokemon-slot-card select:focus,
body.light-theme .pokemon-slot-card .form-select:focus,
body.light-theme .pokemon-stats-table input:focus {
    background: rgba(0, 0, 0, 0.08);
    border-color: var(--primary-color);
    color: #1a1a1a;
    box-shadow: 0 0 0 2px var(--primary-bg);
}

/* EV Total Display */
.ev-total-display {
    text-align: right;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    margin-top: 0.5rem;
    font-weight: 500;
}

/* EV Total Display - Tema claro */
body.light-theme .ev-total-display {
    color: rgba(0, 0, 0, 0.7);
}

.ev-total-number {
    color: #22c55e;
    font-weight: 700;
    font-size: 0.95rem;
}

/* EV Total Number - Tema claro */
body.light-theme .ev-total-number {
    color: #16a34a;
}

/* Pokémon Attributes Section */
.pokemon-attributes-section {
    margin-bottom: 1rem;
}

.form-label-sm {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    display: block;
}

.pokemon-attributes-section select {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: white;
    padding: 0.4rem;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.pokemon-attributes-section select:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--primary-color);
    outline: none;
}

.pokemon-attributes-section select option {
    background: #1a1a1a;
    color: white;
}

/* ===== CUSTOM DROPDOWNS (MOVES & ITEMS) ===== */

/* Estilos direccionales para dropdowns */
.custom-move-select-dropdown.dropdown-opens-upward,
.custom-item-select-dropdown.dropdown-opens-upward {
    /* Animación suave cuando se abre hacia arriba */
    transform-origin: bottom center;
}

.custom-move-select-dropdown.dropdown-opens-downward,
.custom-item-select-dropdown.dropdown-opens-downward {
    /* Animación suave cuando se abre hacia abajo */
    transform-origin: top center;
}

/* Move Select Wrapper */
.custom-move-select-wrapper,
.custom-item-select-wrapper {
    position: relative;
    width: 100%;
}

/* Trigger Button */
.custom-move-select-trigger,
.custom-item-select-trigger {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 0.35rem 0.75rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s ease;
    min-height: 60px;
}

.custom-move-select-trigger:hover,
.custom-item-select-trigger:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary-color);
}

/* Placeholder */
.custom-select-placeholder {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
}

/* Arrow Icon */
.custom-select-arrow {
    stroke: rgba(255, 255, 255, 0.6);
    transition: transform 0.3s ease;
}

/* Dropdown Container */
.custom-move-select-dropdown,
.custom-item-select-dropdown {
    /* ✅ SOLUCIÓN: Position fixed para estar por encima de todo */
    position: fixed !important;
    background: rgba(30, 30, 30, 0.98);
    border: 2px solid var(--primary-color);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    z-index: 99999 !important; /* Z-index ULTRA ALTO para estar por encima de todo */
    max-height: 300px;
    backdrop-filter: blur(10px);
    /* Remover posicionamiento absoluto que causaba problemas */
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    width: auto !important;

    margin-bottom: 100px;
}

/* Search Input */
.custom-select-search {
    padding: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.3);
}

.custom-select-search-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    padding: 0.5rem;
    color: white;
    font-size: 0.85rem;
    outline: none;
    transition: all 0.3s ease;
}

.custom-select-search-input:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(var(--primary-color-rgb), 0.2);
}

.custom-select-search-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

/* Options Container */
.custom-select-options {
    max-height: 240px;
    overflow-y: auto;
    padding: 0.5rem;
}

/* Scrollbar Styles */
.custom-select-options::-webkit-scrollbar {
    width: 8px;
}

.custom-select-options::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
}

.custom-select-options::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

.custom-select-options::-webkit-scrollbar-thumb:hover {
    background: var(--primary-hover);
}

/* Move Option */
.custom-move-option,
.custom-move-option-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.35rem 0.75rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 0.25rem;
    gap: 0.75rem;
}

.custom-move-option:hover {
    background: rgba(var(--primary-color-rgb), 0.2);
    transform: translateX(4px);
}

.custom-move-option:active {
    transform: translateX(2px);
}

.move-name {
    color: white;
    font-size: 0.8rem;
    font-weight: 500;
    flex: 1;
}

.move-type-icon {
    width: 30px;
    height: 30px;
    object-fit: contain;
}

/* Item Option */
.custom-item-option,
.custom-item-option-trigger {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 0.25rem;
}

.custom-item-option:hover {
    background: rgba(var(--primary-color-rgb), 0.2);
    transform: translateX(4px);
}

.custom-item-option:active {
    transform: translateX(2px);
}

.item-sprite {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.item-name {
    color: white;
    font-size: 0.85rem;
    font-weight: 500;
}

/* Loading & No Results */
.custom-select-loading,
.custom-select-no-results {
    padding: 1.5rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
}

/* Light Theme Adjustments */
body.light-theme .custom-move-select-trigger,
body.light-theme .custom-item-select-trigger {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.2);
}

body.light-theme .custom-move-select-trigger:hover,
body.light-theme .custom-item-select-trigger:hover {
    background: rgba(0, 0, 0, 0.05);
}

body.light-theme .custom-select-placeholder {
    color: rgba(0, 0, 0, 0.5);
}

body.light-theme .custom-move-select-dropdown,
body.light-theme .custom-item-select-dropdown {
    background: rgba(255, 255, 255, 0.98);
    border-color: var(--primary-color);
}

body.light-theme .custom-select-search {
    background: rgba(0, 0, 0, 0.03);
    border-bottom-color: rgba(0, 0, 0, 0.1);
}

body.light-theme .custom-select-search-input {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.2);
    color: #1a1a1a;
}

body.light-theme .custom-select-search-input:focus {
    background: rgba(0, 0, 0, 0.08);
}

body.light-theme .custom-select-search-input::placeholder {
    color: rgba(0, 0, 0, 0.4);
}

body.light-theme .move-name,
body.light-theme .item-name {
    color: #1a1a1a;
}

body.light-theme .move-pp {
    color: rgba(0, 0, 0, 0.7);
    background: rgba(0, 0, 0, 0.1);
}

body.light-theme .custom-select-loading,
body.light-theme .custom-select-no-results {
    color: rgba(0, 0, 0, 0.6);
}

/* Pokémon Moves Section */
.pokemon-moves-section {
    margin-top: 1rem;
}

.moves-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
}

.moves-grid select {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: white;
    padding: 0.5rem;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.moves-grid select:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--primary-color);
    outline: none;
}

.moves-grid select option {
    background: #1a1a1a;
    color: white;
}

/* Pokémon Search Modal */
.pokemon-search-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.3s ease;
}

.pokemon-search-modal-content {
    background: rgba(30, 30, 30, 0.95);
    border-radius: 20px;
    border: 3px solid var(--primary-color);
    padding: 2rem;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
}

.pokemon-search-modal .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.pokemon-search-modal .modal-header h5 {
    color: white;
    font-weight: 700;
    margin: 0;
}

.close-modal-btn {
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #ef4444;
}

.close-modal-btn:hover {
    background: rgba(239, 68, 68, 0.4);
    transform: rotate(90deg);
}

.pokemon-modal-search {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    color: white;
    padding: 12px 16px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.pokemon-modal-search:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--primary-bg);
    outline: none;
    color: white;
}

.pokemon-modal-search::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.modal-search-suggestions {
    background: rgba(20, 20, 20, 0.95);
    border-radius: 10px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    margin-top: 0.5rem;
    overflow: hidden;
    display: none;
}

.search-suggestion-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.search-suggestion-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.search-suggestion-item.error {
    color: #ef4444;
    justify-content: center;
}

.suggestion-sprite {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.suggestion-info {
    flex: 1;
}

.suggestion-info strong {
    color: white;
    font-size: 0.95rem;
}

body.light-theme .pokemon-slot-card {
    background: rgba(255, 255, 255, 0.5);
    border-color: rgba(0, 0, 0, 0.2);
}

body.light-theme .pokemon-slot-card.empty:hover {
    background: rgba(255, 255, 255, 0.7);
}

body.light-theme .pokemon-slot-card.filled {
    background: rgba(255, 255, 255, 0.7);
}

body.light-theme .add-pokemon-icon {
    color: rgba(0, 0, 0, 0.3);
}

body.light-theme .pokemon-slot-card.empty:hover .add-pokemon-icon {
    color: var(--primary-color);
}

body.light-theme .add-pokemon-text {
    color: rgba(0, 0, 0, 0.5);
}

body.light-theme .pokemon-slot-card.empty:hover .add-pokemon-text {
    color: var(--primary-color);
}

/* PVP text elements - ya consolidado */

body.light-theme .pokemon-slot-card .pokemon-type-badge {
    background: rgba(0, 0, 0, 0.1);
    color: #1a1a1a;
    border: 1px solid rgba(0, 0, 0, 0.2);
}

body.light-theme .ev-total-display {
    color: rgba(0, 0, 0, 0.7);
}

body.light-theme .form-label-sm {
    color: rgba(0, 0, 0, 0.8);
}

/* Light theme - PVP selects - ya consolidado arriba */

body.light-theme .pokemon-search-modal-content {
    background: rgba(255, 255, 255, 0.95);
}

body.light-theme .pokemon-search-modal .modal-header h5 {
    color: #1a1a1a;
}

body.light-theme .pokemon-modal-search {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.2);
    color: #1a1a1a;
}

body.light-theme .pokemon-modal-search:focus {
    background: rgba(0, 0, 0, 0.08);
    color: #1a1a1a;
}

body.light-theme .pokemon-modal-search::placeholder {
    color: rgba(0, 0, 0, 0.5);
}

body.light-theme .modal-search-suggestions {
    background: rgba(245, 245, 245, 0.95);
}

body.light-theme .suggestion-info strong {
    color: #1a1a1a;
}

/* Responsive - PVP Teams */
@media (max-width: 768px) {
    .pokemon-team-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .pokemon-slot-card {
        min-height: 400px;
    }
    
    .pokemon-sprite-large {
        width: 70px;
        height: 70px;
        filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.5));
    }
    
    .pokemon-name-display {
        font-size: 1rem;
    }
}