/**
 * Zirve360 Core CSS Styles
 * Loading states and toast notifications
 */

/* Loading States */
.loading {
    position: relative;
    pointer-events: none;
}

.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    border-radius: inherit;
}

.loading-spinner {
    color: #ff6900;
    font-size: 18px;
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    max-width: 400px;
}

.toast {
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    margin-bottom: 10px;
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transform: translateX(100%);
    transition: transform 0.3s ease, opacity 0.3s ease;
    opacity: 0;
    border-left: 4px solid;
}

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

.toast-content {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.toast-close {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #999;
    padding: 0;
    margin-left: 12px;
}

.toast-close:hover {
    color: #333;
}

/* Toast Types */
.toast-success {
    border-left-color: #28a745;
}

.toast-success .toast-content i {
    color: #28a745;
}

.toast-error {
    border-left-color: #dc3545;
}

.toast-error .toast-content i {
    color: #dc3545;
}

.toast-warning {
    border-left-color: #ffc107;
}

.toast-warning .toast-content i {
    color: #ffc107;
}

.toast-info {
    border-left-color: #17a2b8;
}

.toast-info .toast-content i {
    color: #17a2b8;
}

/* Button Loading State */
button.loading {
    pointer-events: none;
    opacity: 0.7;
}

/* Responsive */
@media (max-width: 768px) {
    .toast-container {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }
    
    .toast {
        margin-bottom: 8px;
        padding: 12px;
    }
}