.dashboard-grid{
display:grid;
grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
gap:20px;
margin-top:20px;
}

.card{
background:white;
padding:20px;
border-radius:10px;
box-shadow:0 2px 10px rgba(0,0,0,0.1);
}

.card h3{
margin-top:0;
color:#336cf6;
}

.card p{
font-size:28px;
font-weight:bold;
margin:10px 0;
}

.card input{
width:100%;
height:40px;
margin-bottom:10px;
padding:8px;
border-radius:6px;
border:1px solid #ddd;
}

.card button{
width:100%;
height:40px;
background:#336cf6;
color:white;
border:none;
border-radius:6px;
cursor:pointer;
}

body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    display: flex;
    min-height: 100vh;
}

h2, h3{
    color: #427ff4;
    font-weight: bold;
}

/* SIDEBAR */
.sidebar {
    background-color: #e1e8f9;
    color: white;
    padding: 20px;
    box-sizing: border-box;
    transition: all 0.3s ease;
    width: 250px;
    padding: 20px 0 !important;
}

.logo {
    display: flex;
    justify-content: center;
    margin-bottom: 50px;
    height: 60px;
    align-items: center;
}

.logo-img {
    width: 150px;
    height: 63px;
    object-fit: contain;
}

.menu {
    list-style: none;
    padding: 0 !important;
    margin: 0 !important;
    width: 100%;
}

.menu li {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    cursor: pointer;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    margin: 0 !important;
    transition: all 0.3s ease;
    width: 100% !important;
    box-sizing: border-box;
}

.menu li:hover {
    background-color: rgba(255,255,255,0.1);
}

.menu li i {
    font-size: 18px;
    width: 24px;
    text-align: center;
    margin-right: 10px;
    color: #336cf6;
}

.menu-text {
    display: inline-block;
    font-size: 16px;
    color: #336cf6;
}

/* MAIN LAYOUT */
.main {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

/* TOPBAR */
.topbar {
    background: white;
    padding: 15px;
    display: flex;
    justify-content: flex-end;
    border-bottom: 1px solid #ddd;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #ffffff;
    padding: 8px 14px;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    font-size: 14px;
}

.user-icon {
    font-size: 20px;
    color: #336cf6;
}

.user-email {
    font-weight: 600;
    max-width: 240px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-credits {
    color: #336cf6;
    font-weight: 600;
}

.logout-icon {
    margin-left: 6px;
    color: #777;
    font-size: 16px;
    text-decoration: none;
}

.logout-icon:hover {
    color: #ff4444;
}

/* CONTENT AREA - Two columns layout */


/* COLUMNA DERECHA */
/* CONTENEDOR PRINCIPAL CON FLEX */
.content-wrapper {
    display: flex;
    flex: 1;
    background-color: #f5f5f5;
    box-sizing: border-box;
    width: 100%;
    max-width: 1200px; /* Ajusta este valor según necesites */
    margin: 0 auto; /* Centra el wrapper */
    justify-content: center; /* Centra el contenido cuando el panel está oculto */
}

/* COLUMNA IZQUIERDA */
#content {
    flex: 0 1 800px; /* No crece, pero puede encogerse, base 800px */
    min-width: 0;
    transition: all 0.3s ease;
    padding: 0 !important;
}

/* COLUMNA DERECHA - PANEL DE EDICIÓN */
.side-column {
    width: 350px;
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    position: sticky;
    top: 25px;
    height: fit-content;
    max-height: calc(100vh - 50px);
    overflow-y: auto;
    display: none; /* OCULTO por defecto */
    flex-shrink: 0; /* Evita que se encoja */
}

/* MOSTRAR SOLO CUANDO TIENE LA CLASE visible */
.side-column.visible {
    display: block;
}

/* Cuando el panel está visible, ajustar el contenido */
.side-column.visible + #content {
    /* Si quieres que el contenido se ajuste cuando el panel está visible */
    max-width: 800px;
}

#edit-panel h2 {
    color: #427ff4;
    margin-top: 0;
    margin-bottom: 25px;
    font-size: 22px;
    border-bottom: 2px solid #e1e8f9;
    padding-bottom: 10px;
}

#edit-panel .form-group2 {
    margin-bottom: 20px;
}

#edit-panel .form-group2 label {
    display: block;
    color: #336cf6;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
}

#edit-panel .form-group2 input {
    width: 100%;
    height: 48px;
    padding: 0 15px;
    border: 2px solid #e1e8f9;
    border-radius: 10px;
    background-color: white;
    font-size: 15px;
    box-sizing: border-box;
    transition: all 0.3s;
}

#edit-panel .form-group2 input:focus {
    outline: none;
    border-color: #42a5f5;
    box-shadow: 0 0 0 3px rgba(66, 165, 245, 0.1);
}

#edit-panel .save-btn {
    width: 100%;
    height: 48px;
    background-color: #42a5f5;
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-top: 15px;
}

#edit-panel .save-btn:hover {
    background-color: #1e88e5;
}

#edit-message {
    margin-top: 15px;
    padding: 10px;
    border-radius: 6px;
    font-size: 14px;
}

/* MOBILE EDIT PANEL - Hidden by default */
#mobile-edit-panel {
    display: none;
}

/* ===== ESTILOS PARA EL PANEL MÓVIL ===== */
#mobile-edit-content .form-group2 {
    margin-bottom: 20px;
    width: 100%;
}

#mobile-edit-content .form-group2 label {
    display: block;
    color: #336cf6;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
}

#mobile-edit-content .form-group2 input[type="text"],
#mobile-edit-content .form-group2 input[type="password"] {
    width: 100%;
    height: 48px;
    padding: 0 15px;
    border: 2px solid #e1e8f9;
    border-radius: 10px;
    background-color: white;
    font-size: 15px;
    box-sizing: border-box;
    transition: all 0.3s;
}

#mobile-edit-content .form-group2 input:focus {
    outline: none;
    border-color: #42a5f5;
    box-shadow: 0 0 0 3px rgba(66, 165, 245, 0.1);
}

#mobile-edit-content .save-btn {
    width: 100%;
    height: 48px;
    background-color: #42a5f5;
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-top: 15px;
}

#mobile-edit-content .save-btn:hover {
    background-color: #1e88e5;
}

#mobile-edit-content .delete-btn {
    width: 100%;
    height: 48px;
    background-color: #f44336;
    color: white;
    border: 2px solid #d32f2f;
    border-radius: 10px;
    font-weight: bold;
    font-size: 16px;
    cursor: pointer;
    margin-top: 10px;
}

#mobile-edit-content .delete-btn:hover {
    background-color: #d32f2f;
}

#mobile-edit-content #edit-message {
    margin-top: 15px;
    padding: 10px;
    border-radius: 6px;
    font-size: 14px;
}


/* Tablet styles */
@media (max-width: 992px) and (min-width: 701px) {
    .sidebar {
        width: 180px !important;
    }
    
    .logo-img {
        width: 120px;
        height: 50px;
    }
    
    .menu-text {
        font-size: 14px;
    }
    
    .content-wrapper {
        flex-direction: column;
    }
    
    .side-column {
        width: 100%;
        position: static;
    }
}

/* Mobile styles */
@media (max-width: 700px) {
    .sidebar {
        width: 60px !important;
        padding: 10px 5px !important;
    }
    
    .menu-text {
        display: none !important;
    }
    
    .menu li {
        justify-content: center !important;
        padding: 16px 0 !important;
    }
    
    .menu li i {
        margin-right: 0 !important;
        font-size: 20px !important;
    }
    
    .logo-img {
        width: 40px;
        height: 40px;
    }
    
    .content-wrapper {
        flex-direction: column;
        padding: 15px;
    }
    
    .side-column {
        display: none !important;
    }
    
    #mobile-edit-panel {
        display: block;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: white;
        padding: 20px;
        box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
        transform: translateY(100%);
        transition: transform 0.3s ease;
        z-index: 1000;
        max-height: 80vh;
        overflow-y: auto;
        border-radius: 20px 20px 0 0;
    }
    
    #mobile-edit-panel.show {
        transform: translateY(0);
    }
    
    .user-email {
        max-width: 90px;
    }
    
    .user-info {
        padding: 6px 10px;
        font-size: 13px;
    }
}

/* Device ID container */
.device-id-container {
    display: flex !important;
    align-items: center;
    border-radius: 10px !important;
    overflow: hidden !important;
    height: 48px !important;
    position: relative;
    border-left: 4px solid #42a5f5;
    background-color: rgba(215, 228, 255, 0.3) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 0;
}

.device-id-input {
    flex-grow: 1;
    border: none;
    outline: none;
    font-size: 15px;
    background-color: transparent !important;
    height: 100%;
    padding: 0 16px;
}

.update-btn {
    background-color: #42a5f5 !important;
    color: white !important;
    border: none !important;
    height: 100%;
    padding: 0 20px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    transition: background-color 0.3s !important;
    border-radius: 0 10px 10px 0;
}

.update-btn:hover {
    background-color: #1e88e5 !important;
}

/* Playlist form */
.playlist-form {
    margin-top: 20px;
    border-left: 4px solid #42a5f5;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    background-color: rgba(215, 228, 255, 0.3);
    padding: 20px;
    border-radius: 12px;
}

.form-group {
    margin-bottom: 15px;
}

.form-input {
    width: 100%;
    height: 48px !important;
    padding: 0 15px !important;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
    background-color: #d7e4ff !important;
    font-size: 15px;
    box-sizing: border-box;
}

.form-input:focus {
    border-color: #42a5f5;
    box-shadow: 0 0 0 2px rgba(66, 165, 245, 0.2);
    outline: none;
}

/* Type selector */
.type-selector {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.type-btn {
    flex: 1;
    height: 48px;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
    background: transparent;
    color: #555;
    font-weight: 600;
    cursor: pointer;
}

.type-btn.active {
    background: #42a5f5;
    color: white;
    border-color: #42a5f5;
}

.submit-btn {
    background-color: #42a5f5;
    color: white;
    border: none;
    height: 48px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    font-size: 16px;
}

.submit-btn:hover {
    background-color: #1e88e5;
}

/* Playlists grid */
.playlists-grid {
    display: flex !important;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 20px;
    width: 100% !important;
}

.playlist-card {
    background-color: rgba(215, 228, 255, 0.3);
    border-left: 4px solid #42a5f5;
    padding: 20px;
    border-radius: 8px;
    width: 100% !important;
    display: flex;
    flex-direction: column;
    gap: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.playlist-card > div {
    display: flex;
    align-items: center;
}

.span-resposive {
    word-break: break-all;
    overflow-wrap: break-word;
}

/* Resto de estilos existentes... */
        .mobile-edit-header {
          display: flex;
          justify-content: flex-end;
          align-items: center;
          padding: 8px;
        }
        
        .close-btn {
          font-size: 24px;
          cursor: pointer;
          color: #555;
        }
        
        .close-btn:hover {
          color: red;
        }
        
        /* ===== BUY PAGE ===== */

/* contenedor de planes */
.plans-container {
    display: flex;
    gap: 20px;
    margin-top: 20px;
    justify-content: left;
}

/* tarjetas de plan */
.plan-option {
    background-color: rgba(215, 228, 255, 0.2) !important;
    border-radius: 10px;
    padding: 12px;
    width: 150px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.plan-option p {
    color: black;
    font-size: 18px;
    font-weight: bold;
}

.plan-option:hover {
    background-color: rgba(215, 228, 255, 1) !important;
}

.plan-option.selected {
    background-color: rgba(215, 228, 255, 1) !important;
    border-left: 2px solid #42a5f5;
}

/* botón stripe */
#submit {
    padding: 10px 20px;
    border-radius: 10px !important;
    overflow: hidden !important;
    height: 48px !important;
    position: relative;
    border-left: 2px solid #42a5f5;
    border-right: 2px solid #42a5f5;
    background-color: rgba(215, 228, 255, 0.3) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* spinner stripe */
.spinner {
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-top: 2px solid black;
  border-radius: 50%;
  width: 14px;
  height: 14px;
  animation: spin 0.8s linear infinite;
  display: inline-block;
  vertical-align: middle;
  margin-right: 8px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* LOGIN */

.center-card{
max-width:400px;
margin:40px auto;
padding:28px;
background:#ffffff;
border-radius:12px;
box-shadow:0 6px 18px rgba(0,0,0,0.2);
text-align:center;
}

.center-card h2{
margin-bottom:16px;
font-size:22px;
}

.message{
padding:12px 16px;
border-radius:12px;
margin-bottom:16px;
font-weight:600;
}

.message.error{
background:#ffcccc;
color:#800000;
}

.message.success{
background:#ccffcc;
color:#006600;
}

.auth-form{
display:flex;
flex-direction:column;
gap:16px;
}

.auth-form input{
padding:16px 18px;
border-radius:12px;
border:1px solid #cccccc;
background-color:#e6f0ff;
font-size:16px;
}

.auth-form input:focus{
outline:none;
border-color:#0077cc;
background-color:#cce0ff;
}

.form-actions{
display:flex;
gap:12px;
}

.form-actions button{
flex:1;
padding:14px 0;
border-radius:12px;
font-size:16px;
font-weight:600;
border:none;
cursor:pointer;
}

.form-actions button[value="login"]{
background:#0077cc;
color:white;
}

.form-actions button[value="register"]{
background:#ff6b6b;
color:white;
}

/* ============================= */
/* MOBILE FIX PANEL RESPONSIVE  */
/* ============================= */

@media (max-width:700px){

/* layout general */

body{
display:flex;
}

/* SIDEBAR solo iconos */

.sidebar{
width:60px !important;
min-width:60px !important;
padding:10px 5px !important;
}

/* ocultar textos */

.menu-text{
display:none !important;
}

/* centrar iconos */

.menu li{
justify-content:center !important;
padding:16px 0 !important;
}

.menu li i{
margin-right:0 !important;
font-size:20px !important;
}

/* logo pequeño */

.logo-img{
/*background-image:url('https://zumplayer.com/wp-content/uploads/2025/04/ic_launcher.png') !important;*/
width:36px !important;
height:36px !important;
background-size:cover !important;
}

/* CONTENT ocupa el resto de pantalla */

/*.content{*/
/*flex:1 !important;*/
/*width:calc(100vw - 60px) !important;*/
/*max-width:none !important;*/
/*margin:0 !important;*/
/*padding:20px !important;*/
/*overflow-x:hidden !important;*/
/*box-sizing:border-box !important;*/
/*}*/

/* evitar que formularios se salgan */

.playlist-form{
width:100% !important;
box-sizing:border-box;
}

/* inputs nunca más grandes que pantalla */

input,
button,
select{
max-width:100% !important;
box-sizing:border-box;
}

/* grid dashboard en móvil */

.dashboard-grid{
grid-template-columns:1fr !important;
}

/* planes buy responsive */

.plans-container{
flex-direction:column !important;
gap:10px !important;
}

.plan-option{
width:100% !important;
}

@media (max-width:700px){

.plans-container{
width:100%;
box-sizing:border-box;
padding:0;
}

.plan-option{
width:100%;
max-width:100%;
box-sizing:border-box;
padding:12px 16px;
}

}
}
/* USER INFO TOPBAR */

.user-info{
display:flex;
align-items:center;
gap:10px;

background:#ffffff;
padding:8px 14px;
border-radius:12px;

box-shadow:0 2px 6px rgba(0,0,0,0.08);

font-size:14px;
}

/* icono */

.user-icon{
font-size:20px;
color:#336cf6;
}

/* email */

.user-email{
font-weight:600;
max-width:240px;
white-space:nowrap;
overflow:hidden;
text-overflow:ellipsis;
}

/* credits */

.user-credits{
color:#336cf6;
font-weight:600;
}

/* logout */

.logout-icon{
margin-left:6px;
color:#777;
font-size:16px;
text-decoration:none;
}

.logout-icon:hover{
color:#ff4444;
}

/* MOBILE */

@media (max-width:700px){

.user-email{
max-width:90px;
}

.user-info{
padding:6px 10px;
font-size:13px;
}

}

@media (max-width:700px){

.dashboard-grid{
width:100%;
max-width:100%;
grid-template-columns:1fr;
}

.card{
width:100%;
box-sizing:border-box;
overflow:hidden;
}

/* permitir romper emails largos */

.card p{
font-size:28px;
font-weight:bold;
margin:10px 0;

max-width:100%;
white-space:nowrap;
overflow:hidden;
text-overflow:ellipsis;
}

}
/* Logo styles */
/* Estilo general de la sidebar y los iconos */
.sidebar {
    width: 230px;
    background-color: #e1e8f9;
    padding: 20px;
    box-sizing: border-box;
}

.menu li {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    cursor: pointer;
    color: #336cf6;
    transition: all 0.3s ease;
}

.menu li i {
    font-size: 18px; /* Tamaño de icono para PC */
    margin-right: 10px;
}

.menu-text {
    font-size: 16px;
    color: #336cf6;
}

/* Mostrar iconos y texto en PC */
@media (min-width: 701px) {
    .menu li i {
        font-size: 18px; /* Tamaño de icono más grande para PC */
    }

    .menu-text {
        display: inline-block; /* Mostrar texto junto al icono */
    }
}

/* Para móviles: ocultar texto y solo mostrar iconos */
@media (max-width: 700px) {
    .menu-text {
        display: none; /* Ocultar texto en dispositivos móviles */
    }

    .menu li i {
        font-size: 28px; /* Aumentar el tamaño de los iconos en mobile */
        color: #336cf6;
    }
}

/* Icono para logo en el menú */
.logo-img {
    width: 150px;
    height: 63px;
    object-fit: contain;
}

/* ===== MOBILE DASHBOARD ===== */
@media (max-width: 700px) {
    
    /* Grid de 2 columnas para los 4 cards - SOLO en dashboard */
    .dashboard-page .dashboard-grid {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 12px !important;
    }
    
    .dashboard-page .dashboard-grid .playlist-card {
        padding: 15px !important;
    }
    
    .dashboard-page .dashboard-grid .playlist-card h3 {
        font-size: 14px !important;
        margin-bottom: 5px !important;
    }
    
    .dashboard-page .dashboard-grid .playlist-card p {
        font-size: 24px !important;
    }
    
    /* Quick activation - SOLO en dashboard */
    .dashboard-page .playlist-form .device-id-container {
        flex-direction: column !important;
        height: auto !important;
        border-radius: 10px !important;
        overflow: hidden !important;
    }
    
    .dashboard-page .playlist-form .device-id-input {
        width: 100% !important;
        height: 48px !important;
        border-radius: 10px 10px 0 0 !important;
        padding: 0 15px !important;
    }
    
    .dashboard-page .playlist-form .update-btn {
        width: 100% !important;
        height: 48px !important;
        border-radius: 0 0 10px 10px !important;
        font-size: 14px !important;
        white-space: normal !important;
        padding: 0 10px !important;
    }
}

/* ===== FIX PARA ADD PAGE ===== */
#addPlaylistForm {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

#addPlaylistForm .device-id-container {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    width: 100% !important;
    min-width: 0 !important; /* Permite que se encoja */
    height: 48px !important;
    border-left: 4px solid #42a5f5 !important;
    background-color: rgba(215, 228, 255, 0.3) !important;
    border-radius: 10px !important;
    overflow: hidden !important;
    padding: 0 !important;
    box-sizing: border-box !important;
}

#addPlaylistForm .device-id-container {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    width: 100% !important;
    min-width: 0 !important;
    height: 48px !important;
    border-left: 4px solid #42a5f5 !important;
    background-color: rgba(215, 228, 255, 0.3) !important;
    border-radius: 10px !important;
    overflow: hidden !important;
    padding: 0 !important;
    box-sizing: border-box !important;
}

#addPlaylistForm .device-id-input {
    flex: 0 1 auto !important;  /* CAMBIADO: no crece, pero puede encogerse */
    min-width: 30px !important;  /* Mínimo muy pequeño */
    width: auto !important;
    height: 100% !important;
    padding: 0 8px !important;
    border: none !important;
    background-color: transparent !important;
    font-size: 14px !important;
    box-sizing: border-box !important;
}

#addPlaylistForm .update-btn {
    flex: 0 0 auto !important;  /* No crece ni se encoge */
    width: auto !important;
    min-width: 70px !important;  /* Ancho fijo para el botón */
    height: 100% !important;
    padding: 0 12px !important;
    background-color: #42a5f5 !important;
    color: white !important;
    border: none !important;
    font-weight: 700 !important;
    font-size: 13px !important;
    border-radius: 0 10px 10px 0 !important;
    white-space: nowrap !important;
    box-sizing: border-box !important;
}

/* Mobile */
@media (max-width: 700px) {
    #addPlaylistForm .device-id-input {
        flex: 0 1 auto !important;
        min-width: 20px !important;
        padding: 0 5px !important;
        font-size: 12px !important;
    }
    
    #addPlaylistForm .update-btn {
        min-width: 60px !important;
        padding: 0 8px !important;
        font-size: 11px !important;
    }
}


/* ======================================== */
/* ========== ESPECÍFICO PARA DASHBOARD == */
/* ======================================== */
.dashboard-page .playlist-form {
    padding: 20px;
}

/* Quick activation en móvil - SOLO dashboard */
@media (max-width: 700px) {
    .dashboard-page .playlist-form .device-id-container {
        flex-direction: column !important;
        height: auto !important;
    }
    
    .dashboard-page .playlist-form .device-id-input {
        width: 100% !important;
        border-radius: 10px 10px 0 0 !important;
    }
    
    .dashboard-page .playlist-form .update-btn {
        width: 100% !important;
        border-radius: 0 0 10px 10px !important;
    }
}

/* ======================================== */
/* ========== DEVICE ID CONTAINER ========= */
/* ======================================== */

/* Este es el contenedor que está fuera del formulario */
.device-id-container {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    width: 100% !important;
    min-width: 0 !important;
    height: 48px !important;
    border-left: 4px solid #42a5f5 !important;
    background-color: rgba(215, 228, 255, 0.3) !important;
    border-radius: 10px !important;
    overflow: hidden !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    margin-bottom: 15px !important;
}

.device-id-container .device-id-input {
    flex: 1 1 auto !important;
    min-width: 30px !important;
    height: 100% !important;
    padding: 0 8px !important;
    border: none !important;
    background-color: transparent !important;
    font-size: 14px !important;
    box-sizing: border-box !important;
}

.device-id-container .update-btn {
    flex: 0 0 auto !important;
    min-width: 70px !important;
    height: 100% !important;
    padding: 0 12px !important;
    background-color: #42a5f5 !important;
    color: white !important;
    border: none !important;
    font-weight: 700 !important;
    font-size: 13px !important;
    border-radius: 0 10px 10px 0 !important;
    white-space: nowrap !important;
    box-sizing: border-box !important;
}

/* ======================================== */
/* ========== FORMULARIO ADD ============== */
/* ======================================== */

#addPlaylistForm {
    width: 100%;
    box-sizing: border-box;
    margin-top: 0;
}

#addPlaylistForm .playlist-form {
    padding: 20px;
    margin-top: 0;
}

/* ======================================== */
/* ========== MOBILE ===================== */
/* ======================================== */

@media (max-width: 700px) {
    .device-id-container .device-id-input {
        min-width: 20px !important;
        padding: 0 5px !important;
        font-size: 12px !important;
    }
    
    .device-id-container .update-btn {
        min-width: 60px !important;
        padding: 0 8px !important;
        font-size: 11px !important;
    }
}

/* ===== WHATSAPP FLOATING BUTTON ===== */
/* ===== WHATSAPP STICKY BOTTOM ===== */
.whatsapp-sticky {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #336cf6;
    padding: 10px;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    /*box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2),*/
    /*            0 0 0 2px rgba(255, 255, 255, 0.1) inset;*/
    z-index: 9999;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
    /*border: 3px solid rgba(255, 255, 255, 0.3);*/
}


/* Móvil */
@media (max-width: 700px) {
    .whatsapp-sticky {
        width: 20px;
        height: 20px;
        bottom: 20px;
        left: 12px;
        font-size: 24px;
    }
    
    .whatsapp-sticky::after {
        display: none; /* Ocultar tooltip en móvil */
    }
}

/* Corrección para los paneles inferiores en Mobile */
@media (max-width: 700px) {
    .bottom-panels-container {
        gap: 20px !important; /* Mantiene separación vertical entre ellos al apilarse */
        width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        box-sizing: border-box;
    }

    .bottom-panels-container .playlist-form {
        flex: 1 1 100% !important; /* Fuerza a que cada panel ocupe todo el ancho */
        min-width: 0 !important;    /* Permite que el panel se encoja correctamente */
        width: 100% !important;
        box-sizing: border-box;     /* Asegura que el padding no "empuje" el panel hacia afuera */
    }
}


/* Ajuste específico para que nada toque el borde derecho en móvil */
@media (max-width: 700px) {
    /* Forzamos a que el contenedor principal respete el padding */
    .content {
        padding: 15px !important;
        overflow-x: hidden; /* Evita el scroll lateral */
    }

    /* Ajustamos el grid para que las tarjetas no se estiren de más */
    .dashboard-grid {
        display: flex;
        flex-direction: column;
        gap: 15px;
        width: 100%;
    }

    .card {
        width: 100% !important;
        box-sizing: border-box !important; /* Crucial para que el padding no sume al ancho */
        margin: 0 0 10px 0 !important;
    }

    /* Arreglo para los paneles de Send Credits y Change Host */
    .card input, .card button {
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
}
/* ===== FIX PARA PANEL STICKY EN PC ===== */
.content-wrapper {
    display: flex;
    align-items: flex-start !important; /* Importante para sticky */
    min-height: 100vh; /* Asegura altura suficiente */
}

.side-column {
    position: sticky !important;
    top: 25px !important;
    margin-left: 16px !important;
    align-self: flex-start !important;
    height: fit-content !important;
    max-height: calc(100vh - 50px) !important;
    overflow-y: auto !important;
}

/* Estilos para notas en página Add */
.note-display {
    transition: all 0.2s;
    word-break: break-word;
    white-space: pre-wrap;
}

.note-display:hover {
    background: #fff0e0 !important;
}

.note-edit textarea:focus {
    outline: none;
    border-color: #ff9800 !important;
    box-shadow: 0 0 0 3px rgba(255, 152, 0, 0.1);
}
