/* Popup Overlay */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    backdrop-filter: blur(5px);
}

/* Popup Container */
.popup-container {
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 15px;
    padding: 0;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transform: scale(0.7);
    opacity: 0;
    transition: all 0.3s ease;
    overflow: hidden;
}

.popup-overlay.show .popup-container {
    transform: scale(1);
    opacity: 1;
}

/* Popup Header */
.popup-header {
    background: linear-gradient(135deg, #4a90e2, #7b68ee);
    padding: 20px;
    text-align: center;
    position: relative;
}

.popup-header h3 {
    color: white;
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.popup-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Popup Content */
.popup-content {
    padding: 25px;
    color: #e0e0e0;
    line-height: 1.6;
    text-align: center;
}

.popup-content p {
    margin: 0 0 15px 0;
}

.popup-content p:last-child {
    margin-bottom: 0;
}

/* Popup Footer */
.popup-footer {
    padding: 20px 25px 25px;
    text-align: center;
}

.popup-btn {
    background: linear-gradient(135deg, #4a90e2, #7b68ee);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    min-width: 100px;
}

.popup-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(74, 144, 226, 0.4);
}

.popup-btn:active {
    transform: translateY(0);
}

/* Success Popup */
.popup-success .popup-header {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
}

.popup-success .popup-btn {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
}

.popup-success .popup-btn:hover {
    box-shadow: 0 5px 15px rgba(39, 174, 96, 0.4);
}

/* Error Popup */
.popup-error .popup-header {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
}

.popup-error .popup-btn {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
}

.popup-error .popup-btn:hover {
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.4);
}

/* Warning Popup */
.popup-warning .popup-header {
    background: linear-gradient(135deg, #f39c12, #e67e22);
}

.popup-warning .popup-btn {
    background: linear-gradient(135deg, #f39c12, #e67e22);
}

.popup-warning .popup-btn:hover {
    box-shadow: 0 5px 15px rgba(243, 156, 18, 0.4);
}

/* Info Popup */
.popup-info .popup-header {
    background: linear-gradient(135deg, #3498db, #2980b9);
}

.popup-info .popup-btn {
    background: linear-gradient(135deg, #3498db, #2980b9);
}

.popup-info .popup-btn:hover {
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.4);
}

/* Welcome Popup */
.popup-welcome .popup-header {
    background: linear-gradient(135deg, #9b59b6, #8e44ad);
}

.popup-welcome .popup-btn {
    background: linear-gradient(135deg, #9b59b6, #8e44ad);
}

.popup-welcome .popup-btn:hover {
    box-shadow: 0 5px 15px rgba(155, 89, 182, 0.4);
}

/* Animation */
@keyframes popupIn {
    from {
        transform: scale(0.7) translateY(-50px);
        opacity: 0;
    }
    to {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

@keyframes popupOut {
    from {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
    to {
        transform: scale(0.7) translateY(-50px);
        opacity: 0;
    }
}

.popup-overlay.show {
    animation: popupIn 0.3s ease forwards;
}

.popup-overlay.hide {
    animation: popupOut 0.3s ease forwards;
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column-reverse;
    gap: 10px;
}

.toast {
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 10px;
    padding: 15px 20px;
    min-width: 300px;
    max-width: 400px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    transform: translateY(100%);
    opacity: 0;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

.toast.hide {
    transform: translateY(100%);
    opacity: 0;
}

/* Toast Header */
.toast-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.toast-title {
    color: #ffffff;
    font-weight: 600;
    font-size: 14px;
    margin: 0;
}

.toast-close {
    background: none;
    border: none;
    color: #888;
    cursor: pointer;
    font-size: 16px;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.toast-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

/* Toast Content */
.toast-message {
    color: #e0e0e0;
    font-size: 13px;
    line-height: 1.4;
    margin: 0;
}

/* Toast Types */
.toast-success {
    border-left: 4px solid #27ae60;
    background: linear-gradient(135deg, #1a1a1a, #1e2a1e);
}

.toast-success .toast-title {
    color: #27ae60;
}

.toast-error {
    border-left: 4px solid #e74c3c;
    background: linear-gradient(135deg, #1a1a1a, #2a1e1e);
}

.toast-error .toast-title {
    color: #e74c3c;
}

.toast-warning {
    border-left: 4px solid #f39c12;
    background: linear-gradient(135deg, #1a1a1a, #2a251e);
}

.toast-warning .toast-title {
    color: #f39c12;
}

.toast-info {
    border-left: 4px solid #3498db;
    background: linear-gradient(135deg, #1a1a1a, #1e252a);
}

.toast-info .toast-title {
    color: #3498db;
}

.toast-welcome {
    border-left: 4px solid #9b59b6;
    background: linear-gradient(135deg, #1a1a1a, #251e2a);
}

.toast-welcome .toast-title {
    color: #9b59b6;
}

/* Toast Progress Bar */
.toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: rgba(255, 255, 255, 0.2);
    width: 100%;
    overflow: hidden;
}

.toast-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #a259ff, #7c3aed);
    width: 100%;
    transform: translateX(-100%);
    transition: transform linear;
}

/* Toast Icons */
.toast-icon {
    margin-right: 10px;
    font-size: 16px;
}

.toast-success .toast-icon {
    color: #27ae60;
}

.toast-error .toast-icon {
    color: #e74c3c;
}

.toast-warning .toast-icon {
    color: #f39c12;
}

.toast-info .toast-icon {
    color: #3498db;
}

.toast-welcome .toast-icon {
    color: #9b59b6;
} 