/* Message Notification System Styles */
.message-container {
    position: fixed;
    top: 2rem;
    right: 2rem;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-width: 400px;
}

.message {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    border-left: 4px solid #3b82f6;
    min-width: 300px;
    animation: slideInRight 0.3s ease;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.message:hover {
    transform: translateX(-4px);
}

.message.success {
    border-left-color: #10b981;
}

.message.success .icon {
    color: #10b981;
}

.message.error {
    border-left-color: #ef4444;
}

.message.error .icon {
    color: #ef4444;
}

.message.warning {
    border-left-color: #f59e0b;
}

.message.warning .icon {
    color: #f59e0b;
}

.message.info {
    border-left-color: #3b82f6;
}

.message.info .icon {
    color: #3b82f6;
}

.message .icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.message .content {
    flex: 1;
    color: #1e293b;
    font-weight: 500;
    line-height: 1.5;
    word-break: break-word;
}

.message .close-btn {
    background: none;
    border: none;
    color: #64748b;
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.message .close-btn:hover {
    background: #f1f5f9;
    color: #1e293b;
}

/* Animations */
@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.message.fade-in {
    animation: slideInRight 0.3s ease;
}

.message.message-fade-out {
    animation: slideOutRight 0.3s ease forwards;
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(120%);
        opacity: 0;
    }
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .message-container {
        right: 1rem;
        left: 1rem;
        top: 1rem;
        max-width: none;
    }

    .message {
        min-width: auto;
    }
}

/* Loading Spinner */
.loading-spinner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #e2e8f0;
    border-top: 4px solid #1565C0;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.loading-spinner.hidden {
    display: none;
}


