/* Notification Container */
#notification-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 400px;
    pointer-events: none;
}

/* Custom Alert */
.custom-alert {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    opacity: 0;
    transform: translateX(400px);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    pointer-events: all;
    overflow: hidden;
}

.custom-alert.show {
    opacity: 1;
    transform: translateX(0);
}

.alert-content {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    gap: 12px;
    position: relative;
}

.alert-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.alert-message {
    flex: 1;
    font-size: 15px;
    line-height: 1.5;
    color: #2c3e50;
}

.alert-close {
    background: none;
    border: none;
    color: #95a5a6;
    cursor: pointer;
    padding: 4px 8px;
    font-size: 16px;
    transition: color 0.2s;
    flex-shrink: 0;
}

.alert-close:hover {
    color: #2c3e50;
}

/* Alert Types */
.alert-success {
    border-left: 4px solid #27ae60;
}

.alert-success .alert-icon {
    color: #27ae60;
}

.alert-error {
    border-left: 4px solid #e74c3c;
}

.alert-error .alert-icon {
    color: #e74c3c;
}

.alert-warning {
    border-left: 4px solid #f39c12;
}

.alert-warning .alert-icon {
    color: #f39c12;
}

.alert-info {
    border-left: 4px solid #3498db;
}

.alert-info .alert-icon {
    color: #3498db;
}

/* Loading Alert */
.loading-alert .alert-close {
    display: none;
}

/* Custom Modal Overlay */
.custom-modal-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: 99998;
    opacity: 0;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(2px);
}

.custom-modal-overlay.show {
    opacity: 1;
}

.custom-modal-overlay.show .custom-modal {
    transform: scale(1);
    opacity: 1;
}

/* Custom Modal */
.custom-modal {
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    max-width: 500px;
    width: 90%;
    transform: scale(0.9);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.modal-header-custom {
    padding: 24px 24px 16px;
    border-bottom: 1px solid #ecf0f1;
}

.modal-header-custom h3 {
    margin: 0;
    font-size: 20px;
    color: #2c3e50;
    font-weight: 600;
}

.modal-body-custom {
    padding: 20px 24px;
}

.modal-body-custom p {
    margin: 0 0 16px 0;
    color: #7f8c8d;
    line-height: 1.6;
    font-size: 15px;
}

.prompt-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #ecf0f1;
    border-radius: 8px;
    font-size: 15px;
    transition: border-color 0.2s;
    font-family: inherit;
}

.prompt-input:focus {
    outline: none;
    border-color: #3498db;
}

.modal-footer-custom {
    padding: 16px 24px 24px;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.btn-custom {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary-custom {
    background: #3498db;
    color: white;
}

.btn-primary-custom:hover {
    background: #2980b9;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

.btn-secondary-custom {
    background: #ecf0f1;
    color: #7f8c8d;
}

.btn-secondary-custom:hover {
    background: #bdc3c7;
    color: #2c3e50;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    #notification-container {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }

    .custom-alert {
        transform: translateY(-100px);
    }

    .custom-alert.show {
        transform: translateY(0);
    }

    .custom-modal {
        max-width: 90%;
        margin: 20px;
    }

    .modal-footer-custom {
        flex-direction: column-reverse;
    }

    .btn-custom {
        width: 100%;
        justify-content: center;
    }
}