/* ============================================
   NOTIFICATIONS SYSTEM
   ============================================ */

.notification-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.notification {
    background: white;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 300px;
    max-width: 400px;
    pointer-events: all;
    animation: slideIn 0.3s ease-out;
    position: relative;
    overflow: hidden;
}

.notification::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
}

.notification.success::before {
    background: #10B981;
}

.notification.error::before {
    background: #EF4444;
}

.notification.warning::before {
    background: #F59E0B;
}

.notification.info::before {
    background: #3B82F6;
}

.notification-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.notification.success .notification-icon {
    background: #D1FAE5;
    color: #10B981;
}

.notification.error .notification-icon {
    background: #FEE2E2;
    color: #EF4444;
}

.notification.warning .notification-icon {
    background: #FEF3C7;
    color: #F59E0B;
}

.notification.info .notification-icon {
    background: #DBEAFE;
    color: #3B82F6;
}

.notification-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.notification-title {
    font-weight: 600;
    font-size: 0.875rem;
    color: #111827;
}

.notification-message {
    font-size: 0.875rem;
    color: #6B7280;
    line-height: 1.4;
}

.notification-close {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: #9CA3AF;
    cursor: pointer;
    padding: 0;
    transition: color 0.2s;
}

.notification-close:hover {
    color: #111827;
}

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

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(400px);
        opacity: 0;
    }
}

.notification.removing {
    animation: slideOut 0.3s ease-out forwards;
}

/* Confirm Dialog */
.confirm-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    animation: fadeIn 0.2s ease-out;
}

.confirm-dialog {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: scaleIn 0.2s ease-out;
}

.confirm-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.confirm-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #FEF3C7;
    color: #F59E0B;
}

.confirm-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #111827;
}

.confirm-message {
    color: #6B7280;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.confirm-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
}

.confirm-btn {
    padding: 0.625rem 1.25rem;
    border: none;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.875rem;
}

.confirm-btn-cancel {
    background: #F3F4F6;
    color: #374151;
}

.confirm-btn-cancel:hover {
    background: #E5E7EB;
}

.confirm-btn-confirm {
    background: #DC2626;
    color: white;
}

.confirm-btn-confirm:hover {
    background: #B91C1C;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes scaleIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

@media (max-width: 768px) {
    .notification-container {
        right: 10px;
        left: 10px;
        top: 10px;
    }
    
    .notification {
        min-width: auto;
        width: 100%;
        padding: 1rem 1.25rem;
        border-radius: 8px;
    }

    .notification-icon {
        width: 28px;
        height: 28px;
    }

    .notification-icon svg {
        width: 18px;
        height: 18px;
    }

    .notification-title {
        font-size: 0.9375rem;
    }

    .notification-message {
        font-size: 0.875rem;
        line-height: 1.5;
    }

    .notification-close {
        width: 24px;
        height: 24px;
    }

    /* Confirm Dialog */
    .confirm-dialog {
        width: 95%;
        max-width: 90%;
        padding: 1.5rem;
        border-radius: 12px;
    }

    .confirm-header {
        margin-bottom: 1rem;
        gap: 0.875rem;
    }

    .confirm-icon {
        width: 44px;
        height: 44px;
    }

    .confirm-icon svg {
        width: 24px;
        height: 24px;
    }

    .confirm-title {
        font-size: 1.125rem;
    }

    .confirm-message {
        font-size: 0.9375rem;
        margin-bottom: 1.5rem;
        line-height: 1.6;
    }

    .confirm-actions {
        flex-direction: column-reverse;
        gap: 0.625rem;
    }

    .confirm-btn {
        width: 100%;
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
        border-radius: 8px;
        justify-content: center;
        display: flex;
    }

    .confirm-btn-confirm {
        order: -1;
    }
}

@media (max-width: 480px) {
    .notification-container {
        right: 8px;
        left: 8px;
        top: 8px;
    }

    .notification {
        padding: 0.875rem 1rem;
    }

    .confirm-dialog {
        width: 100%;
        max-width: 100%;
        padding: 1.25rem;
    }

    .confirm-header {
        flex-direction: column;
        text-align: center;
    }

    .confirm-icon {
        width: 48px;
        height: 48px;
        margin: 0 auto;
    }

    .confirm-title {
        font-size: 1rem;
    }

    .confirm-message {
        text-align: center;
    }
}

