/* Styles généraux */
body {
    background-color: #35363a;
    color: #ffffff;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    overflow-x: hidden;
}

.logo {
    font-size: 80px;
    font-weight: 500;
    margin-top: 10vh;
    margin-bottom: 30px;
    letter-spacing: -2px;
}

.search-container {
    width: 100%;
    max-width: 600px;
    margin-bottom: 40px;
}

.search-box {
    display: flex;
    background-color: #ffffff;
    border-radius: 24px;
    padding: 5px 20px;
    align-items: center;
    height: 46px;
}

.search-box input {
    flex-grow: 1;
    border: none;
    outline: none;
    font-size: 16px;
    padding: 10px;
    background: transparent;
    color: #202124;
}

/* Conteneur des raccourcis */
.shortcuts-container {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 800px;
}

.shortcut {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #bdc1c6;
    font-size: 13px;
    width: 80px;
    padding: 10px 0;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s;
}

.shortcut:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.icon {
    width: 48px;
    height: 48px;
    background-color: #202124;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 10px;
    font-size: 20px;
    color: white;
    text-transform: uppercase;
}

/* Bouton de suppression sur le raccourci */
.delete-btn {
    position: absolute;
    top: 0;
    right: 10px;
    background: #5f6368;
    color: white;
    border: none;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 12px;
    cursor: pointer;
    display: none;
}

.shortcut:hover .delete-btn {
    display: block;
}

.delete-btn:hover {
    background: #ff4d4d;
}

/* Bouton Ajouter (+) */
.add-btn .icon {
    background-color: #35363a;
    border: 1px dashed #bdc1c6;
    color: #bdc1c6;
}

/* Fenêtre modale (Popup) d'ajout */
.modal {
    display: none; 
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.modal.active {
    display: flex;
}

.modal-content {
    background-color: #202124;
    padding: 30px;
    border-radius: 8px;
    width: 300px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.modal-content input {
    background: #35363a;
    border: 1px solid #5f6368;
    color: white;
    padding: 10px;
    border-radius: 4px;
}

.modal-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 10px;
}

.modal-buttons button {
    padding: 8px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.btn-cancel { background: transparent; color: #8ab4f8; }
.btn-cancel:hover { background: rgba(138, 180, 248, 0.1); }
.btn-save { background: #8ab4f8; color: #202124; font-weight: bold; }
.btn-save:hover { background: #aecbfa; }

/* Sidebar */
.sidebar { 
    position: fixed; 
    top: 0; 
    right: -300px; 
    width: 300px; 
    height: 100%; 
    background-color: #202124; 
    box-shadow: -2px 0 5px rgba(0,0,0,0.5); 
    transition: right 0.3s ease; 
    padding: 20px; 
    box-sizing: border-box; 
    overflow-y: auto; 
    z-index: 1000;
}

.sidebar.active { right: 0; }
.toggle-btn { 
    position: fixed; 
    top: 20px; 
    right: 20px; 
    background-color: #35363a; 
    color: white; 
    border: 1px solid #5f6368; 
    border-radius: 50%; 
    width: 40px; 
    height: 40px; 
    cursor: pointer; 
    font-size: 20px; 
    z-index: 1001; 
    display: flex; 
    justify-content: center; 
    align-items: center; 
}
.toggle-btn:hover { background-color: #5f6368; }
.category { margin-bottom: 25px; }
.category h3 { border-bottom: 1px solid #5f6368; padding-bottom: 5px; color: #e8eaed; font-size: 16px; }
.category-links { list-style-type: none; padding: 0; margin: 0; }
.category-links li { margin: 10px 0; }
.category-links a { color: #8ab4f8; text-decoration: none; font-size: 14px; display: block; padding: 5px; border-radius: 4px; }
.category-links a:hover { background-color: rgba(255,255,255,0.05); text-decoration: underline; }