body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    background-attachment: fixed;
    color: #1a1a1a;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    min-height: 100vh;
}
.container {
    max-width: 100%;
    margin: 0;
    display: flex;
    gap: 0;
    padding-top: 60px;
    position: relative;
}
.projects-panel {
    width: 300px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border-radius: 0;
    padding: 1.5rem;
    padding-bottom: 200px;
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    overflow-y: auto;
    border-right: 1px solid rgba(224, 224, 224, 0.5);
    padding-top:40px;
}
.todo-container {
    flex: 1;
    margin-left: 350px;
    padding: 2rem 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border-radius: 0;
    min-height: 100vh;
    position: relative;
    overflow:hidden;
    padding-bottom: 500px;
}

.business-input {
    margin-top: 10px;
}
.project-input, .todo-input, .business-input {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px dashed #88a1c2;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    transition: all 0.2s;
    box-sizing: border-box;
}
.project-input {
    margin-top: 50px;
}
.project-input:focus, .todo-input:focus, .business-input:focus {
    outline: none;
    border-color: #4CAF50;
    border-style: solid;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
    background: linear-gradient(to bottom, #ffffff 0%, #f8fff8 100%);
}
.project-item, .business-item {
    padding: 0.75rem 1rem;
    margin-bottom: 0.25rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.95rem;
    transition: all 0.15s ease;
    user-select: none;
    touch-action: none;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
    cursor: pointer;
}


.business-name {
    color: black;
}

.project-item:hover,
.business-item:hover {
    background: #f5f5f5;
}
.project-item.active,
.business-item.active {
    background: linear-gradient(135deg, #4CAF50 0%, #388E3C 100%);
    color: white;
    font-weight: 500;
}
.todo-item {
    padding: 1.25rem;
    margin-bottom: 0.5rem;
    border-radius: 8px;
    background: #ffffff;
    cursor: pointer;
    transition: all 0.15s ease;
    border: 1px solid #e0e0e0;
    position: relative;
    touch-action: pan-y pinch-zoom;
    user-select: none;
    display: flex;
    align-items: center;
    cursor: grab;
    transition: transform 0.2s, box-shadow 0.2s;
    transition: opacity 0.3s ease-out, transform 0.3s ease-out;
}
.todo-item:hover {
    background: #f5f5f5;
    border-color: #88a1c2;
}
.current-project {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1e293b;
    padding-bottom: 2rem;
    border-bottom: 2px solid #e2e8f0;
    margin-bottom: 2.5rem;
}
.completed {
    opacity: 0.5;
    text-decoration: line-through;
}
h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 1.25rem;
}
.delete-btn {
    float: right;
    padding: 2px 8px;
    background: #ef4444;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}
.delete-btn:hover {
    background: #dc2626;
}
.project-list, .todo-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.todo-checkbox {
    margin-right: 12px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}
.project-list {
    padding-bottom: 200px;
}
.slide-delete {
    position: absolute;
    right: -60px;
    top: 0;
    height: 100%;
    width: 60px;
    background: #ef4444;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    opacity: 0;
    transition: opacity 0.2s;
    border-radius: 0 8px 8px 0;
}
.slide-delete.visible {
    opacity: 1;
}
.start-btn {
    padding: 4px 12px;
    background: linear-gradient(135deg, #4CAF50 0%, #388E3C 100%);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-left: auto;
}
.start-btn:hover {
    background: linear-gradient(135deg, #45a049 0%, #357935 100%);
    transform: translateY(-1px);
}
.timer {
    color: #ef4444;
    font-weight: 600;
    margin-left: 10px;
    margin-right: 10px;
}
.todo-item.in-progress {
    border: 2px solid #4CAF50;
    background: linear-gradient(135deg, #E8F5E9 0%, #C8E6C9 100%);
}
.tabs {
    margin: 0;
    padding: 0;
    display: flex;
    gap: 1rem;
}
.tab {
    padding: 0.5rem 1rem;
    cursor: pointer;
    border-radius: 6px;
    font-weight: 500;
    color: #64748b;
    transition: all 0.2s;
}
.tab:hover {
    background: #f1f5f9;
    color: #0f172a;
}
.tab.active {
    background: linear-gradient(135deg, #4CAF50 0%, #388E3C 100%);
    color: white;
}
.clear-btn {
    margin-left: 10px;
    padding: 4px 8px;
    background: #ef4444;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: background 0.2s;
}
.clear-btn:hover {
    background: #dc2626;
}
.fullscreen-timer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.95);
    display: none;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    z-index: 9999;
    color: white;
}

.fullscreen-timer .time {
    font-size: 8rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.fullscreen-timer .task-name {
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
    padding: 0 2rem;
}

.fullscreen-timer .stop-btn {
    padding: 1rem 2rem;
    background: #ef4444;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: background 0.2s;
}

.fullscreen-timer .stop-btn:hover {
    background: #dc2626;
}

.project-item.dragging {
    opacity: 0.5;
    transform: scale(0.95);
    cursor: grabbing;
}

.project-item.drag-over {
    background: rgba(59, 130, 246, 0.1);
    border: 2px dashed #3B82F6;
    transform: translateX(5px);
    transition: all 0.2s ease;
}

.todo-item {
    cursor: grab;
    transition: all 0.2s ease;
}

.todo-item:active {
    cursor: grabbing;
}

.todo-edit-input {
    width: calc(100% - 20px);
    padding: 5px 10px;
    border: 2px solid #4CAF50;
    border-radius: 6px;
    font-size: 0.95rem;
    background: white;
    margin: 0;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
    transition: all 0.2s ease;
}

.todo-edit-input:focus {
    outline: none;
    border-color: #388E3C;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.2);
}

.attachment-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
    margin-right: 10px;
}

.upload-btn {
    background: none;
    border: none;
    color: #64748b;
    cursor: pointer;
    padding: 5px;
    transition: color 0.2s;
}

.upload-btn:hover {
    color: #4CAF50;
}

.attachments-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 8px;
    max-height: 400px;
    overflow-y: auto;
    padding-right: 8px;
}

.attachments-list::-webkit-scrollbar {
    width: 8px;
}

.attachments-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.attachments-list::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.attachments-list::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.attachment-item {
    display: flex;
    align-items: center;
    gap: 5px;
    background: #f1f5f9;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.90rem;
}

.attachment-item a {
    color: #1e293b;
    text-decoration: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.attachment-item a:hover {
    text-decoration: underline;
}

.attachment-delete-btn {
    background: none;
    border: none;
    color: #ef4444;
    cursor: pointer;
    padding: 0 4px;
    font-size: 1.1rem;
    opacity: 0;
    transition: opacity 0.2s;
}

.attachment-item:hover .attachment-delete-btn {
    opacity: 1;
}

.attachments-block {
    margin-top: 10px;
    padding: 10px;
    background: #f8fafc;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
}

.attachments-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    color: #64748b;
    font-size: 0.9rem;
}

.attachment-item {
    background: white;
    border: 1px solid #e2e8f0;
    padding: 8px;
    border-radius: 4px;
    transition: all 0.2s;
}

.attachment-item:hover {
    border-color: #4CAF50;
    background: #f0fdf4;
}

/* Style commun pour tous les boutons d'action */
.start-btn, .delete-btn, .upload-btn {
    padding: 8px 12px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    visibility: hidden;
}

/* Style spécifique pour le bouton démarrer */
.start-btn {
    background: linear-gradient(135deg, #4CAF50 0%, #388E3C 100%);
    color: white;
    margin-left: auto;
}

.start-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(76, 175, 80, 0.2);
}

/* Style spécifique pour le bouton supprimer */
.delete-btn {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    margin-left: 8px;
}

.delete-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(239, 68, 68, 0.2);
}

/* Style spécifique pour le bouton d'upload */
.upload-btn {
    background: linear-gradient(135deg, #64748b 0%, #475569 100%);
    color: white;
    margin-left: 8px;
}

.upload-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(100, 116, 139, 0.2);
}

/* Afficher les boutons au survol */
.todo-item:hover .start-btn,
.todo-item:hover .delete-btn,
.todo-item:hover .upload-btn {
    visibility: visible;
}

.project-edit-input {
    width: calc(100% - 40px);
    padding: 5px 8px;
    border: 2px solid #4CAF50;
    border-radius: 6px;
    font-size: 0.95rem;
    background: white;
    margin: 0;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
    transition: all 0.2s ease;
}

.project-edit-input:focus {
    outline: none;
    border-color: #388E3C;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.2);
}

.badge {
    background: #e2e8f0;
    color: #47556b;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    margin-left: 6px;
}

.tab.active .badge {
    background: white;
    color: #388E3C;
}
.start-btn {
    display:none;
}
/* Ajout des styles pour le badge de fichiers et la popup */
.files-badge {
    background: #e2e8f0;
    color: #475569;
    padding: 6px 15px;
    border-radius: 12px;
    font-size: 0.8rem;
    cursor: pointer;
    margin-right: 10px;
    text-align: center;
}

.files-badge:hover {
    background: #cbd5e1;
}

.attachments-popup {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    padding: 12px;
    min-width: 200px;
    display: none;
    z-index: 1000;
}

.attachments-popup.show {
    display: block;
}

.attachments-popup-header {
    font-weight: 500;
    color: #1e293b;
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e2e8f0;
}

/* Modification du style des boutons pour l'alignement */
.todo-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
    position: relative;
}

.delete-popup {
    position: absolute;
    right: 40px;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    padding: 8px;
    display: none;
    z-index: 1000;
    white-space: nowrap;
}

.delete-popup.show {
    display: flex;
    gap: 8px;
    align-items: center;
}

.delete-popup-btn {
    padding: 4px 8px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.delete-popup-btn.confirm {
    background: #4CAF50;
    color: white;
}

.delete-popup-btn.cancel {
    background: #ef4444;
    color: white;
}

.delete-popup-btn:hover {
    transform: translateY(-1px);
}

/* Style spécifique pour le bouton supprimer des projets */
.project-item .delete-btn {
    visibility: visible;
    opacity: 0;
    margin-left: auto;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    display:none;
}

.project-item:hover .delete-btn {
    opacity: 1;
}

.business-item.active .business-name {
    color: white;
}

.project-item.active .action-btn,
.business-item.active .action-btn {
    color: white;
}

.project-item.active .task-count-badge,
.business-item.active .task-count-badge {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.task-count-badge {
    min-width: 20px;
    text-align: center;
    padding: 2px 6px;
    font-size: 0.8rem;
    order: -1;
    margin:0px;
}

.note-btn {
    padding: 8px 12px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    visibility: hidden;
    background: linear-gradient(135deg, #64748b 0%, #475569 100%);
    color: white;
    margin-right: 8px;
}

.note-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(100, 116, 139, 0.2);
}

.todo-item:hover .note-btn {
    visibility: visible;
    opacity: 1;
}

.note-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: 12px;
    padding: 20px;
    width: 90%;
    max-width: 500px;
    z-index: 1000;
    display: none;
    box-shadow: 0 0 0 100vmax rgba(0, 0, 0, 0.3);
}

.note-popup.show {
    display: block;
}

.note-popup textarea {
    width: calc( 100% - 30px );
    min-height: 150px;
    max-height: calc(80vh - 140px);
    padding: 12px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    margin-bottom: 15px;
    font-family: inherit;
    resize: vertical;
    transition: all 0.2s;
    overflow-y: auto;
}

.note-popup textarea:focus {
    outline: none;
    border-color: #4CAF50;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
}

.note-popup-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
}

.note-popup-title {
    font-size: 1.1rem;
    font-weight: 500;
    color: #1e293b;
}

.note-popup-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #64748b;
    cursor: pointer;
    padding: 5px;
    transition: all 0.2s;
}

.note-popup-close:hover {
    color: #ef4444;
}

.note-popup-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.note-popup-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s;
}

.note-popup-btn.save {
    background: #4CAF50;
    color: white;
}

.note-popup-btn.save:hover {
    background: #388E3C;
}

.note-popup-btn.cancel {
    background: #ef4444;
    color: white;
}

.note-popup-btn.cancel:hover {
    background: #dc2626;
}

.note-indicator {
    color: #fbbf24;
    margin-right: 8px;
    visibility: visible;
    display: none;
}

/* Style pour le conteneur du business */
.business-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px;
}

/* Style pour le carré avec la première lettre */
.business-letter {
    width: 32px;
    height: 32px;
    background: #4f46e5;
    color: white;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.1rem;
}

/* Style pour le nom du business */
.business-name {
    font-weight: 500;
    color: #1e293b;
    flex-grow: 1;
}

/* Style pour le bouton d'ouverture de popup */
.business-popup-trigger {
    padding: 6px;
    background: none;
    border: none;
    color: #64748b;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s;
}

.business-popup-trigger:hover {
    background: #f1f5f9;
    color: #1e293b;
}

.has-note .note-indicator {
    display: inline-block;
}

.note-item {
    background: white;
    border: 1px solid #e2e8f0;
    padding: 8px;
    border-radius: 4px;
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.note-preview {
    flex: 1;
    margin-right: 8px;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
}

.note-delete-btn {
    background: none;
    border: none;
    color: #ef4444;
    cursor: pointer;
    padding: 0 4px;
    font-size: 1.1rem;
    opacity: 0;
    transition: opacity 0.2s;
}

.note-item:hover .note-delete-btn {
    opacity: 1;
}

.note-delete-confirm {
    position: absolute;
    right: 40px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    padding: 8px;
    display: none;
    z-index: 1000;
    white-space: nowrap;
}

.note-delete-confirm.show {
    display: flex;
    gap: 8px;
}

.note-delete-confirm button {
    padding: 4px 8px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    font-size: 0.875rem;
}

.note-delete-confirm .confirm-yes {
    background: #ef4444;
    color: white;
}

.note-delete-confirm .confirm-no {
    background: #e5e7eb;
    color: #374151;
}

.share-btn {
    position: relative;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #3B82F6 0%, #2563EB 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
    margin-left: auto;
}

.share-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.share-btn i {
    font-size: 1rem;
}

.share-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #ef4444;
    color: white;
    border-radius: 12px;
    padding: 2px 6px;
    font-size: 0.75rem;
    font-weight: 500;
    min-width: 18px;
    text-align: center;
    display: none;
}

.search-container {
    display: none;  /* Caché par défaut */
    margin-bottom: 1.5rem;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 0.75rem 1rem;
    padding-left: 2.5rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.9rem;
    background: white;
    transition: all 0.2s;
    box-sizing: border-box;
}

.search-input:focus {
    outline: none;
    border-color: #4CAF50;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
}

.search-icon {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
    pointer-events: none;
}

.project-item.hidden {
    display: none;
}

/* Styles pour les popups de connexion */
.login-popup, .register-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.login-content, .register-content {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    width: 100%;
    max-width: 400px;
    text-align: center;
}

.google-login-btn {
    width: 100%;
    padding: 12px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.95rem;
}

.google-login-btn:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
}

.separator {
    margin: 1.5rem 0;
    display: flex;
    align-items: center;
    color: #64748b;
}

.separator::before, .separator::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e2e8f0;
    margin: 0 10px;
}

#loginForm, #registerForm {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

#loginForm input, #registerForm input {
    padding: 12px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.95rem;
}

#loginForm button, #registerForm button {
    padding: 12px;
    background: #4CAF50;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.2s;
}

#loginForm button:hover, #registerForm button:hover {
    background: #388E3C;
}

.register-link, .login-link {
    margin-top: 1rem;
    color: #64748b;
}

.register-link a, .login-link a {
    color: #4CAF50;
    text-decoration: none;
}

.register-link a:hover, .login-link a:hover {
    text-decoration: underline;
}

/* Styles pour l'affichage utilisateur */
.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.user-name {
    font-weight: 500;
    color: #1a1a1a;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.logout-btn {
    background: none;
    border: none;
    color: #ef4444;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: all 0.2s;
}

.logout-btn:hover {
    background: #fee2e2;
}

/* Styles pour le menu utilisateur */
.user-menu {
    position: relative;
}

.avatar-wrapper {
    cursor: pointer;
    transition: opacity 0.2s;
}

.avatar-wrapper:hover {
    opacity: 0.8;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    width: 240px;
    display: none;
    z-index: 1000;
    margin-top: 8px;
}

.dropdown-menu.active {
    display: block;
}

.menu-header {
    padding: 16px;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.menu-header img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.menu-header span {
    font-weight: 500;
    color: #1a1a1a;
}

.menu-items {
    padding: 8px 0;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    color: #1a1a1a;
    text-decoration: none;
    transition: background 0.2s;
}

.menu-item:hover {
    background: #f8fafc;
}

.menu-item i {
    color: #64748b;
    width: 20px;
    text-align: center;
}

.menu-divider {
    height: 1px;
    background: #e2e8f0;
    margin: 8px 0;
}

.menu-item.logout {
    color: #ef4444;
}

.menu-item.logout i {
    color: #ef4444;
}

.menu-item.logout:hover {
    background: #fef2f2;
}

/* Modification du style pour le header-actions */
.header-actions {
    display: flex;
    justify-content: space-between !important; /* Override du style inline */
    align-items: center;
    gap: 20px;
    margin-bottom: 2rem;
}

/* Ajout d'un conteneur pour les éléments de droite */
.header-left {
    display: flex;
    align-items: center;
    gap: 20px;
}
.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Skeleton loading animation */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

.skeleton {
    background: linear-gradient(90deg, 
        rgba(240, 240, 240, 0.5) 25%, 
        rgba(224, 224, 224, 0.5) 50%, 
        rgba(240, 240, 240, 0.5) 75%
    );
    background-size: 1000px 100%;
    animation: shimmer 2s infinite linear;
}

.skeletonBlue {
    background: linear-gradient(90deg, #f0f0f0 25%, #DEE4EF 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

.project-skeleton {
    height: 40px;
    margin-bottom: 8px;
    border-radius: 8px;
    background: #f0f0f0;
    animation: pulse 1.5s infinite;
    opacity: 0.5;
}

.todo-skeleton {
    height: 75px;
    margin: 0px 0px 10px;
    border-radius: 8px;
}

/* Masquer les skeletons quand le contenu est chargé */
.loaded .skeleton {
    display: none;
}

.todo-actions .delete-btn {
    padding: 8px 12px;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    margin-left: auto;
    transition: none;
}


.fullscreen-timer .task-info {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.1);
    padding: 1rem 2rem;
    border-radius: 12px;
    margin: 0 2rem 2rem;
    text-align: center;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    max-width: 600px;
    line-height: 1.6;
    animation: fadeIn 0.5s ease-out;
}

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

/* Styles pour les notifications */
.notification-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 99999;
}

.notification {
    background: white;
    border-radius: 8px;
    padding: 12px 20px;
    margin-top: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 300px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    min-height: 48px;
}

.notification.show {
    opacity: 1;
    transform: translateY(0);
}

.notification.hide {
    opacity: 0;
    transform: translateY(-20px);
}

.notification.loading {
    border-left: 4px solid #3B82F6;
}

.notification.success {
    border-left: 4px solid #4CAF50;
}

.notification.error {
    border-left: 4px solid #ef4444;
}


.notification.loading i {
    animation: spin 1s linear infinite;
}

.share-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.share-popup-content {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.share-popup h3 {
    margin: 0 0 1.5rem;
    color: #1e293b;
}

.share-input-container {
    display: flex;
    gap: 10px;
    margin-bottom: 1rem;
}

.share-email-input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.95rem;
}

.share-email-input:focus {
    outline: none;
    border-color: #3B82F6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.add-email-btn {
    padding: 0.75rem 1rem;
    background: #3B82F6;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.add-email-btn:hover {
    background: #2563EB;
}

.share-emails-list {
    margin-bottom: 1.5rem;
}

.email-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0.5rem;
    background: #f8fafc;
    border-radius: 6px;
    margin-bottom: 0.5rem;
}

.email-item .remove-email {
    color: #ef4444;
    cursor: pointer;
    padding: 4px;
}

.share-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.share-popup-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s;
}

.share-popup-btn.confirm {
    background: #3B82F6;
    color: white;
}

.share-popup-btn.confirm:hover {
    background: #2563EB;
}

.share-popup-btn.cancel {
    background: #ef4444;
    color: white;
}

.share-popup-btn.cancel:hover {
    background: #dc2626;
}

/* Style pour la liste des partages existants */
.existing-shares {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e2e8f0;
}

.existing-shares h4 {
    color: #64748b;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.share-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem;
    background: #f8fafc;
    border-radius: 6px;
    margin-bottom: 0.5rem;
}

.share-item-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.share-permission {
    display: flex;
    align-items: center;
    gap: 4px;
}

.permission-select {
    padding: 4px 8px;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    font-size: 0.85rem;
    background: white;
}

.remove-share {
    color: #ef4444;
    cursor: pointer;
    padding: 4px;
}

.remove-share:hover {
    color: #dc2626;
}

.todo-item.dragging {
    opacity: 0.5;
    cursor: grabbing;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    background: #f8fafc;
}

.todo-item.drag-over {
    border-top: 2px solid #4CAF50;
}

.todo-item.fade-out {
    opacity: 0;
    transform: translateX(-20px);
}

.empty-state {
    text-align: center;
    padding: 2rem;
    color: #64748b;
    font-style: italic;
    list-style: none;
}

.view-note-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: 12px;
    padding: 20px;
    width: 90%;
    max-width: 500px;
    z-index: 1000;
    display: none;
    box-shadow: 0 0 0 100vmax rgba(0, 0, 0, 0.3);
}

.note-content {
    margin: 20px 0;
    white-space: pre-wrap;
    max-height: 400px;
    overflow-y: auto;
    padding: 10px;
    border: 1px solid #eee;
    border-radius: 4px;
}

.edit-note-content {
    width: 100%;
    min-height: 200px;
    margin: 20px 0;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    resize: vertical;
}

.note-popup-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 20px;
}

.note-popup-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.note-popup-btn.edit {
    background-color: #4CAF50;
    color: white;
}

.note-popup-btn.delete {
    background-color: #f44336;
    color: white;
}

.note-popup-btn.save {
    background-color: #2196F3;
    color: white;
}

.note-popup-btn.cancel {
    background-color: #9e9e9e;
    color: white;
}

/* Style pour les tâches sélectionnées */
.todo-item.selected {
    border: 2px dashed #4CAF50;
    background: linear-gradient(to bottom, #ffffff 0%, #f8fff8 100%);
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
}

/* Style pour la tâche active (focus) */
.todo-item.active {
    border: 1px solid #4CAF50;
    background: linear-gradient(to bottom, #ffffff 0%, #f8fff8 100%);
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.2);
}

/* Ajuster le style au survol pour les tâches sélectionnées */
.todo-item.selected:hover {
    border-color: #45a049;
    background: linear-gradient(to bottom, #f8fff8 0%, #f0fff0 100%);
}

.todo-container.drag-over {
    background-color: rgba(0, 0, 0, 0.05);
    border: 2px dashed #4a5568;
}

/* Style pour la zone de drop lors du réordonnancement */
.todo-item.drag-over-top {
    border-top: 2px solid #4CAF50;
}

.todo-item.drag-over-bottom {
    border-bottom: 2px solid #4CAF50;
}

/* Style pour le projet qui peut recevoir une tâche */
.project-item.can-drop {
    border: 2px dashed #4CAF50;
    background: rgba(76, 175, 80, 0.1);
    transform: translateX(5px);
    transition: all 0.2s ease;
}

/* Ajuster le style hover quand le projet peut recevoir une tâche */
.project-item.can-drop:hover {
    background: rgba(76, 175, 80, 0.2);
}

/* Style pour les menus contextuels */
.context-menu {
    position: fixed;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    min-width: 200px;
    z-index: 1000;
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.1s ease, transform 0.1s ease;
}

.context-menu.active {
    opacity: 1;
    transform: scale(1);
}

.context-menu-item {
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #1a1a1a;
    cursor: pointer;
    transition: background 0.2s;
}

.context-menu-item:first-child {
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}

.context-menu-item:last-child {
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
}

/* Gérer le cas où il y a une section ou un séparateur */
.context-menu-section + .context-menu-item:last-child,
.context-menu-separator + .context-menu-item:last-child {
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
}

.context-menu-item:hover {
    background: #f8fafc;
}

.context-menu-item i {
    color: #64748b;
    width: 16px;
}

.context-menu-separator {
    height: 1px;
    background: #e2e8f0;
    margin: 8px 0;
}

.context-menu-section {
    padding: 8px 16px;
    font-size: 0.8rem;
    color: #64748b;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Animation de clignotement pour le projet après le drop */
@keyframes projectHighlight {
    0% { background: rgba(59, 130, 246, 0.3); }
    50% { background: rgba(59, 130, 246, 0.1); }
    100% { background: transparent; }
}

.project-item.highlight {
    animation: projectHighlight 0.6s ease;
}

/* Style pour le projet qui peut recevoir une tâche */
.project-item.drag-target {
    background: rgba(59, 130, 246, 0.1);
    border: 2px dashed #3B82F6;
    transform: translateX(5px);
    transition: all 0.2s ease;
}

.project-item.drag-target:hover {
    background: rgba(59, 130, 246, 0.2);
}

/* Style pour l'indicateur de drop des projets */
.project-item.drop-above {
    position: relative;
}

.project-item.drop-above::before {
    content: '';
    position: absolute;
    top: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: #4CAF50;
    z-index: 1;
}

.project-item.drop-below {
    position: relative;
}

.project-item.drop-below::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: #4CAF50;
    z-index: 1;
}

.todo-item, .project-item {
    transition: opacity 0.3s ease, transform 0.3s ease, height 0.3s ease, margin 0.3s ease, padding 0.3s ease;
}

.fade-out {
    opacity: 0;
    transform: translateX(-20px);
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden;
}

/* Styles pour la ligne de démarcation du drag and drop */
.project-item.drag-line-top::before,
.project-item.drag-line-bottom::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: 2px;
    background: #f3f7ff;
    z-index: 2;
}

.project-item.drag-line-top::before {
    top: -1px;
}

.project-item.drag-line-bottom::after {
    bottom: -1px;
}

.project-list.sorting .project-item {
    transition: transform 0.2s ease;
}

.project-list.sorting .project-item:not(.dragging) {
    transform-origin: top;
}

.project-list.sorting .project-item.sortable-ghost {
    opacity: 0.4;
}

.attachment-preview {
    position: absolute;
    right: 0px;
    top: 0;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    padding: 5px;
    opacity: 0;
    transition: opacity 0.2s ease-in-out;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 200px;
    height: auto;
    min-height: 50px;
    max-height: 300px;
}

.attachment-preview.visible {
    opacity: 1;
}

.attachment-preview img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

/* Ajout du skeleton loader */
.attachment-preview .skeleton {
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 4px;
}

.action-btn {
    background: none;
    border: none;
    color: #64748b;
    cursor: pointer;
    padding: 4px 8px;
    font-size: 14px;
    opacity: 0;
    transition: opacity 0.2s ease, color 0.2s ease;
    margin-left: auto;
}

.project-item:hover .action-btn,
.business-item:hover .action-btn {
    opacity: 1;
}

.action-btn:hover {
    color: #1e293b;
}

/* Ajuster l'espacement des boutons d'action */
.todo-actions {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Style pour le nouveau bouton d'action à gauche */
.action-btn.left {
    margin-left: 0;
    margin-right: 8px;
    opacity: 0;
}

.todo-item:hover .action-btn.left {
    opacity: 1;
}

/* Masquer les autres boutons par défaut */
.start-btn,
.delete-btn {
    display: none;
}
.upload-btn,
.note-btn {
    display: none;
}

/* Afficher les boutons quand le menu contextuel est ouvert */
.todo-item.show-actions .upload-btn,
.todo-item.show-actions .start-btn,
.todo-item.show-actions .delete-btn,
.todo-item.show-actions .note-btn {
    display: inline-flex;
}

/* Bouton d'action pour les tâches */
.todo-item .action-btn {
    background: none;
    border: none;
    padding: 4px 8px;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.2s;
    color: #666;
    opacity: 1;

}

.todo-item:hover .action-btn {
    opacity: 1;
}

.todo-item .action-btn:hover {
    color: #333;
}

.todo-item .todo-actions {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
}

.menu-btn {
    color: #64748b;
    padding: 4px 8px;
    background: none;
    border: none;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.2s ease, color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.todo-item:hover .menu-btn {
    opacity: 1;
}

.menu-btn:hover {
    color: #1e293b;
}

/* Ajustement du positionnement des boutons d'action */
.todo-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
    position: relative;
}

/* Style spécifique pour le bouton menu */
.action-btn.menu-btn {
    position: relative;
    margin-right: 8px;
    font-size: 20px;
}

/* Ajustement de la marge pour les badges de fichiers */
.files-badge:nth-child(2) {
    margin-right: 32px;
}

/* Style pour la confirmation de suppression */
.delete-confirmation {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    padding: 8px;
    z-index: 1001;
}

.delete-confirmation.show {
    display: flex;
    gap: 8px;
}

.delete-confirmation button {
    padding: 4px 8px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
}

.delete-confirmation .confirm-delete {
    background: #ef4444;
    color: white;
}

.delete-confirmation .cancel-delete {
    background: #e5e7eb;
    color: #374151;
}

.delete-confirmation .confirm-delete:hover {
    background: #dc2626;
}

.delete-confirmation .cancel-delete:hover {
    background: #d1d5db;
}

/* Animation de disparition */
.fade-out {
    animation: fadeOut 0.3s ease-out forwards;
}

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-10px);
    }
}

/* Styles pour les icônes de notification */
.check-icon {
    width: 25px;
    height: 25px;
    border: 2px solid #4CAF50;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    transform: scale(0);
    animation: pop-in 0.5s ease-out forwards;
}

.check-icon::after {
    content: "✔";
    font-size: 15px;
    color: #4CAF50;
    font-weight: bold;
}

.times-icon {
    width: 25px;
    height: 25px;
    border: 2px solid #ef4444;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    transform: scale(0);
    animation: bounce-in 0.5s ease-out forwards;
}

.times-icon::after {
    content: "✖";
    font-size: 15px;
    color: #e74c3c;
    font-weight: bold;
}

.spinner {
    width: 20px;
    height: 20px;
    border: 5px solid #ddd;
    border-top: 5px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes pop-in {
    0% { transform: scale(0); opacity: 0; }
    80% { transform: scale(1.2); opacity: 1; }
    100% { transform: scale(1); }
}

@keyframes bounce-in {
    0% { transform: scale(0); opacity: 0; }
    60% { transform: scale(1.3); opacity: 1; }
    100% { transform: scale(1); }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.business-selector-container {    
    position: fixed;
    display: flex;
    align-items: center;
    padding: 10px;
    background: #EEE;
    border-bottom: 1px solid var(--border-color);
    top: 0px;
    width: 100%;
    color: white; 
    left: 0px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    background: linear-gradient(135deg, #3B82F6 0%, #2563EB 100%);
}

.business-switch-btn {
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    color: var(--text-color);
    margin-right: 10px;
    transition: transform 0.3s ease;
}

.business-switch-btn:hover {
    color: var(--primary-color);
}

.business-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid var(--border-color);
    border-top: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: opacity 0.3s ease, transform 0.3s ease;
    padding: 15px 25px 15px;
}

.business-dropdown.hidden {
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
}

.business-item {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.business-item .action-btn {
    opacity: 0;
    transition: opacity 0.2s;
    background: none;
    border: none;
    color: #64748b;
    cursor: pointer;
    padding: 4px 8px;
}

.business-item:hover .action-btn {
    opacity: 1;
}

.business-item.fade-out {
    opacity: 0;
    transform: translateX(-20px);
    transition: opacity 0.3s, transform 0.3s;
}

.business-name {
    flex-grow: 1;
    margin-right: 8px;
}

.business-name[contenteditable="true"] {
    outline: none;
    border-bottom: 2px solid #3b82f6;
    padding: 2px 0;
}

/* Style pour la popup de sélection de business */
.business-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.business-popup.show {
    display: flex;
}

.business-popup-content {
    background: white;
    border-radius: 12px;
    padding: 24px;
    width: 90%;
    max-width: 800px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.business-popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e5e7eb;
}

.business-popup-title {
    font-size: 1rem;
    font-weight: 600;
    color: #1e293b;
    margin:0px;
}

.business-popup-close {
    background: none;
    border: none;
    color: #64748b;
    cursor: pointer;
    font-size: 1.25rem;
    padding: 4px;
}

.business-popup-close:hover {
    color: #1e293b;
}

.business-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 60vh;
    overflow-y: auto;
}

.business-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.business-section-title {
    font-size: 0.875rem;
    color: #64748b;
    font-weight: 500;
    padding-bottom: 4px;
    border-bottom: 1px solid #e2e8f0;
}

.business-item .permission-icon {
    margin-right: 8px;
    color: #64748b;
}

.business-item .permission-icon.read {
    color: #3b82f6;
}

.business-item .permission-icon.write {
    color: #10b981;
}

/* Modifier le style du business-select pour le nouveau design */
.business-select {
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 6px;
    background: #f8fafc;
    transition: background-color 0.2s;
}

.business-select:hover {
    background: #f1f5f9;
}

/* Ajustement de la barre supérieure */
.top-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #1e88e5;
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Style pour le conteneur de l'avatar */
.avatar-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Style pour le bouton de partage */
.share-category-btn {
    margin-left: 16px;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background 0.2s;
}

.share-category-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Ajustement du style de l'avatar */
.avatar-wrapper {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.8);
}

.avatar-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.business-project-count {
    order: -1;
    background: #e2e8f0;
    color: #64748b;
    border-radius: 12px;
    padding: 2px 8px;
    font-size: 12px;
    min-width: 20px;
    text-align: center;
}

.business-item.active .business-project-count {
    background: #3b82f6;
    color: white;
}

.business-item-content {
    display: flex;
    align-items: center;
    gap: 8px;
}

.business-shared-users {
    display: flex;
    align-items: center;
    gap: -8px; /* Chevauchement négatif pour les avatars */
    margin-left: 12px;
}

.shared-user-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 500;
    color: white;
    border: 2px solid white;
    overflow: hidden;
}

.shared-user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.shared-users-counter {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #e2e8f0;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 500;
    border: 2px solid white;
}

.attachments-popup.popup-notes {
    right: 42px;
    max-width: 400px;
    top: calc(100% + 28px);
}

.attachments-popup.popup-files {
    right: 164px;
    max-width: 400px;
}

.note-item {
    background: white;
    border: 1px solid #e2e8f0;
    padding: 8px 12px;
    border-radius: 4px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Icône de note */
.note-item::before {
    content: "\f249"; /* Icône de note de Font Awesome */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: #64748b;
}

/* Container pour les boutons d'action */
.note-actions {
    display: flex;
    gap: 8px;
    margin-left: auto;
}

/* Style des boutons */
.note-view-btn,
.note-delete-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    font-size: 14px;
    color: #64748b;
    transition: color 0.2s;
}

.note-view-btn:hover {
    color: #3b82f6;
}

.note-delete-btn:hover {
    color: #ef4444;
}

/* Preview de la note */
.note-preview-container {
    position: absolute;
    left: -320px;
    top: 0;
    width: 300px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    padding: 12px;
    display: none;
}

.note-preview-container.show {
    display: block;
}

.note-preview-content {
    white-space: pre-wrap;
    font-size: 14px;
    line-height: 1.5;
    color: #1e293b;
}

/* Ajouter ces styles */
.share-indicator {
    color: #3b82f6;
    margin-left: 8px;
    font-size: 0.9em;
}

.permission-indicator {
    color: #64748b;
    margin-left: 4px;
    font-size: 0.9em;
}

.business-item[data-is-shared="true"] {
    cursor: pointer;
}

.business-item[data-is-shared="true"] .business-item-content {
    padding-right: 8px;
}

.business-item[data-permission="read"] .permission-indicator {
    color: #ef4444;
}

.business-item[data-permission="write"] .permission-indicator {
    color: #22c55e;
}

/* Ajout des styles pour la popup À propos */
.about-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.about-popup-content {
    background: white;
    border-radius: 12px;
    padding: 24px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.about-popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.about-popup-header h3 {
    margin: 0;
    font-size: 1.2rem;
    color: #1e293b;
}

.about-popup-close {
    background: none;
    border: none;
    color: #64748b;
    cursor: pointer;
    font-size: 1.25rem;
    padding: 4px;
}

.about-popup-close:hover {
    color: #1e293b;
}

.about-popup-body {
    color: #475569;
    line-height: 1.5;
}

.about-popup-body p {
    margin: 8px 0;
}

.storage-progress {
    position: absolute;
    display:none;
    left: 0;
    top: 0;
    width: 4px;
    height: 100%;
    background: #e2e8f0;
    border-radius: 2px;
    overflow: hidden;
}

.storage-progress-bar {
    height: 4px;
    background: linear-gradient(90deg, #3b82f6, #60a5fa);
    border-radius: 2px;
    position: relative;
    width: 100%;
    overflow: hidden;
}

.storage-progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.3) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    animation: shimmerStorage 2s infinite linear;
}

.storage-progress-bar.warning {
    background: linear-gradient(90deg, #f59e0b, #fbbf24);
}

.storage-progress-bar.danger {
    background: linear-gradient(90deg, #ef4444, #f87171);
}

@keyframes shimmerStorage {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

/* Nouveau conteneur pour les deux colonnes */
.business-columns {
    display: flex;
    gap: 24px;
    margin-top: 16px;
}

/* Style pour chaque colonne */
.business-column {
    flex: 1;
    min-width: 0; /* Pour éviter le débordement */
}

/* En-tête de colonne */
.business-column-header {
    font-size: 0.9rem;
    color: #64748b;
    font-weight: 600;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e5e7eb;
}

/* Style pour le conteneur du business */
.business-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px;
}

/* Style pour le carré avec la première lettre */
.business-letter {
    width: 32px;
    height: 32px;
    background: #4f46e5;
    color: white;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.1rem;
}

/* Style pour le nom du business */
.business-name {
    font-weight: 500;
    color: #1e293b;
    flex-grow: 1;
}

/* Style pour le bouton d'ouverture de popup */
.business-popup-trigger {
    padding: 6px;
    background: none;
    border: none;
    color: #64748b;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s;
}

.business-popup-trigger:hover {
    background: #f1f5f9;
    color: #1e293b;
}
