/* Styles for code form */
#code-form-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #000000 0%, #1a1a1a 100%);
}

.code-form {
    background: linear-gradient(145deg, #2a2a2a, #1a1a1a);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    text-align: center;
    max-width: 400px;
    width: 100%;
}

.code-form h1 {
    color: #d4af37;
    margin-bottom: 10px;
    font-size: 2.5em;
}

.code-form p {
    color: #f4e87c;
    margin-bottom: 30px;
    font-size: 1.1em;
}

#code-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

#playlist-code {
    padding: 15px;
    border: 2px solid #d4af37;
    border-radius: 10px;
    background: #1a1a1a;
    color: #d4af37;
    font-size: 1.2em;
    text-align: center;
    text-transform: uppercase;
}

#playlist-code:focus {
    outline: none;
    border-color: #f4e87c;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
}

.error-message {
    color: #ff6b6b;
    margin-top: 15px;
    font-weight: 500;
}

.current-code {
    background: linear-gradient(145deg, #2a2a2a, #1a1a1a);
    padding: 10px 15px;
    border-radius: 15px;
    margin-bottom: 15px;
    text-align: center;
    color: #f4e87c;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: min(90vw, 1000px);
    flex-wrap: wrap;
    font-size: 0.9em;
}

.current-code span {
    color: #d4af37;
    font-weight: 700;
    font-size: 1.1em;
}

.current-code .btn-secondary {
    font-size: 0.9em;
    padding: 8px 16px;
}

.playlist-name-display {
    text-align: center;
    margin: 15px 0 10px 0;
    color: #d4af37;
    font-weight: 600;
    font-size: 1.05em;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.playlist-name-label {
    color: #f4e87c;
    font-weight: 500;
    font-size: 0.95em;
}

.playlist-name-display p {
    margin: 0;
    padding: 5px 0;
    color: #d4af37;
    font-style: italic;
}

.admin-options {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #d4af37;
}

.admin-options p {
    color: #f4e87c;
    margin: 0;
}

.btn-secondary {
    background: transparent;
    border: 2px solid #d4af37;
    color: #d4af37;
    padding: 10px 20px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1em;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: #d4af37;
    color: #000;
}

/* Global Styles */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, #000000 0%, #1a1a1a 100%);
    color: #d4af37;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#main-content {
    width: 100%;
    max-width: 1600px; /* Largeur maximale pour utiliser l'espace disponible */
    margin: 0 auto; /* Centre le contenu */
    padding: 20px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-content: center;
    align-items: center;
}
}

h1, h2 {
    color: #d4af37;
    text-align: center;
    margin-bottom: 10px;
    margin-top: 5px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    font-weight: 700;
}

#qr-code {
    background: linear-gradient(145deg, #2a2a2a, #1a1a1a);
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    margin-bottom: 40px;
    text-align: center;
    border: 1px solid #d4af37;
}

#playlist, #playlist-admin {
    background: linear-gradient(145deg, #2a2a2a, #1a1a1a);
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    width: min(90vw, 1000px);
    border: 1px solid #d4af37;
}

ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

li {
    background: linear-gradient(145deg, #333, #222);
    margin: 10px 0;
    padding: 15px;
    border-radius: 10px;
    border-left: 4px solid #d4af37;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    transition: transform 0.2s, box-shadow 0.2s;
}

li:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.4);
}

li a {
    color: #d4af37;
    text-decoration: none;
    font-weight: 500;
}

li a:hover {
    text-decoration: underline;
}

form {
    background: linear-gradient(145deg, #2a2a2a, #1a1a1a);
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    width: 90%;
    max-width: 400px;
    border: 1px solid #d4af37;
    text-align: center;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #d4af37;
    font-size: 0.95em;
}

input {
    width: 100%;
    padding: 10px;
    margin-bottom: 12px;
    border: 2px solid #d4af37;
    border-radius: 10px;
    background: #333;
    color: #d4af37;
    font-size: 14px;
    box-sizing: border-box;
}

input:focus {
    outline: none;
    border-color: #f4e87c;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

#song-name {
    width: min(85vw, 400px);
    max-width: 500px;
}

button {
    background: linear-gradient(145deg, #d4af37, #b8860b);
    color: #000;
    padding: 15px 30px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.4);
}

#message {
    margin-top: 20px;
    font-weight: 500;
    color: #f4e87c;
}

#admin-controls {
    background: linear-gradient(145deg, #2a2a2a, #1a1a1a);
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    margin-bottom: 20px;
    border: 1px solid #d4af37;
    text-align: center;
    width: min(90vw, 1000px);
}

#admin-controls button {
    margin: 0 10px;
}

.play-btn {
    margin-left: 10px;
    background: #d4af37;
    color: #000;
    border: none;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
}

.play-btn:hover {
    background: #b8860b;
}

.delete-btn {
    background: #ff4444;
    color: #fff;
    border: none;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
}

.delete-btn:hover {
    background: #cc0000;
}

#player-container {
    margin-bottom: 20px;
    text-align: center;
}

#youtube-player {
    display: inline-block;
}

.song-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px;
    border-bottom: 1px solid #333;
}

.song-item a {
    flex-grow: 1;
    color: #d4af37;
    text-decoration: none;
}

.song-item a:hover {
    text-decoration: underline;
}

.song-item.played {
    opacity: 0.5;
}

.song-item.played a {
    color: #888;
    text-decoration: line-through;
}

.song-item .buttons {
    display: flex;
    gap: 5px;
}

#loop-btn.active {
    background-color: #d4af37;
    color: #000;
}

/* Responsive */
@media (max-width: 600px) {
    body {
        padding: 20px;
    }
    #qr-code, #playlist, #playlist-admin, form, #admin-controls {
        width: 100%;
        padding: 20px;
    }
    li {
        padding: 10px;
    }
}

/* Styles for add-song.html (Clean Version) */
body.add-song-clean {
    margin: 0;
    padding: 0;
    height: 100vh; /* Fallback */
    height: 100dvh; /* Mobile viewport height */
    width: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background: linear-gradient(135deg, #000000 0%, #1a1a1a 100%);
}

/* Override global ID styles for add-song-clean page */
body.add-song-clean #main-content,
body.add-song-clean #code-form-container {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 10px;
    min-height: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    overflow: hidden;
}

/* Override global form styles */
body.add-song-clean form {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 20px;
    text-align: left;
}

.as-screen {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px;
    box-sizing: border-box;
    overflow: hidden; /* Prevent double scrollbars */
}

.as-content-wrapper {
    width: 100%;
    max-width: 500px;
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0; /* Important for nested flex scrolling */
    overflow-y: auto; /* Scrollable area for the whole card */
    -webkit-overflow-scrolling: touch;
    padding: 5px;
}

.as-card {
    width: 100%;
    background: linear-gradient(145deg, #2a2a2a, #1a1a1a);
    padding: 20px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    border: 1px solid #d4af37;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    margin: auto 0; /* Center vertically */
}

.as-header {
    flex: 0 0 auto;
    text-align: center;
    margin-bottom: 15px;
    width: 100%;
    padding: 0 5px;
    box-sizing: border-box;
}

/* Override global .current-code width */
body.add-song-clean .current-code {
    width: 100%;
    max-width: none;
    box-sizing: border-box;
}

.as-subtitle {
    color: #f4e87c;
    font-size: 1em;
    margin-top: 5px;
    margin-bottom: 0;
}

.as-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    width: 100%;
    overflow: visible; /* Remove scroll from here */
    padding: 0;
    box-sizing: border-box;
}

.add-song-form {
    width: 100%;
    background: none;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
    border: none;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 0;
}

/* Override global input width constraints */
body.add-song-clean #song-name {
    width: 100%;
    max-width: none;
}

.add-song-form .form-group {
    width: 100%;
    margin: 0;
    text-align: left;
}

.add-song-form label {
    display: block;
    margin-bottom: 8px;
    color: #d4af37;
    font-weight: 600;
}

.add-song-form input[type="text"] {
    width: 100%;
    padding: 12px;
    background: #333;
    border: 2px solid #d4af37;
    border-radius: 10px;
    color: #fff;
    font-size: 16px;
    box-sizing: border-box;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.add-song-form input[type="text"]:focus {
    outline: none;
    border-color: #f4e87c;
    background: #444;
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.4), 0 0 0 4px rgba(212, 175, 55, 0.1);
    transform: scale(1.02);
}

.add-song-form .btn-primary {
    width: 100%;
    padding: 15px;
    font-size: 1.1em;
    margin-top: 10px;
}

/* Utility Classes (Preserved) */
.message {
    margin-top: 10px;
    font-weight: 500;
    color: #f4e87c;
    text-align: center;
    font-size: 0.9em;
}

.rate-limit-error {
    background: rgba(255, 107, 107, 0.1);
    border: 1px solid #ff6b6b;
    color: #ff6b6b;
    padding: 12px;
    border-radius: 8px;
    margin-top: 10px;
    text-align: center;
    font-weight: bold;
}

.error-message {
    color: #ff6b6b;
    font-weight: bold;
    text-align: center;
    margin-top: 10px;
}

.admin-message {
    margin-top: 15px;
    padding: 10px;
    border-radius: 8px;
    text-align: center;
    font-weight: bold;
}

.admin-message.success {
    background: rgba(76, 175, 80, 0.1);
    border: 1px solid #4caf50;
    color: #4caf50;
}

.admin-message.error {
    background: rgba(244, 67, 54, 0.1);
    border: 1px solid #f44336;
    color: #f44336;
}

.admin-message.info {
    background: rgba(33, 150, 243, 0.1);
    border: 1px solid #2196f3;
    color: #2196f3;
}

/* Ajustements Mobile */
@media (max-height: 700px) {
    .as-content-wrapper {
        justify-content: flex-start;
        padding-top: 10px;
    }
    .as-header {
        margin-bottom: 10px;
    }
    .add-song-form {
        padding: 15px;
    }
    .as-subtitle {
        display: none;
    }
}

/* Suggestions list */
.suggestions-list {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: min(85vw, 400px);
    max-width: 500px;
    background: #2a2a2a;
    border: 2px solid #d4af37;
    border-top: none;
    border-radius: 0 0 10px 10px;
    overflow-y: visible;
    z-index: 1000;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.suggestion-item {
    padding: 8px 12px;
    cursor: pointer;
    border-bottom: 1px solid #444;
    color: #f4e87c;
    transition: background-color 0.2s;
    font-size: 0.9em;
}

.suggestion-item:hover {
    background: #3a3a3a;
}

.suggestion-item:last-child {
    border-bottom: none;
}

.suggestion-item .title {
    font-weight: bold;
    color: #d4af37;
}

.suggestion-item .artist {
    color: #ccc;
    font-size: 0.9em;
}

.suggestion-error {
    padding: 12px 15px;
    color: #ff6b6b;
    font-style: italic;
    font-size: 0.9em;
    text-align: center;
    background: rgba(255, 107, 107, 0.1);
    border-radius: 0 0 8px 8px;
}

.form-help {
    display: block;
    margin-top: 8px;
    font-size: 0.85em;
    color: #d4af37;
    font-style: italic;
}

.rate-limit-error {
    background: rgba(255, 107, 107, 0.1);
    border: 1px solid #ff6b6b;
    color: #ff6b6b;
    padding: 12px;
    border-radius: 8px;
    margin-top: 10px;
    text-align: center;
    font-weight: bold;
}

/* Layout principal de la page index */
#top-container {
    display: flex !important;
    flex-direction: row !important; /* Force côte-à-côte par défaut */
    gap: 40px; /* Espace entre QR et player */
    margin: 30px 0;
    align-items: center !important; /* Centre verticalement les éléments */
    justify-content: center !important; /* Centre le groupe horizontalement */
    width: 100%;
    max-width: 1200px; /* Largeur du groupe (centre l'ensemble) */
    margin: 30px auto;
}

#qr-section {
    flex: 0 0 300px; /* largeur fixe raisonnable pour le QR */
    text-align: center;
    align-self: center;
    margin: 0; /* pas de marge latérale : le gap gère l'espace */
}

#qr-section h2 {
    margin-bottom: 15px;
    color: #d4af37;
    font-size: 1.2em;
    margin-top: 0px;
}

#player-section {
    align-self: center;
    margin: 0;
}

/* Desktop: forcer côte-à-côte et éviter le wrap */
@media (min-width: 900px) {
    #top-container {
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        justify-content: center !important;
        align-items: center !important;
        max-width: 1200px !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }
}

/* Mobile: pile verticalement et full-width */
@media (max-width: 899px) {
    #top-container {
        flex-direction: column;
        flex-wrap: nowrap;
        gap: 20px;
        max-width: none;
        width: 100%;
        margin: 0 auto 30px auto;
    }
    #qr-section, #player-section {
        flex: none;
        width: 100%;
        min-width: auto;
        margin: 0;
    }
}

#player-controls {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    justify-content: center;
}

#playlist-container {
    margin-top: 30px;
    border-top: 2px solid #d4af37;
    padding-top: 30px;
}

/* Responsive pour mobile */
@media (max-width: 768px) {
    #top-container {
        flex-direction: column;
        gap: 20px;
    }
    
    #qr-section, #player-section {
        min-width: auto;
        width: 100%;
    }
}
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.modal-content {
    background: linear-gradient(145deg, #2a2a2a, #1a1a1a);
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    max-width: 500px;
    width: 90%;
    text-align: center;
}

.modal-content h2 {
    color: #d4af37;
    margin-bottom: 20px;
}

.modal-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 20px;
}

#playlist-title {
    color: #d4af37;
    margin: 0;
    font-size: 2em;
}

.playlist-code {
    color: #f4e87c;
    font-size: 0.9em;
    margin-top: 5px;
    display: block;
}

/* Admin controls */
.control-group {
    margin-bottom: 15px;
}

.control-group label {
    display: block;
    color: #d4af37;
    margin-bottom: 5px;
    font-weight: bold;
}

.control-group input {
    width: 60px;
    padding: 8px;
    border: 2px solid #d4af37;
    border-radius: 5px;
    background: #333;
    color: #d4af37;
    text-align: center;
}

.control-group .help-text {
    display: block;
    color: #ccc;
    font-size: 0.8em;
    margin-top: 3px;
}

/* Song categories */
.song-category {
    display: inline-block;
    background: #d4af37;
    color: #000;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.7em;
    font-weight: bold;
    margin-right: 8px;
    vertical-align: top;
}

/* Animation pour les nouvelles musiques ajoutées */
@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes backgroundYellowTransition {
    from {
        background-color: rgba(255, 255, 0, 0.3);
    }
    to {
        background-color: transparent;
    }
}

.new-song-item {
    animation: slideInFromLeft 0.8s ease-out, backgroundYellowTransition 1.5s ease-out;
}

.new-song-pending {
    /* État initial: conteneur décalé à gauche avec fond jaune */
    opacity: 0;
    transform: translateX(-100%);
    background-color: rgba(255, 255, 0, 0.3);
}

/* Styles pour les sections de catégories */
.category-section {
    margin-bottom: 30px;
    border: 1px solid #d4af37;
    border-radius: 10px;
    padding: 15px;
    background: linear-gradient(145deg, #2a2a2a, #1a1a1a);
}

.category-title {
    color: #f4e87c;
    font-size: 1.5em;
    margin-bottom: 15px;
    border-bottom: 2px solid #d4af37;
    padding-bottom: 5px;
    text-transform: uppercase;
    font-weight: bold;
}

.song-list-category {
    list-style: none;
    padding: 0;
    margin: 0;
}

.song-list-category .song-item {
    border-bottom: 1px solid #333;
    padding: 5px;
}

.song-list-category .song-item:last-child {
    border-bottom: none;
}

/* Version Badge */
#version-badge {
    position: fixed;
    bottom: 10px;
    right: 10px;
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid #d4af37;
    color: #d4af37;
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 0.75em;
    font-weight: 600;
    letter-spacing: 0.5px;
    z-index: 999;
    opacity: 0.6;
    transition: opacity 0.3s ease;
    font-family: 'Courier New', monospace;
}

#version-badge:hover {
    opacity: 1;
}
/* Fix mobile display for add-song page */
@media (max-width: 600px) {
    body.add-song-page {
        padding: 0 !important;
    }
}

/* Animations pour l'ajout de chanson */
@keyframes pulse-success {
    0% { transform: scale(1); box-shadow: 0 10px 30px rgba(0,0,0,0.5); border-color: #d4af37; }
    50% { transform: scale(1.02); box-shadow: 0 0 20px rgba(76, 175, 80, 0.6); border-color: #4caf50; }
    100% { transform: scale(1); box-shadow: 0 10px 30px rgba(0,0,0,0.5); border-color: #d4af37; }
}

@keyframes pulse-error {
    0% { transform: scale(1); box-shadow: 0 10px 30px rgba(0,0,0,0.5); border-color: #d4af37; }
    50% { transform: scale(1.02); box-shadow: 0 0 20px rgba(255, 107, 107, 0.6); border-color: #ff6b6b; }
    100% { transform: scale(1); box-shadow: 0 10px 30px rgba(0,0,0,0.5); border-color: #d4af37; }
}

@keyframes pop-in-success {
    0% { opacity: 0; transform: translateY(10px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes shake-error {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

.success-animation {
    animation: pulse-success 0.6s ease-out;
}

.rate-limit-animation {
    animation: pulse-error 0.6s ease-out;
}

.error-shake {
    animation: shake-error 0.5s ease-in-out;
    border-color: #ff6b6b !important;
}

.message.success-text {
    color: #4caf50;
    font-weight: bold;
    font-size: 1.1em;
    animation: pop-in-success 0.4s ease-out;
    padding: 10px;
    background: rgba(76, 175, 80, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(76, 175, 80, 0.3);
}

.message.rate-limit-error {
    color: #ff6b6b;
    font-weight: bold;
    font-size: 1.1em;
    animation: pop-in-success 0.4s ease-out;
    padding: 10px;
    background: rgba(255, 107, 107, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(255, 107, 107, 0.3);
}
/* Username form styles */
#username-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

#username-input {
    padding: 15px;
    border: 2px solid #d4af37;
    border-radius: 10px;
    background: #1a1a1a;
    color: #d4af37;
    font-size: 1.2em;
    text-align: center;
}

#username-input:focus {
    outline: none;
    border-color: #f4e87c;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

/* Welcome message styles */
.welcome-message {
    background: rgba(212, 175, 55, 0.1);
    padding: 15px;
    border-radius: 10px;
    border-left: 4px solid #d4af37;
    margin-bottom: 20px;
}

.welcome-message p {
    color: #f4e87c;
    font-size: 1.1em;
    margin: 0;
}

#welcome-text {
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

#welcome-text:hover {
    background: rgba(212, 175, 55, 0.2);
    padding: 5px 15px;
}
/* Contrôles du lecteur pour admin panel */
.player-controls {
    background: linear-gradient(145deg, #2a2a2a, #1a1a1a);
    border: 1px solid #d4af37;
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
}

.player-controls h3 {
    color: #f4e87c;
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.2em;
}

.control-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.control-buttons button {
    flex: 1;
    min-width: 120px;
    padding: 12px;
    background: linear-gradient(145deg, #333, #222);
    color: #d4af37;
    border: 2px solid #d4af37;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1em;
    font-weight: bold;
    transition: all 0.3s ease;
}

.control-buttons button:hover {
    background: linear-gradient(145deg, #444, #333);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.4);
    transform: translateY(-2px);
}

.control-buttons button:active {
    transform: translateY(0);
}

#loop-btn-admin.active {
    background-color: #d4af37;
    color: #000;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.6);
}