/**
 * Custom Notification and Confirmation Dialog Styles
 */

/* Notification Container */
.notification-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 400px;
    pointer-events: none;
}

.notification {
    background: #fff;
    border-radius: 12px;
    padding: 16px 20px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: flex-start;
    gap: 12px;
    animation: slideInRight 0.3s ease-out;
    pointer-events: auto;
    border-left: 4px solid;
    position: relative;
    overflow: hidden;
}

.notification.success {
    border-left-color: #10B981;
}

.notification.error {
    border-left-color: #EF4444;
}

.notification.warning {
    border-left-color: #F59E0B;
}

.notification.info {
    border-left-color: #3B82F6;
}

.notification-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 14px;
}

.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;
    min-width: 0;
}

.notification-title {
    font-weight: 600;
    font-size: 14px;
    color: #1F2937;
    margin-bottom: 4px;
}

.notification-message {
    font-size: 13px;
    color: #6B7280;
    line-height: 1.5;
}

.notification-close {
    flex-shrink: 0;
    background: transparent;
    border: none;
    color: #9CA3AF;
    cursor: pointer;
    padding: 4px;
    line-height: 1;
    font-size: 18px;
    transition: color 0.2s;
}

.notification-close:hover {
    color: #374151;
}

.notification-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: rgba(0, 0, 0, 0.1);
    animation: progressBar 5s linear forwards;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes progressBar {
    from {
        width: 100%;
    }
    to {
        width: 0;
    }
}

/* Confirmation Modal */
.confirmation-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 10008 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.2s ease-out;
    opacity: 0;
    pointer-events: none;
}

.confirmation-modal.show {
    opacity: 1;
    pointer-events: auto;
}

.confirmation-dialog {
    background: #fff;
    border-radius: 16px;
    padding: 0;
    max-width: 440px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: scaleIn 0.2s ease-out;
    overflow: hidden;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes scaleIn {
    from {
        transform: scale(0.95);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.confirmation-header {
    padding: 24px 24px 16px;
    border-bottom: 1px solid #E5E7EB;
}

.confirmation-title {
    font-size: 18px;
    font-weight: 600;
    color: #1F2937;
    margin: 0;
}

.confirmation-body {
    padding: 20px 24px;
}

.confirmation-message {
    font-size: 14px;
    color: #6B7280;
    line-height: 1.6;
    margin: 0;
}

.confirmation-footer {
    padding: 16px 24px 24px;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    border-top: 1px solid #E5E7EB;
}

.confirmation-btn {
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.confirmation-btn-primary {
    background: #7cb342;
    color: #fff;
}

.confirmation-btn-primary:hover {
    background: #689F38;
    transform: translateY(-1px);
}

.confirmation-btn-secondary {
    background: #F3F4F6;
    color: #374151;
}

.confirmation-btn-secondary:hover {
    background: #E5E7EB;
}

/* Mobile Responsive */
@media (max-width: 640px) {
    .notification-container {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }
    
    .confirmation-dialog {
        margin: 20px;
    }
    
    .confirmation-footer {
        flex-direction: column-reverse;
    }
    
    .confirmation-btn {
        width: 100%;
    }
}

