/* Glass Panel */
.glass-panel {
    background-color: rgba(30, 41, 59, 0.6);
    /* Slate-800 with opacity */
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

/* Tabs */
.nav-tab.active {
    background-color: #3B82F6;
    /* Primary */
    color: white;
}

/* Tab Views */
.view-content {
    display: none;
    animation: fadeIn 0.3s ease-out;
}

.view-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Number Input resets */
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type=number] {
    -moz-appearance: textfield;
}

/* Checkbox Style */
input[type="checkbox"] {
    accent-color: #3B82F6;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #334155;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #475569;
}

/* Safe Area */
.pt-safe {
    padding-top: env(safe-area-inset-top);
}

/* Loader Animation */
.spinner {
    animation: spin 1s linear infinite;
}

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

/* Vendor card hover effect */
.vendor-card {
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.vendor-card:hover {
    transform: translateY(-2px);
    border-color: #475569;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
}

/* Sparkline canvas container */
.sparkline-container {
    mask-image: linear-gradient(to bottom, black 50%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 50%, transparent 100%);
}