/* public/style.css */
body {
    background-image: url('assets/webUno.jpg'); 
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: #dbdee1;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    height: 100vh;
    overflow: hidden;
}

/* Distribución del Dashboard principal */
.dashboard-container {
    display: flex;
    height: 100vh;
    width: 100vw;
}

/* Barra Lateral (Sidebar) - EFECTO CRISTAL */
.sidebar {
    width: 260px;
    background-color: rgba(43, 45, 49, 0.75); 
    backdrop-filter: blur(12px); 
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    flex-direction: column;
    border-right: 1px solid rgba(255, 255, 255, 0.05); 
}

.sidebar-header {
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.sidebar-header h3 {
    margin: 0;
    color: #f2f3f5;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5); 
}

/* =========================================
   PERFIL DE USUARIO Y SELECCIÓN DE SERVIDOR
   ========================================= */

.user-profile-container {
    padding: 15px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-avatar {
    width: 35px;
    height: 35px;
    border-radius: 50%;
}

.user-role-label {
    font-size: 11px;
    color: #b5bac1;
    text-transform: uppercase;
    font-weight: bold;
}

.user-name-display {
    font-size: 14px;
    font-weight: bold;
    color: #fff;
}

.global-server-select {
    padding: 15px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    background-color: rgba(0,0,0,0.15);
}

.global-server-label {
    font-size: 12px;
    color: #b5bac1;
    display: block;
    margin-bottom: 5px;
    text-transform: uppercase;
    font-weight: bold;
    text-shadow: none; /* Override general label shadow */
}

.global-server-input {
    width: 100%;
    padding: 8px;
    background-color: rgba(30, 31, 34, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    color: #dbdee1;
    font-size: 13px;
    outline: none;
    transition: all 0.3s;
}

/* =========================================
   NAVEGACIÓN LATERAL
   ========================================= */

.nav-links {
    list-style: none;
    padding: 0;
    margin: 20px 0 0 0;
}

.nav-item {
    padding: 14px 20px;
    margin: 4px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    color: #b5bac1;
    transition: all 0.2s ease;
}

.nav-item:hover {
    background-color: rgba(88, 101, 242, 0.2); 
    color: #dbdee1;
}

.nav-item.active {
    background-color: rgba(88, 101, 242, 0.85);
    color: white;
    box-shadow: 0 4px 12px rgba(88, 101, 242, 0.4);
}

/* Área Central de Contenido - EFECTO CRISTAL */
.content-area {
    flex: 1;
    padding: 40px;
    overflow-y: auto;
    background-color: rgba(49, 51, 56, 0.65); 
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

/* Gestión de Vistas Intercambiables */
.view-panel {
    display: none;
    max-width: 800px;
    margin: 0 auto;
}

.view-panel.active {
    display: block;
}

h2 {
    margin-top: 0;
    color: #ffffff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 10px;
    margin-bottom: 30px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.6);
}

/* Formularios y Campos */
.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    font-size: 14px;
    color: #e3e5e8;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

input, textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    background-color: rgba(30, 31, 34, 0.7); 
    color: #dbdee1;
    box-sizing: border-box;
    font-family: inherit;
    font-size: 15px;
    transition: all 0.3s ease;
}

input:focus, textarea:focus {
    outline: none;
    border-color: #5865f2;
    background-color: rgba(30, 31, 34, 0.9);
    box-shadow: 0 0 8px rgba(88, 101, 242, 0.5);
}

textarea {
    resize: vertical;
    height: 120px;
}

/* Elementos de Selección de Color */
.color-picker-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.color-picker-input {
    width: 50px;
    height: 40px;
    padding: 0;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    background-color: transparent;
}

.color-picker-hint {
    font-size: 13px;
    color: #949ba4;
}

button {
    width: 100%;
    padding: 14px;
    background-color: #5865f2;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 10px;
    box-shadow: 0 4px 15px rgba(88, 101, 242, 0.3);
}

button:hover {
    background-color: #4752c4;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(88, 101, 242, 0.5);
}

/* Tablas de Datos (Warns) - PANEL CRISTAL OSCURO */
.table-container {
    background-color: rgba(43, 45, 49, 0.85);
    backdrop-filter: blur(5px);
    border-radius: 6px;
    overflow: hidden;
    margin-top: 20px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.data-table th, .data-table td {
    padding: 14px 20px;
}

.data-table th {
    background-color: rgba(30, 31, 34, 0.8);
    color: #f2f3f5;
    font-size: 14px;
    text-transform: uppercase;
}

.data-table tbody tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: background-color 0.2s;
}

.data-table tbody tr:hover {
    background-color: rgba(255, 255, 255, 0.03); 
}

.data-table tbody tr:last-child {
    border-bottom: none;
}

.btn-danger {
    background-color: #da373c;
    padding: 6px 12px;
    font-size: 13px;
    width: auto;
    margin: 0;
    box-shadow: 0 4px 10px rgba(218, 55, 60, 0.3);
}

.btn-danger:hover {
    background-color: #a92b2f;
    transform: translateY(-1px);
}

/* Tarjeta de Música - PANEL CRISTAL */
.music-card {
    background-color: rgba(43, 45, 49, 0.80);
    backdrop-filter: blur(10px);
    padding: 24px;
    border-radius: 8px;
    border-left: 5px solid #5865f2;
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.music-status {
    font-size: 13px;
    color: #b5bac1;
    margin-bottom: 15px;
}

.status-online {
    color: #2ecc71;
    font-weight: bold;
    text-shadow: 0 0 5px rgba(46, 204, 113, 0.5);
}

.current-track h4 {
    margin: 0 0 6px 0;
    color: #ffffff;
    font-size: 18px;
}

.current-track p {
    margin: 0;
    color: #b5bac1;
}

.queue-section {
    margin-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 15px;
}

.queue-section h3 {
    font-size: 15px;
    color: #f2f3f5;
}

.queue-section ol {
    padding-left: 20px;
    color: #dbdee1;
}

.queue-section li {
    margin-bottom: 8px;
}

/* =========================================
   PANTALLA DE LOGIN (OAUTH2 DISCORD)
   ========================================= */

.login-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(30, 31, 34, 0.9);
    backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-card {
    background-color: #2b2d31;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
    text-align: center;
    max-width: 400px;
    width: 90%;
}

.login-logo-container {
    background-color: #1e1f22;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin: 0 auto 24px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.5);
    border: 4px solid #2b2d31;
}

.login-logo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.login-title {
    margin: 0 0 10px 0;
    color: #f2f3f5;
    font-size: 24px;
    font-weight: 700;
}

.login-subtitle {
    color: #b5bac1;
    margin: 0 0 30px 0;
    font-size: 15px;
    line-height: 1.5;
}

.login-btn {
    background-color: #5865F2;
    color: white;
    border: none;
    font-weight: 600;
    font-size: 16px;
    padding: 14px 24px;
    border-radius: 4px;
    cursor: pointer;
    width: 100%;
    transition: background-color 0.2s ease, transform 0.1s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.login-btn:hover {
    background-color: #4752C4;
}

.login-btn:active {
    transform: translateY(2px);
}