/* Système de notifications intégrées pour NTools */

.ntools-notifications-container {
    position: fixed;
    top: 80px; /* En dessous du header */
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 400px;
    pointer-events: none;
}

.ntools-notification {
    background: var(--bg-elevated, #1a1f2e);
    border: 1px solid var(--stroke, rgba(255, 255, 255, 0.08));
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    display: flex;
    align-items: flex-start;
    gap: 12px;
    opacity: 0;
    transform: translateX(100%);
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: auto;
    position: relative;
    min-width: 300px;
    max-width: 400px;
}

.ntools-notification-show {
    opacity: 1;
    transform: translateX(0);
}

.ntools-notification-icon {
    font-size: 20px;
    line-height: 1;
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ntools-notification-content {
    flex: 1;
    min-width: 0;
}

.ntools-notification-title {
    font-weight: 600;
    font-size: 14px;
    color: var(--text-primary, #e6e8ec);
    margin-bottom: 4px;
    line-height: 1.4;
}

.ntools-notification-message {
    font-size: 13px;
    color: var(--text-secondary, #a7b0c0);
    line-height: 1.5;
    word-wrap: break-word;
}

.ntools-notification-close {
    position: absolute;
    top: 8px;
    right: 8px;
    background: transparent;
    border: none;
    color: var(--text-secondary, #a7b0c0);
    font-size: 20px;
    line-height: 1;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 4px;
    transition: background 0.2s ease, color 0.2s ease;
    flex-shrink: 0;
    padding: 0;
}

.ntools-notification-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary, #e6e8ec);
}

.ntools-notification-close:focus {
    outline: 2px solid var(--primary, #4f8cff);
    outline-offset: 2px;
}

/* Types de notifications */
.ntools-notification-info {
    border-left: 3px solid #4f8cff;
}

.ntools-notification-success {
    border-left: 3px solid #2ecc40;
}

.ntools-notification-warning {
    border-left: 3px solid #ff851b;
}

.ntools-notification-error {
    border-left: 3px solid #e74c3c;
}

/* Actions */
.ntools-notification-actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    justify-content: flex-end;
}

.ntools-notification-action {
    background: var(--chip, #1a2030);
    border: 1px solid var(--stroke, rgba(255, 255, 255, 0.08));
    border-radius: 6px;
    padding: 6px 12px;
    font-size: 12px;
    color: var(--text-primary, #e6e8ec);
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
    font-weight: 500;
}

.ntools-notification-action:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.15);
}

.ntools-notification-action:focus {
    outline: 2px solid var(--primary, #4f8cff);
    outline-offset: 2px;
}

.ntools-notification-action[data-action="confirm"] {
    background: var(--primary, #4f8cff);
    border-color: var(--primary, #4f8cff);
    color: #0b0e14;
}

.ntools-notification-action[data-action="confirm"]:hover {
    background: #3d7ae6;
    border-color: #3d7ae6;
}

/* Input pour prompt */
.ntools-notification-input {
    width: 100%;
    margin-top: 8px;
    padding: 8px 12px;
    background: var(--bg, #141820);
    border: 1px solid var(--stroke, rgba(255, 255, 255, 0.08));
    border-radius: 6px;
    color: var(--text-primary, #e6e8ec);
    font-size: 13px;
    font-family: inherit;
    transition: border-color 0.2s ease;
}

.ntools-notification-input:focus {
    outline: none;
    border-color: var(--primary, #4f8cff);
}

.ntools-notification-input::placeholder {
    color: var(--text-secondary, #a7b0c0);
}

/* Responsive */
@media (max-width: 768px) {
    .ntools-notifications-container {
        right: 12px;
        left: 12px;
        max-width: none;
    }

    .ntools-notification {
        min-width: auto;
        max-width: none;
    }
}

/* Thème clair */
[data-theme="light"] .ntools-notification {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

[data-theme="light"] .ntools-notification-title {
    color: #1a1a1a;
}

[data-theme="light"] .ntools-notification-message {
    color: #4a4a4a;
}

[data-theme="light"] .ntools-notification-close {
    color: #666;
}

[data-theme="light"] .ntools-notification-close:hover {
    background: rgba(0, 0, 0, 0.05);
    color: #1a1a1a;
}

[data-theme="light"] .ntools-notification-action {
    background: #f5f5f5;
    border-color: rgba(0, 0, 0, 0.1);
    color: #1a1a1a;
}

[data-theme="light"] .ntools-notification-action:hover {
    background: rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .ntools-notification-input {
    background: #f9f9f9;
    border-color: rgba(0, 0, 0, 0.1);
    color: #1a1a1a;
}

[data-theme="light"] .ntools-notification-input:focus {
    border-color: #4f8cff;
}


