/* Custom styling & enhancements for StarASN Manager */
:root {
    --bg-dark: #090d16;
    --card-bg: rgba(15, 23, 42, 0.65);
    --border-color: rgba(255, 255, 255, 0.08);
}

/* Custom modern scrollbars */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: rgba(15, 23, 42, 0.4);
}
::-webkit-scrollbar-thumb {
    background: rgba(100, 116, 139, 0.4);
    border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(148, 163, 184, 0.6);
}

/* Glassmorphism & backdrop utilities */
.glass {
    background: var(--card-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
}

.glass-card {
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.07);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

/* Tab display logic */
.tab-content {
    display: none;
}
.tab-content.active {
    display: block;
    animation: contentFade 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes contentFade {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Modal display and animation */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 50;
    align-items: center;
    justify-content: center;
    background-color: rgba(3, 7, 18, 0.75);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    padding: 1rem;
    overflow-y: auto;
}

.modal.show {
    display: flex;
}

.modal-content {
    animation: modalPop 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalPop {
    from {
        opacity: 0;
        transform: scale(0.96) translateY(8px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Compatibility classes for legacy buttons & elements */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 0.625rem;
    transition: all 0.15s ease-in-out;
    cursor: pointer;
    white-space: nowrap;
    border: 1px solid transparent;
}

.btn:active {
    transform: scale(0.97);
}

.btn.sm {
    padding: 0.35rem 0.65rem;
    font-size: 0.75rem;
    border-radius: 0.5rem;
}

.btn.primary {
    background: linear-gradient(135deg, #3b82f6 0%, #4f46e5 100%);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.25);
}
.btn.primary:hover {
    background: linear-gradient(135deg, #2563eb 0%, #4338ca 100%);
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.35);
}

.btn.secondary {
    background: rgba(30, 41, 59, 0.7);
    color: #cbd5e1;
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.btn.secondary:hover {
    background: rgba(51, 65, 85, 0.8);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.2);
}

.btn.danger {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.3);
}
.btn.danger:hover {
    background: #ef4444;
    color: #ffffff;
    border-color: #ef4444;
}

/* Action buttons wrapper in tables */
.action-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
    align-items: center;
}

/* Hide scrollbar for clean horizontal nav on mobile */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}
.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}
