/* Styles pour les modals */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    align-items: center;
    justify-content: center;
    z-index: 50;
}

.modal.hidden {
    display: none !important;
}

.modal:not(.hidden) {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 0.5rem;
    padding: 1.5rem;
    max-width: 28rem;
    width: 100%;
    margin: 1rem;
}

.modal-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #1f2937;
}

.modal-input {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    margin-bottom: 1rem;
    outline: none;
    transition: border-color 0.2s;
}

.modal-input:focus {
    border-color: #9333ea;
    box-shadow: 0 0 0 3px rgba(147, 51, 234, 0.1);
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
}

.modal-btn {
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    border: none;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s;
}

.modal-btn-cancel {
    background: #d1d5db;
    color: #374151;
}

.modal-btn-cancel:hover {
    background: #9ca3af;
}

.modal-btn-confirm {
    background: #9333ea;
    color: white;
}

.modal-btn-confirm:hover {
    background: #7e22ce;
}

.modal-btn-rename {
    background: #eab308;
}

.modal-btn-rename:hover {
    background: #ca8a04;
}

.modal-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.3);
}

/* Styles pour les alertes */
.alert {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 0.375rem;
}

.alert.hidden {
    display: none;
}

.alert-success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.alert-error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.alert-info {
    background: #dbeafe;
    color: #1e40af;
    border: 1px solid #93c5fd;
}

.alert-warning {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fde68a;
}

/* Styles pour les icônes de modal */
.modal-icon-danger,
.modal-icon-warning,
.modal-icon-info {
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 2rem;
}

.modal-icon-danger {
    background: #fee2e2;
    color: #dc2626;
}

.modal-icon-warning {
    background: #fef3c7;
    color: #d97706;
}

.modal-icon-info {
    background: #dbeafe;
    color: #2563eb;
}

.modal-message {
    text-align: center;
    color: #374151;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.modal-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: #f9fafb;
    border-radius: 0.5rem;
}

.modal-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: white;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: background-color 0.2s;
}

.modal-option:hover {
    background: #f3f4f6;
}

.modal-option input[type="radio"] {
    accent-color: #667eea;
    cursor: pointer;
}

.modal-option span {
    flex: 1;
    font-size: 0.875rem;
    color: #374151;
}

.modal-btn-primary {
    background: #3b82f6;
    color: white;
}

.modal-btn-primary:hover {
    background: #2563eb;
}

.modal-btn-danger {
    background: #ef4444;
    color: white;
}

.modal-btn-danger:hover {
    background: #dc2626;
}
