:root {
  /* Palette de couleurs pour le thème sombre */
  --bg-color: #18181b;
  --bg-color-dark: #0e0e10;
  --bg-color-hover: #252528;
  --primary-color: #6441a5;
  --primary-color-hover: #7d5bbe;
  --text-color: #efeff1;
  --text-color-muted: #adadb8;
  --border-color: #303032;
}

/* === Welcome Screen Styles === */
/* Solution radicale pour étendre le fond jusqu'en bas */
.welcome-screen {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    margin: 0;
    padding: 2rem;
    border-radius: 0;
    min-height: 100vh;
    background-color: var(--bg-color-dark);
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow-y: auto;
    /* Ajouter ces propriétés pour centrer le contenu */
    justify-content: flex-start;
    padding-left: var(--sidebar-width, 300px); /* Tenir compte de la largeur de la sidebar */
}

/* Ajouter cette règle pour assurer que le conteneur parent permet l'extension complète */
.content {
    background: transparent;
}

/* S'assurer que le conteneur welcome-screen prend toute la place disponible */
#welcome-screen {
    flex-grow: 1; /* Permet au conteneur de grandir pour remplir l'espace disponible */
}

/* S'assurer que les éléments internes ne sont pas coupés */
.combo-section:last-child, 
.social-links,
.attribution {
    margin-bottom: 2rem;
}

@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Ajuster les marges internes pour le contenu */
/* Centrer correctement le texte d'introduction */
.welcome-header {
    margin-top: 2rem;
    margin-bottom: 3rem;
    width: 100%;
    text-align: center;
    /* Supprimer le padding-right qui décale le contenu */
}

/* Sur les petits écrans ou quand la sidebar est réduite */
@media (max-width: 768px) {
    .welcome-header {
        padding-right: 0;
    }
}

/* Quand la sidebar est réduite */
.sidebar.collapsed + .content .welcome-header {
    padding-right: 60px; /* Ajuster en fonction de la largeur de la sidebar réduite */
}

/* Assurer que le logo est bien centré */
.welcome-logo {
    width: 80px;
    height: 80px;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 0 8px rgba(100, 65, 165, 0.6));
    object-fit: contain;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.welcome-title {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.welcome-subtitle {
    font-size: 1.1rem;
    color: var(--text-color-muted);
    margin-bottom: 2rem;
}

.features-section {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 3rem;
    width: 100%;
    max-width: 1000px;
}

.feature-card {
    background-color: #18181b; /* Fallback color if variable isn't working */
    background-color: var(--bg-color);
    border-radius: 8px;
    padding: 1.5rem;
    width: 280px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.feature-description {
    color: var(--text-color-muted);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Continue from the previous code */
.quick-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
}

.action-button {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.2s;
    min-width: 180px;
}

.action-button:hover {
    background-color: var(--primary-color-hover);
    transform: translateY(-2px);
}

.action-button i {
    margin-right: 0.5rem;
}

.action-button.secondary {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.action-button.secondary:hover {
    background-color: rgba(100, 65, 165, 0.1);
}

.combo-section {
    width: 100%;
    max-width: 1200px;
    margin-bottom: 3rem;
}

/* Styles pour les combos utilisateur */
.empty-combo-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background-color: var(--bg-color);
    border-radius: 8px;
    text-align: center;
    gap: 1rem;
}

.empty-combo-message i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Style pour l'en-tête de section avec bouton */
.section-header {
    display: flex;
    justify-content: flex-start; /* Aligner à gauche au lieu de space-between */
    align-items: center;
    margin-bottom: 1.5rem;
    width: 100%;
}

.section-title {
    display: flex;
    align-items: center;
    font-size: 1.8rem;
    color: var(--text-color);
    margin: 0;
}

.section-title i {
    margin-right: 0.75rem;
    color: var(--primary-color);
}

.section-actions {
    margin-left: 1rem; /* Ajouter une petite marge à gauche pour séparer du titre */
}

/* Style pour le petit bouton de gestion */
.compact-btn {
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    background-color: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.2s;
}

.compact-btn:hover {
    background-color: rgba(100, 65, 165, 0.1);
    transform: translateY(-2px);
}

/* Réinitialiser view-all-combos */
.view-all-combos {
    display: none; /* Masquer l'ancien bouton */
}

/* Ajuster l'espacement entre les sections */
.combo-section + .combo-section {
    margin-top: 3rem;
}

/* Style pour les titres des sections */
.combo-section-title {
    margin-bottom: 1.5rem;
    color: var(--text-color);
    display: flex;
    align-items: center;
    font-size: 1.8rem;
}

.combo-section-title i {
    margin-right: 0.75rem;
    color: var(--primary-color);
}

.combo-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
}

.combo-card {
    background-color: #18181b; /* Fallback color */
    background-color: var(--bg-color);
    border-radius: 8px;
    padding: 1.25rem;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

.combo-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.combo-name {
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.combo-meta {
    display: flex;
    align-items: center;
    color: var(--text-color-muted);
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
}

.combo-meta .badge {
    padding: 0.2rem 0.5rem;
    border-radius: 3px;
    margin-right: 0.5rem;
    font-size: 0.75rem;
}

.badge.language {
    background-color: rgba(66, 135, 245, 0.1);
    color: #4287f5;
}

.badge.category {
    background-color: rgba(245, 158, 66, 0.1);
    color: #f59e42;
}

.combo-streamers {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.combo-streamer-tag {
    padding: 0.25rem 0.75rem;
    background-color: rgba(100, 65, 165, 0.1);
    color: var(--primary-color);
    border-radius: 20px;
    font-size: 0.85rem;
}

.social-links {
    margin-top: 2rem;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-color);
    color: var(--primary-color);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin: 0 0.5rem;
    font-size: 1.2rem;
    transition: transform 0.3s, background-color 0.3s;
}

.social-links a:hover {
    transform: translateY(-3px);
    background-color: var(--primary-color);
    color: white;
}

.attribution {
    margin-top: 2rem;
    font-size: 0.85rem;
    color: var(--text-color-muted);
}

/* === Modal Styles === */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    overflow-y: auto;
    animation: fadeIn 0.2s;
}

.modal-content {
    background-color: #0e0e10; /* Fallback color */
    background-color: var(--bg-color-dark);
    margin: 2rem auto;
    border-radius: 8px;
    width: 90%;
    max-width: 800px;
    animation: slideIn 0.3s;
    position: relative;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

@keyframes slideIn {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-color);
    margin: 0;
}

.close-modal {
    font-size: 1.5rem;
    color: var(--text-color-muted);
    cursor: pointer;
    transition: color 0.2s;
}

.close-modal:hover {
    color: var(--primary-color);
}

.modal-body {
    padding: 1.5rem;
}

.tabs {
    display: flex;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 1.5rem;
}

.tab {
    padding: 0.75rem 1.5rem;
    background: none;
    border: none;
    color: var(--text-color-muted);
    cursor: pointer;
    font-weight: 500;
    position: relative;
    transition: color 0.2s;
}

.tab.active {
    color: var(--primary-color);
}

.tab.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
}

/* Style pour l'en-tête des cartes de combo avec bouton d'édition */
.combo-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
}

.combo-actions {
    display: flex;
    gap: 0.5rem;
}

.combo-edit-btn {
    background: transparent;
    border: none;
    color: var(--text-color-muted);
    cursor: pointer;
    padding: 0.2rem;
    border-radius: 3px;
    transition: all 0.2s ease;
}

.combo-edit-btn:hover {
    color: var(--primary-color);
    background-color: rgba(100, 65, 165, 0.1);
}

/* Assurer que le bouton est bien visible */
.combo-edit-btn i {
    font-size: 0.9rem;
}

.combos-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}

.combo-item {
    background-color: var(--bg-color);
    border-radius: 6px;
    padding: 1rem;
    position: relative;
    transition: transform 0.2s, box-shadow 0.2s;
}

.combo-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.combo-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
}

.combo-item-name {
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.combo-item-description {
    font-size: 0.9rem;
    color: var(--text-color-muted);
    margin-bottom: 0.75rem;
    max-height: 60px;
    overflow: hidden;
}

.combo-item-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.combo-item-streamers {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.combo-item-actions {
    margin-top: 1rem;
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
}

.combo-filters {
    margin-bottom: 1.5rem;
    display: flex;
    gap: 1rem;
}

.combo-filters select {
    background-color: var(--bg-color);
    border: 1px solid var(--border-color);
    color: var(--text-color);
    padding: 0.5rem;
    border-radius: 4px;
    width: 150px;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    background-color: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--text-color);
    font-size: 1rem;
}

.form-group textarea {
    min-height: 80px;
    resize: vertical;
}

.streamer-inputs {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.streamer-input {
    display: flex;
    gap: 0.5rem;
}

.remove-streamer-btn {
    background: none;
    border: none;
    color: var(--text-color-muted);
    cursor: pointer;
    transition: color 0.2s;
}

.remove-streamer-btn:hover {
    color: #f44336;
}

.form-actions {
    margin-top: 2rem;
    display: flex;
    justify-content: flex-end;
}

.import-export-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.export-section,
.import-section {
    padding: 1.5rem;
    background-color: var(--bg-color);
    border-radius: 6px;
}

.export-section h3,
.import-section h3 {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-color);
}

.export-section p,
.import-section p {
    margin-bottom: 1.5rem;
    color: var(--text-color-muted);
}

#import-status {
    margin-top: 1rem;
    padding: 0.75rem;
    border-radius: 4px;
    display: none;
}

#import-status.success {
    background-color: rgba(76, 175, 80, 0.1);
    color: #4caf50;
    display: block;
}

#import-status.error {
    background-color: rgba(244, 67, 54, 0.1);
    color: #f44336;
    display: block;
}

/* Buttons */
.primary-btn,
.secondary-btn {
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.2s, transform 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.primary-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
}

.primary-btn:hover {
    background-color: var(--primary-color-hover);
    transform: translateY(-2px);
}

.secondary-btn {
    background-color: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-color);
}

.secondary-btn:hover {
    background-color: var(--bg-color-hover);
    transform: translateY(-2px);
}

.option-btn {
    padding: 0.5rem 1rem;
    background-color: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--text-color);
    cursor: pointer;
    transition: background-color 0.2s;
}

.option-btn:hover {
    background-color: var(--bg-color-hover);
}

@media (max-width: 768px) {
    .welcome-screen {
        padding: 2rem 1rem;
    }
    
    .features-section {
        flex-direction: column;
        align-items: center;
    }
    
    .import-export-container {
        grid-template-columns: 1fr;
    }
    
    .combo-list {
        grid-template-columns: 1fr;
    }
}

/* Ajuster le corps de la page quand l'écran d'accueil est actif */
body.welcome-screen-active {
    overflow: hidden;
}

body.welcome-screen-active .container {
    overflow: hidden;
    height: 100vh;
}
