@font-face {
    font-family: 'font';
    src: url(Fonts/Roboto-Medium.ttf) format('truetype');
    font-weight: normal;
    font-style: normal;
}

*{
box-sizing: border-box;
margin: 0;
padding: 0;
}

main{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    min-height: 100vh;
    padding-top: 60px;
}

.sidebar{
    position: fixed;
    left: -250px;
    top: 0;
    width: 250px;
    height: 100vh;
    background: #000000;
    transition: all 0.5s ease;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    padding: 60px 20px 20px 20px;
    box-shadow: 5px 0px 15px rgba(0,0,0,0.5);
}

.sidebar.active {
    left: 0;
}

.sidebar-content {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.sidebar-content h2 {
    color: #FCA311;
    font-size: 13px;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #FCA311;
}

.sidebar-footer {
    margin-top: auto;
    padding-bottom: 20px;
    border-top: 1px solid rgba(252, 163, 17, 0.2);
    text-align: center;
}

.titlebar {
  -webkit-app-region: drag;
}

.titlebar button {
    -webkit-app-region: no-drag;
}

#menuToggle {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 10000;
    cursor: pointer;
    background: #000000;
    padding: 10px;
    border-radius: 12px;
    border: 1px solid #FCA311;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
    -webkit-app-region: no-drag;
}

#menuToggle:hover {
    transform: scale(1.1);
}

#homeLogo {
    width: 25px;
    height: 25px;
}

.window-controls {
    position: absolute;
    top: 15px;
    right: 20px;
    display: flex;
    gap: 15px;
    z-index: 10000;
    -webkit-app-region: no-drag;
}

.control-btn {
    background:none;
    border: none;
    cursor: pointer;
    width: 18px;
    height: 18px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
    -webkit-app-region: no-drag;
}

.control-btn img {
    width: 18px;
    height: 18px;
}

.control-btn:hover {
    transform: scale(1.2);
}

#homeView {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    padding-bottom: 30px;
    padding: 20px 40px 30px 40px;
}

#fileViewHeader {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding: 10px 0;
    border-bottom: 1px solid #FCA311;
    width: 100%;
}

#fileViewHeader h2 {
    font-size: 18px;
    letter-spacing: 2px;
    color: #FCA311;
    text-transform: uppercase;
    margin: 0;
}

#fileView {
    width: 100%;
    max-width: 100%;
    padding: 20px 40px;
    margin: 0 auto;
    box-sizing: border-box;
}

.container {
    display: flex;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.main-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    transition: margin-left 0.5s ease;
}

body{
background: #14213D;
color: #FCA311;
font-family: 'font', Arial, sans-serif;
text-align:center;
}

button, input, select, label {
    font-family: 'font', Arial, sans-serif;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 50px;
    background: #000000;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9998;
    border-bottom: 2px solid #FCA311;
}

header h1 {
    margin-top: 0;
    text-align: center;
    width: 100%;
    font-size: 22px;
    letter-spacing: 3px;
    color: #FCA311;
}

.album-cover-container {
    width: min(320px, 45vh);
    height: min(320px, 45vh);
    background-color: #000000;
    margin: 20px auto 15px auto;
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

#cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: opacity 0.3s ease;
}

#cover[src=""],
#cover:not([src]) {
    opacity: 0;
}

#musicTitle {
    color: #FCA311;
    font-size: 24px;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

#addFilesBtn, #addPlayListBtn, #btnBackToPlaylists {
background-color: #FCA311;
color: #000000;
font-size: 15px;
padding: 8px 15px;
border-radius: 5px;
border: none;
cursor: pointer;
font-weight: bold;
transition: 0.3s;
width: auto;
}

#addFilesBtn:hover, #addPlayListBtn:hover {
    transform: scale(1.05);
    background-color: #ffb833;
}

#controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 25px;
    margin: 15px 0;
}

#controls button {
    background: none !important;
    border: none !important;
    padding: 0;
    width: auto;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

#controls button img {
    width: 35px;
    height: 35px;
    image-rendering: -webkit-optimize-contrast; 
    transform: translateZ(0);
    backface-visibility: hidden;
    filter: blur(0.6px) contrast(150%); 
    transition: transform 0.3s ease, filter 0.3s ease;
}

#playPauseBtn img {
    width: 65px;
    height: 65px;
}

#controls button:hover img {
    transform: scale(1.2);
    filter: blur(0.4px) contrast(150%);
}

.action-btn {
    background-color: #FCA311 !important;
    color: #000000 !important;
    border: none;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    margin-right: 5px;
}

.action-btn:hover {
    background-color: #ffffff !important;
}

.active-control {
    filter: blur(0.6px) contrast(150%) drop-shadow(0px 0px 5px #FCA311) !important;;
}

#btnHome, #btnFichier, #btnPlaylist {
    cursor: pointer;
    color: #FCA311;
    font-size: 15px;
    letter-spacing: 1px;
    padding: 12px 5px;
    border-bottom: 1px solid rgba(252, 163, 17, 0.1);
    transition: all 0.2s ease;
}

#btnHome:hover, #btnFichier:hover, #btnPlaylist:hover {
    color: #ffb833;
    padding-left: 10px;
}

#btnParametre{
    margin-top: auto;
    color: #FCA311;
    cursor: pointer;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

#btnParametre img {
    width: 20px;
    height: 20px;
}

button:hover {
transform: scale(0.9);
}

ul{
list-style:none;
padding:0;
}

li{
padding: 5px;
cursor: pointer;
font-size: 15px;
}

li:hover{
background: #14213D;
}

/* Volume */
#volumeContainer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 90%;
    max-width: 200px;
    margin: 10px auto 20px auto;
}

#volume {
    -webkit-appearance: none;
    appearance: none;
    width: 120px;
    height: 6px;
    background: #444;
    border-radius: 5px;
    cursor: pointer;
    outline: none;
}

#volume::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    background: #FCA311;
    border-radius: 50%;
    cursor: pointer;
}


/* La barre de progression Volume - Music */

#progressBarContainer {
flex: 1;
height: 6px;
background-color: #444;
border-radius: 5px;
cursor: pointer;
position: relative;
margin: 0 10px;
}

#progressContainer{
display:flex;
align-items:center;
justify-content:center;
gap:10px;
width: 85%;
max-width: 85%;
margin: 0 auto 15px auto;
}

#progress {
width: 0%;
height: 100%;
background-color: #FCA311;
border-radius: 5px;
transition: width 0.2s linear;
position: relative;
}

#progress::after {
    content: "";
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    background-color: #FCA311;
    border-radius: 50%;
}

/* Playlist */

#playlistList {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 30px;
    justify-content: flex-start;
    padding: 0 30px;
}

.playlist-item {
    width: 150px;
    height: 150px;
    background-color: #000000;
    border: 2px solid #FCA311;
    color: #FCA311;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    cursor: pointer;
    font-weight: bold;
    text-align: center;
    padding: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0,0,0,0.5);
    position: relative;
}

.playlist-menu-btn {
    background: transparent;
    border: none;
    color: #FCA311;
    font-size: 16px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
    letter-spacing: 2px;
    transition: background 0.2s ease;
    -webkit-app-region: no-drag;
}

.playlist-menu-btn:hover {
    background: rgba(252, 163, 17, 0.2);
    transform: none;
}

.playlist-context-menu {
    position: fixed;
    background: #000000;
    border: 1px solid #FCA311;
    border-radius: 8px;
    z-index: 99999;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.5);
}

.playlist-context-menu button {
    display: block;
    width: 100%;
    padding: 10px 20px;
    background: transparent;
    border: none;
    color: #FCA311;
    font-family: 'font', Arial, sans-serif;
    font-size: 13px;
    text-align: left;
    cursor: pointer;
    transition: background 0.2s ease;
}

.playlist-context-menu button:hover {
    background: rgba(252, 163, 17, 0.15);
    transform: none;
}

.playlist-item:hover {
    background: #FCA311;
    color: #000000;
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

#modalOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
}

#modalBox {
    background: #14213D;
    border: 2px solid #FCA311;
    border-radius: 16px;
    padding: 30px;
    width: 320px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

#modalTitle {
    color: #FCA311;
    font-size: 18px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

#modalMusicName {
    color: #FCA311;
    font-size: 13px;
}

#modalButtons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

#modalConfirm {
    background: #FCA311;
    color: #000000;
    border: none;
    padding: 10px 25px;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

#modalConfirm:hover {
    background: #ffb833;
    transform: scale(1.05);
}

#modalCancel {
    background: #cc0000;
    color: white;
    border: none;
    padding: 10px 25px;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

#modalCancel:hover {
    background: #ff3333;
    transform: scale(1.05);
}

/* =============================================
   GESTION DES HAUTEURS POUR LE SCROLL
   ============================================= */

#fileView,
#playListView,
#playlistDetailView {
    height: calc(100vh - 60px);
    overflow-y: auto;
}

/* =============================================
   SCROLLBAR GLOBALE & DYNAMIQUE
   ============================================= */

::-webkit-scrollbar {
    width: 14px; 
    background-color: transparent;
}

::-webkit-scrollbar-track {
    background: #000000;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background-color: #FCA311;
    border-radius: 10px;
    /* L'ASTUCE : On met une grosse bordure noire (de la couleur du fond) 
       pour "écraser" la couleur orange et la rendre fine par défaut */
    border: 4px solid #000000;
    background-clip: padding-box;
}

::-webkit-scrollbar-thumb:hover {
    background-color: #ffb833;
    /* On affine la bordure : la couleur orange prend plus de place ! */
    border: 2px solid #000000;
}

/* Modale Création d'une playlist */
#modalCreatePlaylist {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
}

#modalCreateBox {
    background: #14213D;
    border: 2px solid #FCA311;
    border-radius: 16px;
    padding: 30px;
    width: 320px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

#modalCreateTitle {
    color: #FCA311;
    font-size: 18px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

#newPlayListName {
    background: #14213D;
    color: #FCA311;
    border: 1px solid #FCA311;
    border-radius: 8px;
    padding: 10px;
    font-size: 14px;
    width: 100%;
    outline: none;
}

#modalCreateButtons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

#modalCreateConfirm {
    background: #FCA311;
    color: #000000;
    border: none;
    padding: 10px 25px;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

#modalCreateConfirm:hover {
    background: #ffb833;
    transform: scale(1.05);
}

#modalCreateCancel {
    background: #cc0000;
    color: white;
    border: none;
    padding: 10px 25px;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

#modalCreateCancel:hover {
    background: #ff3333;
    transform: scale(1.05);
}

/* Largeur des colonnes du tableau Fichier */
#fileTable th:nth-child(1),
#fileTable td:nth-child(1) {
    width: 50%;
}

#fileTable th:nth-child(2),
#fileTable td:nth-child(2) {
    width: 100px;
    text-align: center;
}

#fileTable th:nth-child(3),
#fileTable td:nth-child(3) {
    width: 120px;
    text-align: center;
}

#fileTable th:nth-child(4),
#fileTable td:nth-child(4) {
    width: 120px;
    text-align: center;
}

/* Page Playlist */
#playListView {
    width: 100%;
    max-width: 100%;
    padding: 20px 40px;
    margin: 0 auto;
}

#playlistViewHeader {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding: 10px 0;
    border-bottom: 1px solid #FCA311;
    width: 100%;
}

#playlistViewHeader h2 {
    font-size: 18px;
    letter-spacing: 2px;
    color: #FCA311;
    text-transform: uppercase;
    margin: 0;
}

/* Detail Playlist */
#playlistDetailView {
    width: 100%;
    max-width: 100%;
    padding: 20px 40px;
    margin: 0 auto;
}

#playlistDetailView h2 {
    font-size: 18px;
    letter-spacing: 2px;
    color: #FCA311;
    text-transform: uppercase;
    margin: 10px 0 20px 0;
}

#playlistSongsTable {
    width: 100%;
    border-collapse: collapse;
}

#playlistSongsTable thead th {
    color: #FCA311;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 13px;
    padding: 10px 15px;
    text-align: left;
    border-bottom: 2px solid #FCA311;
}

#playlistSongsTable tbody tr:hover {
    background: rgba(252, 163, 17, 0.1);
}

#playlistSongsTable tbody td {
    padding: 10px 15px;
    color: #FCA311;
    font-size: 14px;
    vertical-align: middle;
}

#playlistDetailHeader {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    width: 100%;
    padding: 10px 0;
    border-bottom: 1px solid #FCA311;
}

#playlistDetailHeader h2 {
    flex: 1;
    text-align: center;
    margin: 0;
    font-size: 18px;
    letter-spacing: 2px;
    color: #FCA311;
    text-transform: uppercase;
}

/* Page des parametres */

#parametreView {
    display: none;
    width: 100%;
    max-width: 100%;
    padding: 20px 40px;
    margin: 0 auto;
    height: calc(100vh - 60px);
    overflow-y: auto;
}

#parametreHeader {
    margin-bottom: 30px;
    padding: 10px 0;
    border-bottom: 1px solid #FCA311;
}

#parametreHeader h2 {
    font-size: 18px;
    letter-spacing: 2px;
    color: #FCA311;
    text-transform: uppercase;
    margin: 0;
    text-align: left;
}


.parametre-section {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(252, 163, 17, 0.2);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}

.parametre-section-title {
    color: #FCA311;
    font-size: 15px;
    letter-spacing: 1px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(252, 163, 17, 0.2);
    text-align: left;
}

.parametre-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid rgba(252, 163, 17, 0.1);
}

.parametre-item:last-child {
    border-bottom: none;
}

.parametre-item label {
    color: #FCA311;
    font-size: 14px;
    text-align: left;
}

.parametre-value {
    color: rgba(252, 163, 17, 0.7);
    font-size: 14px;
}

.parametre-control {
    display: flex;
    align-items: center;
    gap: 10px;
}

#defaultVolume {
    -webkit-appearance: none;
    appearance: none;
    width: 120px;
    height: 6px;
    background: #444;
    border-radius: 5px;
    cursor: pointer;
    outline: none;
}

#defaultVolume::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    background: #FCA311;
    border-radius: 50%;
    cursor: pointer;
}

#defaultVolumeValue {
    color: #FCA311;
    font-size: 13px;
    min-width: 40px;
    text-align: right;
}

@media (max-width: 850px) {
    .album-cover-container {
        width: 220px;
        height: 220px;
    }

    #musicTitle {
        font-size: 18px;
    }

    #controls {
        gap: 15px;
    }

    #controls button img {
        width: 28px;
        height: 28px;
    }

    #playPauseBtn img {
        width: 50px;
        height: 50px;
    }

    #fileView,
    #playListView,
    #playlistDetailView,
    #parametreView {
        padding: 15px 20px;
    }
}

#addFolderBtn {
    background-color: #FCA311;
    color: #000000;
    font-size: 15px;
    padding: 8px 15px;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    font-weight: bold;
    transition: 0.3s;
}

#addFolderBtn:hover {
    transform: scale(1.05);
    background-color: #ffb833;
}

/* =============================================
    TABLEAU FICHIERS — séparations et style
   ============================================= */

#fileTable {
    width: 100%;
    border-collapse: collapse;
}

#fileTable thead th {
    color: #FCA311;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 13px;
    padding: 10px 15px;
    text-align: left;
    border-bottom: 2px solid #FCA311;
}

#fileTable tbody tr {
    border-bottom: 1px solid rgba(252, 163, 17, 0.15);
    transition: background 0.2s ease;
}

#fileTable tbody tr:hover {
    background: rgba(252, 163, 17, 0.08);
}

#fileTable tbody td {
    padding: 10px 15px;
    color: #FCA311;
    font-size: 14px;
    vertical-align: middle;
}

#fileTable th:nth-child(1),
#fileTable td:nth-child(1) {
    width: 55%;
}

#fileTable th:nth-child(2),
#fileTable td:nth-child(2) {
    width: 100px;
    text-align: center;
}

#fileTable th:nth-child(3),
#fileTable td:nth-child(3) {
    width: 120px;
    text-align: center;
}

#currentTime, #duration {
    min-width: 45px;
    text-align: center;
}

#chooseMusicFolderBtn {
    background-color: #FCA311;
    color: #000000;
    font-size: 14px;
    padding: 8px 15px;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    font-weight: bold;
    transition: 0.3s;
    font-family: 'font', Arial, sans-serif;
}

#chooseMusicFolderBtn:hover {
    background-color: #ffb833;
    transform: scale(1.05);
}

#playlistDetailHeader {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    width: 100%;
}

#playlistDetailHeader h2 {
    flex: 1;
    text-align: center;
    margin: 0;
}

#btnBackToPlaylists,
#playlistOptionsBtn {
    width: 80px;
    flex-shrink: 0;
}

#playlistOptionsBtn {
    flex-shrink: 0;
    margin-left: auto;
}

/* =============================================
   AJOUTER À LA FIN DE style.css
   ============================================= */

#playlistDetailHeader {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    width: 100%;
    padding: 10px 0;
    border-bottom: 1px solid #FCA311;
}

#playlistDetailHeader h2 {
    flex: 1;
    text-align: center;
    margin: 0;
    font-size: 18px;
    letter-spacing: 2px;
    color: #FCA311;
    text-transform: uppercase;
}

#btnBackToPlaylists,
#playlistOptionsBtn {
    width: 80px;
    flex-shrink: 0;
}

.playlist-menu-btn {
    background: transparent;
    border: none;
    color: #FCA311;
    font-size: 16px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
    letter-spacing: 2px;
    transition: background 0.2s ease;
    -webkit-app-region: no-drag;
    font-family: 'font', Arial, sans-serif;
}

.playlist-menu-btn:hover {
    background: rgba(252, 163, 17, 0.2);
    transform: none;
}

.playlist-context-menu {
    position: fixed;
    background: #000000;
    border: 1px solid #FCA311;
    border-radius: 8px;
    z-index: 99999;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.5);
    min-width: 140px;
}

.playlist-context-menu button {
    display: block;
    width: 100%;
    padding: 10px 20px;
    background: transparent;
    border: none;
    color: #FCA311;
    font-family: 'font', Arial, sans-serif;
    font-size: 13px;
    text-align: left;
    cursor: pointer;
    transition: background 0.2s ease;
}

.playlist-context-menu button:hover {
    background: rgba(252, 163, 17, 0.15);
    transform: none;
}

/* Modales custom */
#modalConfirmOverlay,
#modalInfoOverlay,
#modalRenamePlaylist {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
}

#modalConfirmBox,
#modalInfoBox,
#modalRenameBox {
    background: #14213D;
    border: 2px solid #FCA311;
    border-radius: 16px;
    padding: 30px;
    width: 340px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

#modalConfirmTitle,
#modalInfoTitle,
#modalRenameTitle {
    color: #FCA311;
    font-size: 18px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

#modalConfirmMessage,
#modalInfoMessage {
    color: #FCA311;
    font-size: 14px;
    opacity: 0.85;
}

#modalConfirmButtons,
#modalInfoButtons,
#modalRenameButtons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

#modalConfirmOk,
#modalInfoOk,
#modalRenameConfirm {
    background: #FCA311;
    color: #000000;
    border: none;
    padding: 10px 25px;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
    font-family: 'font', Arial, sans-serif;
    font-size: 13px;
}

#modalConfirmOk:hover,
#modalInfoOk:hover,
#modalRenameConfirm:hover {
    background: #ffb833;
    transform: scale(1.05);
}

#modalConfirmCancel,
#modalRenameCancel {
    background: #cc0000;
    color: white;
    border: none;
    padding: 10px 25px;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
    font-family: 'font', Arial, sans-serif;
    font-size: 13px;
}

#modalConfirmCancel:hover,
#modalRenameCancel:hover {
    background: #ff3333;
    transform: scale(1.05);
}

#renamePlaylistInput {
    background: #14213D;
    color: #FCA311;
    border: 1px solid #FCA311;
    border-radius: 8px;
    padding: 10px;
    font-size: 14px;
    width: 100%;
    outline: none;
    font-family: 'font', Arial, sans-serif;
    text-align: center;
}

#chooseMusicFolderBtn {
    background-color: #FCA311;
    color: #000000;
    font-size: 14px;
    padding: 8px 15px;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    font-weight: bold;
    transition: 0.3s;
    font-family: 'font', Arial, sans-serif;
}

#chooseMusicFolderBtn:hover {
    background-color: #ffb833;
    transform: scale(1.05);
}

#removeMusicFolderBtn {
    background-color: #cc0000;
    color: white;
    font-size: 14px;
    padding: 8px 15px;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    font-weight: bold;
    transition: 0.3s;
    font-family: 'font', Arial, sans-serif;
}

#removeMusicFolderBtn:hover {
    background-color: #ff3333;
    transform: scale(1.05);
}

/* Bouton d'options OBS */
#toggleObsBtn {
    background-color: #FCA311;
    color: #000000;
    font-size: 14px;
    padding: 8px 15px;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    font-weight: bold;
    transition: 0.3s;
    font-family: 'font', Arial, sans-serif;
    margin-bottom: 15px; 
}

#toggleObsBtn:hover {
    background-color: #ffb833;
    transform: scale(1.05);
}

/* ========== SECTION OBS ========== */

#toggleObsBtn {
    background: transparent;
    border: 1px solid rgba(252, 163, 17, 0.4);
    color: #FCA311;
    padding: 8px 15px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    margin: 10px 0;
    width: 100%;
    text-align: left;
    transition: all 0.2s ease;
}

#toggleObsBtn:hover {
    background: rgba(252, 163, 17, 0.1);
    border-color: #FCA311;
}

#obsOptions {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px dashed rgba(252, 163, 17, 0.3);
}

/* Conteneur lien + bouton */
.obs-link-container {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(252, 163, 17, 0.2);
    border-radius: 10px;
    padding: 10px 15px;
    margin: 10px 0;
}

/* Le lien lui même */
#obsLink {
    flex: 1;
    color: rgba(252, 163, 17, 0.8);
    font-family: monospace;
    font-size: 13px;
    word-break: break-all;
}

/* Le bouton copier */
#copyObsBtn {
    background: #FCA311;
    color: #000000;
    border: none;
    padding: 6px 14px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 12px;
    font-weight: bold;
    transition: all 0.2s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

#copyObsBtn:hover {
    background: #ffb833;
    transform: scale(1.05);
}

/* Etat "copié" */
#copyObsBtn.copied {
    background: #00cc66;
    color: #000000;
}

/* La boite d'info OBS */
.obs-info-box {
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(252, 163, 17, 0.15);
    border-radius: 10px;
    padding: 15px;
    margin-top: 15px;
}

.obs-info-title {
    color: #FCA311;
    font-size: 13px;
    font-weight: bold;
    margin-bottom: 10px;
    text-align: left;
}

.obs-steps {
    color: rgba(252, 163, 17, 0.8);
    font-size: 12px;
    padding-left: 20px;
    text-align: left;
    line-height: 2;
}

.obs-steps strong {
    color: #FCA311;
}
