/**
 * ConnecThrive Toast Notifications
 * Modern alert replacement with smooth animations
 */

/* Toast Container */
.connecthrive-toast-container {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 999999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

/* Toast Item */
.connecthrive-toast {
    background: #ffffff;
    border-radius: 12px;
    padding: 16px 20px;
    min-width: 300px;
    max-width: 400px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 12px;
    pointer-events: auto;
    transform: translateX(400px);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    position: relative;
    overflow: hidden;
}

.connecthrive-toast.show {
    transform: translateX(0);
    opacity: 1;
}

.connecthrive-toast.hide {
    transform: translateX(400px);
    opacity: 0;
}

/* Toast Icon */
.connecthrive-toast-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 14px;
}

/* Success Toast */
.connecthrive-toast.success {
    border-left: 4px solid #27ae60;
}

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

/* Error Toast */
.connecthrive-toast.error {
    border-left: 4px solid #e74c3c;
}

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

/* Warning Toast */
.connecthrive-toast.warning {
    border-left: 4px solid #f39c12;
}

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

/* Info Toast */
.connecthrive-toast.info {
    border-left: 4px solid #3498db;
}

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

/* Toast Content */
.connecthrive-toast-content {
    flex: 1;
}

.connecthrive-toast-title {
    font-weight: 600;
    font-size: 14px;
    color: #2c3e50;
    margin: 0 0 4px 0;
    line-height: 1.3;
}

.connecthrive-toast-message {
    font-size: 13px;
    color: #7f8c8d;
    margin: 0;
    line-height: 1.4;
}

/* Close Button */
.connecthrive-toast-close {
    width: 20px;
    height: 20px;
    border: none;
    background: transparent;
    color: #95a5a6;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
    flex-shrink: 0;
}

.connecthrive-toast-close:hover {
    background: #ecf0f1;
    color: #2c3e50;
}

/* Progress Bar */
.connecthrive-toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: currentColor;
    opacity: 0.3;
    transition: width linear;
}

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

.connecthrive-toast.error .connecthrive-toast-progress {
    color: #e74c3c;
}

.connecthrive-toast.warning .connecthrive-toast-progress {
    color: #f39c12;
}

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

/* Mobile Responsive */
@media (max-width: 768px) {
    .connecthrive-toast-container {
        top: 60px;
        right: 10px;
        left: 10px;
    }

    .connecthrive-toast {
        min-width: auto;
        max-width: 100%;
    }
}

/* Force Light Mode - Remove Dark Mode */
.connecthrive-toast {
    background: #ffffff !important;
}

.connecthrive-toast-title {
    color: #2c3e50 !important;
}

.connecthrive-toast-message {
    color: #7f8c8d !important;
}

.connecthrive-toast-close {
    color: #95a5a6 !important;
}

.connecthrive-toast-close:hover {
    background: #ecf0f1 !important;
    color: #2c3e50 !important;
}
