@import 'interfaceThemes.css';

/* Panneau de Configuration*/
#configButton {
    position: fixed;
    top: 10px;
    right: 10px;
    z-index: 1000;
    /* padding: 8px; */
    border-radius: 50%;
    border: 1px solid var(--border-col-1);
    background: var(--bg-col-1);
    color: var(--text-col-1);
    cursor: pointer;
    font-size: 16px;
    width: 48px;
    height: 48px;
}
  
.config-panel {
    position: fixed;
    top: 0;
    right: -400px;
    width: 300px;
    height: 100vh;
    background: var(--bg-col-1);
    color: var(--text-col-1);
    padding: 20px;
    transition: right 0.3s ease;
    z-index: 999;
    border-left: 1px solid var(--border-col-1);
    box-shadow: -2px 0 5px rgba(0,0,0,0.3);
    font-size: 18px;
}

.config-panel.open {
    right: 0;
}

.config-group {
    margin: 15px 0;
}

.config-group label {
    display: block;
    margin-bottom: 5px;
    color: var(--text-col-2);
}

.config-group input {
    width: 100%;
    padding: 8px;
    background: var(--bg-col-1);
    border: 1px solid #555;
    color: var(--text-col-2);
    border-radius: 4px;
}

.config-group input:focus {
    outline: none;
    color: var(--beat-text-2);
    background: var(--beat-col-2);
    border-color: var(--border-col-1);
}

.input-group {
    display: flex;
    gap: 10px;
    align-items: center;
    margin: 10px 0;
}

.input-group input[type="color"] {
    width: 40px;
    height: 40px;
    padding: 0;
    border: none;
    border-radius: 4px;
    background: none;
    cursor: pointer;
}

.input-group input[type="text"] {
    flex: 1;
}

.input-group select {
    padding: 5px;
    margin: 5px 0;
    width: 100%;
    border-radius: 4px;
    border: 1px solid var(--border-col-1);
    background: var(--bg-col-2);
    color: var(--text-col-1)
}

/* Toggle switch */
.toggle-item {
    display: grid;
    grid-template-columns: 2fr 1fr;
    margin-bottom: 1rem;
}
  
/* Container for the toggle */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

/* Hide default checkbox */
.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

/* The track */
.slider {
    position: absolute;
    cursor: pointer;
    background-color: var(--text-col-1);
    border-radius: 20px;
    width: 100%;
    height: 100%;
    transition: background-color 0.3s;
}

/* The circular slider */
.slider::before {
    content: "";
    position: absolute;
    height: 20px;
    width: 20px;
    left: 0px;
    /* bottom: 2px; */
    background-color: var(--text-col-1);
    border: 2px solid var(--border-col-1);
    border-radius: 50%;
    transition: transform 0.3s;
}

/* Toggled state */
.toggle-switch input:checked+.slider {
    background-color: var(--beat-col-2);
}

.toggle-switch input:checked+.slider::before {
    transform: translateX(26px);
}

button#openModalShortCutBtn {
    padding: 8px;
    background-color: var(--beat-col-2);
    color: var(--text-col-1);
    border: 2px solid var(--border-col-1);
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

button#openModalShortCutBtn:hover {
    background: var(--text-col-1);
    color: var(--beat-col-1);
}

/* Modal */
.modal {
    display: none; 
    position: fixed; 
    z-index: 1000; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    overflow: auto; 
    background-color: rgba(0,0,0,0.4); 
}
  
/* Contenu de la modal */
.modal-content {
    background-color: var(--bg-col-1);
    margin: 15% auto; /* 15% du haut et centré */
    padding: 1rem;
    border: 1px solid var(--border-col-1);
    width: 70%; /* Largeur de la modal */
    /* max-width: 900px; Largeur maximale */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.671);
    color: var(--text-col-1);
    border-radius: 8px;
}

/* Bouton de fermeture */
span#closeModal.close {
    color: var(--text-col-1);
    float: right;
    font-size: 3rem;
    font-weight: bold;
    margin-top: -1rem;
}

span#closeModal.close:hover,
span#closeModal.close:focus {
    color: var(--beat-col-2);
    text-decoration: none;
    cursor: pointer;
}

.shortcuts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    margin-top: 20px;
}

.shortcut {
    display: contents;
}

.shortcut-key {
    background-color: var(--bg-col-2);
    padding: 10px;
    border-radius: 4px;
    text-align: right;
    color: var(--text-col-1);
}

.shortcut-desc {
    background-color: var(--bg-col-1);
    padding: 10px;
    border-radius: 4px;
    color: var(--text-col-2);
}
  