/* === AztecaDJ - CSS Desktop === */

body { background-color: var(--bg); color: var(--text); font-family: 'Inter', 'Segoe UI', sans-serif; margin: 0; padding: 20px; }
.container { max-width: 1200px; margin: 0 auto; }

/* === Header === */
.header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; }
.header-title { font-size: 2em; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; margin: 0; }
.header-subtitle { color: var(--subtext); margin-top: 5px; font-size: 0.9em; }
.header-server-icon { width: 42px; height: 42px; min-width: 42px; border-radius: 50%; object-fit: cover; border: 2px solid #3f3f46; display: block; }
.header-server-fallback { width: 42px; height: 42px; min-width: 42px; border-radius: 50%; background: #27272a; border: 2px solid #3f3f46; display: flex; align-items: center; justify-content: center; font-weight: bold; color: var(--subtext); }

/* === Favoritos Header === */
.fav-header { display: flex; align-items: center; justify-content: space-between; }
.fav-header h3 { margin: 0; white-space: nowrap; }
.fav-selector { display: flex; gap: 10px; margin-bottom: 20px; justify-content: flex-end; }
.btn-tab, .favlist-btn-tab { padding: 8px 15px; border-radius: 5px; text-decoration: none; background: #27272a; color: var(--subtext); font-weight: bold; cursor: pointer; }
.favlist-btn-tab.active { background: var(--primary); color: white; }
.btn-tab.active { background: var(--primary); color: white; }

/* === Navigation === */
.nav-links { display: flex; gap: 15px; background: var(--card); padding: 5px; border-radius: 10px; }
.nav-btn { background: transparent; border: none; color: var(--subtext); padding: 10px 20px; cursor: pointer; font-weight: 600; border-radius: 8px; transition: 0.3s; text-decoration: none; }
.nav-btn.active { background: var(--primary); color: white; }
.nav-btn:hover:not(.active) { color: white; background: rgba(255,255,255,0.05); }

/* === Inputs === */
select, input[type="text"], input[type="password"], input[type="number"] { background: #27272a; color: white; border: 1px solid #3f3f46; padding: 10px; border-radius: 8px; outline: none; }
.btn-logout { background: #db7c6e; color: white; text-decoration: none; padding: 5px 8px; border-radius: 50%; font-weight: bold; font-size: 1.3em; transition: 0.2s; cursor: pointer; border: none; }

/* === Login === */
.login-box { max-width: 400px; margin: 100px auto; background: var(--card); padding: 40px; border-radius: 15px; text-align: center; box-shadow: 0 10px 25px rgba(0,0,0,0.5); }
.btn-discord { background: #5865F2; color: white; border: none; padding: 12px 0; width: 100%; border-radius: 8px; font-weight: bold; cursor: pointer; transition: 0.2s; text-decoration: none; display: block; margin-bottom: 15px; }
.btn-discord:hover { background: #4752c4; }

/* === Server Grid === */
.server-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; margin-top: 40px; }
.server-card { background: var(--card); border-radius: 12px; padding: 25px; text-align: center; border: 1px solid #27272a; transition: transform 0.2s, border-color 0.2s; display: flex; flex-direction: column; align-items: center; }
.server-card:hover { transform: translateY(-5px); border-color: var(--primary); }
.server-icon { width: 80px; height: 80px; border-radius: 50%; margin-bottom: 15px; object-fit: cover; background: #27272a; display: flex; align-items: center; justify-content: center; font-size: 2em; color: var(--subtext); border: 2px solid #27272a; }
.server-name { font-size: 1.1em; font-weight: bold; margin-bottom: 5px; color: white; }
.server-id { font-size: 0.8em; color: var(--subtext); margin-bottom: 20px; }
.btn-configure { background: var(--primary); color: white; border: none; padding: 10px 0; width: 100%; border-radius: 8px; font-weight: bold; cursor: pointer; transition: 0.2s; }

/* === Search === */
.top-bar { margin-bottom: 20px; position: relative; z-index: 100; }
.search-wrapper { position: relative; width: 100%; }
.search-input { width: 100%; padding: 15px 45px 15px 20px; font-size: 1.1em; border-radius: 12px; border: 1px solid #3f3f46; background: #27272a; color: white; box-sizing: border-box; transition: 0.3s; }
.search-input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(var(--glow-rgb), 0.2); }
.search-dropdown { position: absolute; top: 60px; left: 0; right: 0; background: #27272a; border-radius: 12px; padding: 10px; box-shadow: 0 10px 30px rgba(0,0,0,0.8); display: none; border: 1px solid #3f3f46; }
.result-item { display: flex; align-items: center; padding: 10px; cursor: pointer; border-radius: 8px; }
.result-item:hover { background: #3f3f46; }
.result-item img { width: 40px; height: 40px; border-radius: 6px; margin-right: 15px; object-fit: cover; }
.btn-clear { position: absolute; right: 15px; top: 50%; transform: translateY(-50%); background: none; border: none; color: #888; font-size: 1.2em; cursor: pointer; display: none; }

/* === Dashboard Grid === */
.dashboard-grid { display: grid; grid-template-columns: 350px 1fr; gap: 30px; }
@media (max-width: 850px) { .dashboard-grid { grid-template-columns: 1fr; } .header { flex-direction: column; text-align: center; } }

/* === Card === */
.card { background: var(--card); border-radius: 12px; padding: 25px; box-shadow: 0 4px 10px rgba(0,0,0,0.2); border: 1px solid #27272a; }
.cover-art { width: 100%; aspect-ratio: 1/1; object-fit: cover; border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,0.5); margin-bottom: 20px; }
.track-title { font-size: 1.4em; font-weight: 800; margin-bottom: 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.track-artist { color: var(--subtext); margin-bottom: 20px; font-weight: 500; }

/* === Progress Bar === */
.prog-bar-bg { background: #3f3f46; height: 6px; border-radius: 3px; width: 100%; margin-bottom: 10px; overflow: hidden; }
.prog-bar-fill { background: var(--primary); height: 100%; width: 0%; border-radius: 3px; transition: width 1s linear; }
.timestamps { display: flex; justify-content: space-between; font-size: 0.8em; color: var(--subtext); margin-bottom: 20px; }

/* === Controls === */
.controls { display: flex; justify-content: center; align-items: center; gap: 25px; }
.btn-icon { background: none; border: none; color: var(--subtext); font-size: 1.8em; cursor: pointer; transition: all 0.2s ease; }
.btn-icon:hover { color: white; transform: scale(1.15); }
.btn-control { background: none; border: none; color: var(--subtext); width: 48px; height: 48px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.3em; cursor: pointer; transition: all 0.25s ease; }
.btn-control:hover { color: white; background: rgba(255,255,255,0.08); transform: scale(1.1); }
.btn-control:active { transform: scale(0.95); }
.btn-play { background: var(--primary); color: white; width: 64px; height: 64px; border-radius: 50%; display: flex; align-items: center; justify-content: center; border: none; cursor: pointer; transition: all 0.25s ease; box-shadow: 0 4px 15px rgba(var(--glow-rgb), 0.4); }
.btn-play:hover { transform: scale(1.08); box-shadow: 0 6px 25px rgba(var(--glow-rgb), 0.6); background: var(--primary-hover); }
.btn-play:active { transform: scale(0.95); }
.btn-play svg { width: 24px; height: 24px; fill: white; }
.btn-control svg { width: 22px; height: 22px; fill: currentColor; }

/* === Queue === */
.queue-list { max-height: 600px; overflow-y: auto; }
.queue-row { display: flex; align-items: center; padding: 12px; border-radius: 8px; border-bottom: 1px solid #27272a; transition: 0.2s; }
.queue-row:hover { background: #27272a; }
.q-img { width: 50px; height: 50px; margin-right: 15px; border-radius: 6px; object-fit: cover; }
.q-data { flex-grow: 1; overflow: hidden; }
.q-artist { color: var(--subtext); font-size: 0.85em; }
.btn-mini { border: none; background: #3f3f46; padding: 6px 12px; border-radius: 6px; cursor: pointer; color: white; font-size: 0.9em; }
.btn-mini:hover { background: #52525b; }
.btn-play-fav {background: var(--play-fav);}
.btn-play-fav:hover {background: var(--play-fav-hover);}
.btn-del:hover { background: #ef4444; }

/* === Settings === */
.settings-row { display: flex; justify-content: space-between; align-items: center; padding: 20px 0; border-bottom: 1px solid #27272a; }
.settings-row:last-child { border-bottom: none; }
.setting-label { font-weight: 600; font-size: 1.1em; }
.setting-desc { color: var(--subtext); font-size: 0.9em; margin-top: 5px; }

/* === Volume Slider === */
input[type=range] { -webkit-appearance: none; width: 100%; background: transparent; }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; height: 20px; width: 20px; border-radius: 50%; background: var(--primary); cursor: pointer; margin-top: -8px; box-shadow: 0 0 10px rgba(0,0,0,0.5); }
input[type=range]::-webkit-slider-runnable-track { width: 100%; height: 4px; cursor: pointer; background: #3f3f46; border-radius: 2px; }
