/* Frontend Styles for Amelia Stripe Solo Integration */

.assi-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    max-width: 400px;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 999999;
    animation: assi-slide-in 0.3s ease-out;
}

@keyframes assi-slide-in {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.assi-notification.success {
    background: #d4edda;
    border-left: 4px solid #28a745;
    color: #155724;
}

.assi-notification.error {
    background: #f8d7da;
    border-left: 4px solid #dc3545;
    color: #721c24;
}

.assi-notification.warning {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    color: #856404;
}

.assi-notification .assi-notification-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: transparent;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: inherit;
    opacity: 0.7;
    padding: 0;
    line-height: 1;
}

.assi-notification .assi-notification-close:hover {
    opacity: 1;
}

.assi-notification-title {
    font-weight: bold;
    margin-bottom: 10px;
    font-size: 16px;
}

.assi-notification-message {
    font-size: 14px;
    line-height: 1.5;
}

/* Modal for booking errors */
.assi-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999998;
    display: flex;
    justify-content: center;
    align-items: center;
}

.assi-modal {
    background: white;
    padding: 30px;
    border-radius: 10px;
    max-width: 500px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.assi-modal-header {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 15px;
    color: #333;
}

.assi-modal-body {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 20px;
    color: #666;
}

.assi-modal-footer {
    text-align: right;
}

.assi-modal-button {
    background: #0073aa;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
}

.assi-modal-button:hover {
    background: #005a87;
}

.assi-modal-button.error {
    background: #dc3545;
}

.assi-modal-button.error:hover {
    background: #c82333;
}

/* Hide by default */
.assi-notification,
.assi-modal-overlay {
    display: none;
}

.assi-notification.show,
.assi-modal-overlay.show {
    display: block;
}

.assi-modal-overlay.show {
    display: flex;
}
