/**
 * Loading States & Notifications
 */

#aitools-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(31, 45, 43, 0.8);
    backdrop-filter: blur(4px);
    display: none;
    z-index: 99999;
    align-items: center;
    justify-content: center;
}

#aitools-loading-overlay.show {
    display: flex;
}

.loading-spinner {
    text-align: center;
    color: white;
}

.loading-spinner i {
    font-size: 48px;
    margin-bottom: 16px;
    color: #2ED06E;
}

.loading-message {
    font-size: 16px;
    font-weight: 600;
}

/* Notifications */
.aitools-notification {
    position: fixed;
    top: 100px;
    right: 24px;
    background: white;
    padding: 16px 24px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 100000;
    opacity: 0;
    transform: translateX(400px);
    transition: all 0.3s ease;
    max-width: 400px;
}

.aitools-notification.show {
    opacity: 1;
    transform: translateX(0);
}

.aitools-notification.success {
    border-left: 4px solid #10b981;
}

.aitools-notification.success i {
    color: #10b981;
    font-size: 20px;
}

.aitools-notification.error {
    border-left: 4px solid #dc2626;
}

.aitools-notification.error i {
    color: #dc2626;
    font-size: 20px;
}

.close-notification {
    margin-left: auto;
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #6B7C78;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-notification:hover {
    color: #1F2D2B;
}