/* Style global */
html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    width: 100%;
    background: linear-gradient(135deg, #1f1f1f, #3f0071);
    font-family: 'Arial', sans-serif;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-height: 100%;
    overflow-y: auto;
}

/* Header */
header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    text-shadow: 0 0 10px #FF1493, 0 0 20px #FF69B4;
    box-sizing: border-box;
}

header .logo {
    font-size: 1.5rem;
    font-weight: bold;
}

header .connexion {
    background: #FF1493;
    color: white;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
}

/* Conteneur principal */
h1 {
    padding-top: 10vh!important; /* Ajout d'un margin-top pour compenser la hauteur du header fixe */
    text-align: center;
    font-size: 3rem;
    color: #ffffff;
    text-shadow: 0 0 10px #FF1493, 0 0 20px #FF69B4;
    margin: 20px 0;
}

/* Style de table */
table {
    width: 95%;
    margin: 20px 0;
    border-collapse: collapse;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 10px;
    overflow: hidden;
}

th, td {
    padding: 15px;
    font-size: 1.1rem;
    color: white;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

th {
    background-color: rgba(255, 255, 255, 0.1);
    text-transform: uppercase;
}

tr:hover {
    background-color: rgba(255, 255, 255, 0.1);
    cursor: pointer;
}

td input {
    background: transparent;
    color: white;
    border: none;
    width: 90%;
    font-size: 1.1rem;
    padding: 5px;
    border-radius: 5px;
    transition: background 0.3s ease;
}

td input:focus {
    background: rgba(255, 255, 255, 0.2);
}

/* Boutons d'édition et suppression */
button.edit-btn, button.delete-btn {
    background: transparent;
    color: #FF1493;
    font-size: 1.3rem;
    border: none;
    cursor: pointer;
    transition: color 0.2s ease;
}

button.edit-btn:hover, button.delete-btn:hover {
    color: #FF69B4;
}

/* Conteneur des boutons */
button {
    margin: 0 10px;
}

/* Ajout d'un effet néon */
@keyframes flicker {
    0%, 49%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

/* Responsivité */
@media screen and (max-width: 1024px) {
    header {
        font-size: 1.8rem;
    }

    .connexion {
        font-size: 1rem;
        padding: 0.4rem 1rem;
    }

    table {
        font-size: 1rem;
    }

    td input {
        font-size: 1rem;
    }
}

@media screen and (max-width: 600px) {
    header {
        font-size: 1.5rem;
    }

    .connexion {
        font-size: 1rem;
        padding: 0.3rem 0.8rem;
    }

    table {
        font-size: 0.9rem;
    }

    td input {
        font-size: 0.9rem;
    }
}

.playlist-container {
    max-height: 400px; /* Hauteur maximale du tableau */
    overflow-y: auto;  /* Permet le défilement vertical */
    display: flex;
    justify-content: center;
    margin-top: 10px;
}

th:first-child {
    background-color: transparent; /* Enlève le fond */
    max-width: 20px;
}
  
td:first-child {
    background-color: transparent;
    border: none;
    text-align: center;
    padding: 0;
}

.container {
    z-index: 1;
    width: 100%;
}

.centerPlayListSelect {
    display: flex;
    margin: 0 auto;
} 

body::before {
    height: 100% !important     ;
}

.neon-button {
    background: linear-gradient(135deg, #ff0077, #7700ff);
    color: white;
    padding: 15px 30px;
    font-size: 1.2rem;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    text-shadow: 0 0 5px #fff;
    box-shadow: 0 0 10px #ff0077, 0 0 20px #7700ff;
    transition: transform 0.3s, box-shadow 0.3s;
    min-width: 150px;
    display: block;
    margin: 0 auto;
    margin-top: 20px;
}

.neon-button:hover {
    transform: scale(1.1);
    box-shadow: 0 0 15px #ff0077, 0 0 30px #7700ff;
}