﻿.popup-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

    .popup-container.active {
        opacity: 1;
        visibility: visible;
    }

.popup {
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    width: 90%;
    max-width: 450px;
    overflow: hidden;
    transform: translateY(30px) scale(0.95);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.popup-container.active .popup {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.popup-header {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #f0f0f0;
}

.popup-title {
    font-size: 18px;
    font-weight: 600;
    color: #2d3748;
}

.close-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #f8f9fa;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

    .close-btn:hover {
        background: #edf2f7;
        transform: rotate(90deg);
    }

.close-icon {
    width: 16px;
    height: 16px;
    position: relative;
}

    .close-icon:before, .close-icon:after {
        content: '';
        position: absolute;
        width: 100%;
        height: 2px;
        background: #718096;
        top: 50%;
        left: 0;
        transition: all 0.3s ease;
    }

    .close-icon:before {
        transform: rotate(45deg);
    }

    .close-icon:after {
        transform: rotate(-45deg);
    }

.close-btn:hover .close-icon:before, .close-btn:hover .close-icon:after {
    background: #4a5568;
}

.popup-body {
    padding: 24px;
}

.message-content {
    margin-bottom: 20px;
    font-size: 16px;
    line-height: 1.6;
    color: #4a5568;
}

.message-date {
    font-size: 14px;
    color: #a0aec0;
    display: flex;
    align-items: center;
    margin-top: 16px;
}

.calendar-icon {
    margin-right: 8px;
    width: 16px;
    height: 16px;
}

.popup-footer {
    padding: 16px 24px;
    background: #f8f9fa;
    display: flex;
    justify-content: flex-end;
}

.action-btn {
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background: #4299e1;
    color: white;
}

    .btn-primary:hover {
        background: #3182ce;
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(66, 153, 225, 0.3);
    }

/* Message type styles */
.info-message .popup-title {
    color: #4299e1;
}

.success-message .popup-title {
    color: #48bb78;
}

.warning-message .popup-title {
    color: #ed8936;
}

.error-message .popup-title {
    color: #f56565;
}

/* Animation variations */
@@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@@keyframes slideIn {
    from {
        transform: translateY(30px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@@keyframes scaleIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.animate-fade {
    animation: fadeIn 0.5s ease forwards;
}

.animate-slide {
    animation: slideIn 0.5s ease forwards;
}

.animate-scale {
    animation: scaleIn 0.5s ease forwards;
}

.trigger-btn {
    padding: 14px 28px;
    background: #4299e1;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 14px rgba(66, 153, 225, 0.4);
}

    .trigger-btn:hover {
        background: #3182ce;
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(66, 153, 225, 0.5);
    }

.btn-container {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.type-btn {
    padding: 10px 16px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
}

.btn-info {
    background: #bee3f8;
    color: #2b6cb0;
}

.btn-success {
    background: #c6f6d5;
    color: #2f855a;
}

.btn-warning {
    background: #feebc8;
    color: #c05621;
}

.btn-error {
    background: #fed7d7;
    color: #c53030;
}

.type-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.btn-download {
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    color: white;
    box-shadow: 0 4px 14px rgba(72, 187, 120, 0.4);
}

    .btn-download:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(72, 187, 120, 0.5);
    }

.download-icon {
    width: 16px;
    height: 16px;
}
