/* Toast Container */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Toast Notifications */
.toast {
    min-width: 300px;
    padding: 16px;
    border-radius: 8px;
    background: white;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 12px;
    transform: translateX(120%);
    transition: all 0.3s ease;
}

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

.toast-hide {
    opacity: 0;
    transform: translateX(120%);
}

.toast i:first-child {
    font-size: 1.2em;
}

.toast button {
    margin-left: auto;
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: background 0.2s;
}

.toast button:hover {
    background: rgba(0,0,0,0.1);
}

/* Toast Types */
.toast-success {
    border-left: 4px solid #4caf50;
}
.toast-success i:first-child {
    color: #4caf50;
}

.toast-error {
    border-left: 4px solid #f44336;
}
.toast-error i:first-child {
    color: #f44336;
}

.toast-warning {
    border-left: 4px solid #ff9800;
}
.toast-warning i:first-child {
    color: #ff9800;
}

.toast-info {
    border-left: 4px solid #2196f3;
}
.toast-info i:first-child {
    color: #2196f3;
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    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: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.loading-overlay.show {
    opacity: 1;
    visibility: visible;
}

.loading-spinner {
    text-align: center;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #0071bd;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Button Loading State */
button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.btn-loading {
    position: relative;
    pointer-events: none;
}

.btn-loading i {
    margin-right: 8px;
}
