/* Custom Styles for active states and transitions */
.nav-link {
    transition: all 0.2s ease-in-out;
}

.active-nav {
    background-color: rgba(67, 56, 202, 1); /* Indigo 700 */
    border-left: 4px solid #fbbf24; /* yellow 400 */
    color: white;
}

.tab-content {
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

.drop-zone-active {
    border-color: #4f46e5 !important; /* Indigo 600 */
    background-color: #e0e7ff !important; /* Indigo 50 */
}

/* Custom scrollbar for tables and filters */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: #f1f1f1; 
    border-radius: 4px;
}
::-webkit-scrollbar-thumb {
    background: #cbd5e1; 
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #94a3b8; 
}

.switching-device-placeholder-row td {
    color: transparent;
}

.switching-category-bar {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
    gap: 0.5rem;
    padding: 0.5rem;
    background: linear-gradient(180deg, #f8fafc 0%, #eef2ff 100%);
    border: 1px solid #e5e7eb;
    border-radius: 1rem;
}

.switching-category-tab {
    width: 100%;
    min-height: 3rem;
    padding: 0.75rem 1rem;
    border-radius: 0.875rem;
    border: 1px solid transparent;
    background: transparent;
    color: #475569;
    font-size: 0.95rem;
    font-weight: 600;
    text-align: center;
    transition: all 0.2s ease-in-out;
}

.switching-category-tab:hover {
    color: #1e293b;
    background: rgba(255, 255, 255, 0.7);
}

.switching-category-tab.active {
    background: linear-gradient(135deg, #ffffff 0%, #eef2ff 100%);
    border-color: #c7d2fe;
    color: #4338ca;
    box-shadow: 0 10px 25px -18px rgba(67, 56, 202, 0.9);
}

@media (max-width: 640px) {
    .switching-category-bar {
        grid-template-columns: 1fr;
    }
}
