/* Custom CSS for muterconn-web */

/* Dark Mode Sidebar Links */
.sidebar-link {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    color: #9ca3af;
    transition: all 0.2s;
    cursor: pointer;
}

.sidebar-link svg {
    width: 1.25rem;
    height: 1.25rem;
    margin-right: 0.75rem;
    flex-shrink: 0;
}

.sidebar-link:hover {
    color: #ffffff;
    background-color: #2a2a2a;
}

.sidebar-link.active {
    background-color: #4f46e5;
    color: #ffffff;
}

/* Status Badges */
.status-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 9999px;
    text-transform: uppercase;
}

.status-active {
    background-color: rgba(34, 197, 94, 0.1);
    color: #4ade80;
}

.status-expired {
    background-color: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.status-canceled {
    background-color: rgba(107, 114, 128, 0.2);
    color: #9ca3af;
}

.status-pending {
    background-color: rgba(234, 179, 8, 0.1);
    color: #eab308;
}

/* Toast Notifications */
.toast {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    border-radius: 0.5rem;
    border-width: 1px;
    min-width: 260px;
    max-width: 380px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.5);
    animation: slideIn 0.3s ease-out;
    backdrop-filter: blur(4px);
}
.toast-success {
    background-color: rgba(20, 83, 45, 0.92);
    border-color: rgba(34, 197, 94, 0.4);
    color: #bbf7d0;
}
.toast-error {
    background-color: rgba(127, 29, 29, 0.92);
    border-color: rgba(239, 68, 68, 0.4);
    color: #fecaca;
}
.toast-warning {
    background-color: rgba(113, 63, 18, 0.92);
    border-color: rgba(234, 179, 8, 0.4);
    color: #fef08a;
}
.toast-info {
    background-color: rgba(30, 58, 138, 0.92);
    border-color: rgba(99, 102, 241, 0.4);
    color: #c7d2fe;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Loading Spinner */
.spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #3b82f6;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

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

/* Modal Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes scaleIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* HTMX Loading Indicators */
.htmx-indicator {
    display: none;
}

.htmx-request .htmx-indicator {
    display: inline-block;
}

.htmx-request.htmx-indicator {
    display: inline-block;
}

/* Print Styles */
@media print {
    .no-print {
        display: none !important;
    }
}

