/* ============================================
   Brikerbox v3 - Enterprise IP PBX Platform
   Custom Stylesheet
   ============================================ */

/* ---------- CSS Variables ---------- */
:root {
    --primary: #4f46e5;
    --primary-light: #6366f1;
    --primary-dark: #4338ca;
    --accent: #7c3aed;
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --dark: #1e293b;
    --body-bg: #ffffff;
    --light-bg: #f8fafc;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    --border-light: #e2e8f0;
    --shadow-sm: 0 1px 3px rgba(0,0,0,.08);
    --shadow-md: 0 4px 14px rgba(0,0,0,.08);
    --shadow-lg: 0 10px 40px rgba(0,0,0,.1);
    --radius: 0.75rem;
    --radius-lg: 1rem;
    --transition: all 0.3s ease;
}

/* ---------- Global Resets ---------- */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text-primary);
    background: var(--body-bg);
    overflow-x: hidden;
}

::selection {
    background: var(--primary);
    color: #fff;
}

/* ---------- Navbar ---------- */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: var(--transition);
    padding: 0.75rem 0;
    z-index: 1050;
}

.navbar.scrolled {
    box-shadow: var(--shadow-md);
    padding: 0.5rem 0;
}

.navbar .nav-link {
    font-size: 0.9rem;
    padding: 0.5rem 1rem !important;
    border-radius: var(--radius);
    transition: var(--transition);
    position: relative;
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
    color: var(--primary) !important;
    background: rgba(79, 70, 229, 0.06);
}

.navbar .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
}

.navbar-brand img,
#app-logo {
    transition: var(--transition);
}

.navbar.scrolled .navbar-brand img,
.navbar.scrolled #app-logo {
    height: 36px !important;
}

/* ---------- Buttons ---------- */
.btn-primary {
    background: var(--primary);
    border-color: var(--primary);
    border-radius: var(--radius);
    font-weight: 600;
    padding: 0.6rem 1.5rem;
    transition: var(--transition);
}

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.35);
}

.btn-outline-dark {
    border-radius: var(--radius);
    font-weight: 600;
    padding: 0.6rem 1.5rem;
    transition: var(--transition);
}

.btn-outline-dark:hover {
    transform: translateY(-1px);
}

.btn-outline-primary {
    border-radius: var(--radius);
    font-weight: 600;
    padding: 0.6rem 1.5rem;
    transition: var(--transition);
}

.btn-outline-primary:hover {
    transform: translateY(-1px);
}

.btn-gradient {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border: none;
    color: #fff;
    border-radius: var(--radius);
    font-weight: 600;
    padding: 0.6rem 1.5rem;
    transition: var(--transition);
}

.btn-gradient:hover {
    background: linear-gradient(135deg, var(--primary-dark), #6d28d9);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(79, 70, 229, 0.4);
}

.btn-light {
    border-radius: var(--radius);
    font-weight: 600;
    transition: var(--transition);
}

.btn-light:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

/* ---------- Hero Section ---------- */
.hero-section {
    padding: 140px 0 80px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #f0f0ff 0%, #ffffff 40%, #f8f0ff 100%);
}

.hero-section .grid-bg {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(79, 70, 229, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(79, 70, 229, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ---------- Mockup ---------- */
.mockup-container {
    position: relative;
    perspective: 1000px;
}

.mockup-card {
    background: #fff;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    transition: transform 0.4s ease;
}

.mockup-card:hover {
    transform: rotateY(-2deg) rotateX(1deg);
}

.floating-card {
    position: absolute;
    background: #fff;
    border-radius: var(--radius);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-lg);
    padding: 12px 18px;
    z-index: 2;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* ---------- Page Header (inner pages) ---------- */
.page-header {
    padding: 140px 0 60px;
    position: relative;
    overflow: hidden;
}

.page-header.bg-gradient-primary {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 50%, #6366f1 100%);
}

.page-header.bg-gradient-dark {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
}

.page-header.bg-gradient-accent {
    background: linear-gradient(135deg, #7c3aed 0%, #a855f7 50%, #6366f1 100%);
}

.page-header .grid-overlay {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 1px 1px, rgba(255,255,255,0.08) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
}

.page-header .shape-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.15;
    pointer-events: none;
}

/* ---------- Section Styling ---------- */
.section-label {
    text-transform: uppercase;
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 2px;
    color: var(--primary);
    margin-bottom: 0.75rem;
}

.section-title {
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.section-desc {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.7;
    max-width: 640px;
}

/* ---------- Feature Cards ---------- */
.feature-card {
    background: #fff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 2rem;
    transition: var(--transition);
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(79, 70, 229, 0.2);
}

.feature-card .icon-box {
    width: 56px;
    height: 56px;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 1.25rem;
    transition: var(--transition);
}

.feature-card:hover .icon-box {
    transform: scale(1.1);
}

.icon-box-primary {
    background: rgba(79, 70, 229, 0.1);
    color: var(--primary);
}

.icon-box-success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
}

.icon-box-warning {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning);
}

.icon-box-accent {
    background: rgba(124, 58, 237, 0.1);
    color: var(--accent);
}

.icon-box-danger {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
}

.icon-box-dark {
    background: rgba(30, 41, 59, 0.1);
    color: var(--dark);
}

/* ---------- Stat Cards ---------- */
.stat-card {
    background: #fff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    text-align: center;
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.stat-card .stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 0.25rem;
}

.stat-card .stat-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* ---------- Custom Pills / Tabs ---------- */
.nav-pills-custom .nav-link {
    text-align: left;
    padding: 1rem 1.25rem;
    border-radius: var(--radius);
    border: 1px solid transparent;
    margin-bottom: 0.5rem;
    transition: var(--transition);
    background: #fff;
}

.nav-pills-custom .nav-link:hover {
    border-color: var(--border-light);
    box-shadow: var(--shadow-sm);
}

.nav-pills-custom .nav-link.active {
    background: #fff;
    border-color: var(--primary);
    box-shadow: 0 2px 10px rgba(79, 70, 229, 0.12);
}

.tab-icon-box {
    width: 44px;
    height: 44px;
    border-radius: 0.625rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(79, 70, 229, 0.08);
    margin-right: 1rem;
    font-size: 1.2rem;
    flex-shrink: 0;
}

/* ---------- App Grid (Ecosystem) ---------- */
.app-grid .card {
    border-radius: var(--radius);
    transition: var(--transition);
    cursor: pointer;
}

.app-grid .card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.border-dashed {
    border-style: dashed !important;
}

.cursor-pointer {
    cursor: pointer;
}

/* ---------- Process / Steps ---------- */
.step-item {
    position: relative;
    padding-left: 4rem;
    margin-bottom: 2rem;
}

.step-item .step-number {
    position: absolute;
    left: 0;
    top: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
}

.step-item::before {
    content: '';
    position: absolute;
    left: 21px;
    top: 48px;
    bottom: -16px;
    width: 2px;
    background: var(--border-light);
}

.step-item:last-child::before {
    display: none;
}

/* ---------- Pricing / Plan Cards ---------- */
.plan-card {
    background: #fff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 2.5rem 2rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.plan-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.plan-card.featured {
    border-color: var(--primary);
    box-shadow: 0 0 0 1px var(--primary), var(--shadow-lg);
}

.plan-card.featured::before {
    content: 'Populer';
    position: absolute;
    top: 16px;
    right: -30px;
    background: var(--primary);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 36px;
    transform: rotate(45deg);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.plan-card .plan-price {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1;
}

/* ---------- Testimonial ---------- */
.testimonial-card {
    background: #fff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 2rem;
    transition: var(--transition);
}

.testimonial-card:hover {
    box-shadow: var(--shadow-md);
}

.testimonial-card .stars {
    color: var(--warning);
}

/* ---------- Timeline ---------- */
.timeline-item {
    position: relative;
    padding-left: 3rem;
    padding-bottom: 2.5rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 11px;
    top: 28px;
    bottom: 0;
    width: 2px;
    background: var(--border-light);
}

.timeline-item:last-child::before {
    display: none;
}

.timeline-item .timeline-dot {
    position: absolute;
    left: 0;
    top: 6px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 3px solid var(--primary);
    background: #fff;
    z-index: 1;
}

.timeline-item .timeline-dot.active {
    background: var(--primary);
}

/* ---------- Integration Logos Grid ---------- */
.integration-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    padding: 1.5rem;
    height: 100px;
    transition: var(--transition);
}

.integration-logo:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-sm);
    transform: translateY(-2px);
}

.integration-logo i {
    font-size: 2rem;
    color: var(--text-secondary);
    transition: var(--transition);
}

.integration-logo:hover i {
    color: var(--primary);
}

/* ---------- Code Block ---------- */
.code-block {
    background: #1e293b;
    border-radius: var(--radius);
    padding: 1.5rem;
    color: #e2e8f0;
    font-family: 'SFMono-Regular', 'Fira Code', monospace;
    font-size: 0.85rem;
    line-height: 1.7;
    overflow-x: auto;
}

.code-block .keyword { color: #c084fc; }
.code-block .string { color: #34d399; }
.code-block .comment { color: #64748b; }
.code-block .function { color: #60a5fa; }
.code-block .variable { color: #fbbf24; }

/* ---------- FAQ Accordion ---------- */
.faq-accordion .accordion-button {
    font-weight: 600;
    color: var(--text-primary);
    background: #fff;
    border: none;
    box-shadow: none !important;
    padding: 1.25rem 0;
}

.faq-accordion .accordion-button:not(.collapsed) {
    color: var(--primary);
}

.faq-accordion .accordion-item {
    border: none;
    border-bottom: 1px solid var(--border-light);
}

.faq-accordion .accordion-body {
    color: var(--text-secondary);
    padding: 0 0 1.25rem 0;
    line-height: 1.7;
}

/* ---------- Contact Form ---------- */
.contact-form .form-control,
.contact-form .form-select {
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    transition: var(--transition);
}

.contact-form .form-control:focus,
.contact-form .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.contact-form label {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

/* ---------- Footer ---------- */
footer {
    background: #fff;
}

footer a.hover-primary {
    transition: var(--transition);
}

footer a.hover-primary:hover {
    color: var(--primary) !important;
}

/* ---------- Utility Classes ---------- */
.tracking-wider {
    letter-spacing: 0.08em;
}

.bg-indigo {
    background-color: var(--primary) !important;
}

.text-indigo {
    color: var(--primary) !important;
}

.bg-light-custom {
    background-color: var(--light-bg);
}

.z-1 {
    z-index: 1;
}

.grayscale-logos > * {
    opacity: 0.6;
    transition: var(--transition);
}

.grayscale-logos > *:hover {
    opacity: 1;
}

.gap-icon {
    gap: 0.75rem;
}

/* ---------- Divider ---------- */
.section-divider {
    height: 1px;
    background: linear-gradient(to right, transparent, var(--border-light), transparent);
    margin: 0;
    border: none;
}

/* ---------- Animations ---------- */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered animation delay */
.fade-up:nth-child(1) { transition-delay: 0s; }
.fade-up:nth-child(2) { transition-delay: 0.1s; }
.fade-up:nth-child(3) { transition-delay: 0.2s; }
.fade-up:nth-child(4) { transition-delay: 0.3s; }
.fade-up:nth-child(5) { transition-delay: 0.4s; }
.fade-up:nth-child(6) { transition-delay: 0.5s; }

/* ---------- AI Box Glow Effect ---------- */
.glow-box {
    position: relative;
}

.glow-box::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    background: linear-gradient(135deg, var(--primary), var(--accent), var(--primary));
    background-size: 200% 200%;
    animation: glowShift 3s ease-in-out infinite;
    z-index: -1;
    opacity: 0.4;
    filter: blur(8px);
}

@keyframes glowShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* ---------- Responsive Adjustments ---------- */
@media (max-width: 991.98px) {
    .hero-section {
        padding: 120px 0 60px;
    }

    .page-header {
        padding: 120px 0 50px;
    }

    .navbar-collapse {
        background: #fff;
        padding: 1rem;
        border-radius: var(--radius);
        margin-top: 0.5rem;
        box-shadow: var(--shadow-lg);
    }

    .navbar .d-flex.align-items-center.gap-3 {
        flex-direction: column;
        gap: 0.75rem !important;
        margin-top: 1rem;
    }

    .floating-card {
        display: none;
    }

    .stat-card .stat-number {
        font-size: 2rem;
    }
}

@media (max-width: 767.98px) {
    .hero-section h1 {
        font-size: 2rem !important;
    }

    .page-header h1 {
        font-size: 2rem !important;
    }

    .section-title {
        font-size: 1.75rem !important;
    }

    .plan-card .plan-price {
        font-size: 2rem;
    }
}

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

::-webkit-scrollbar-track {
    background: var(--light-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--text-muted);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-secondary);
}

/* ---------- Topology Diagram Styles ---------- */
.topology-diagram {
    position: relative;
    padding: 2rem;
}

.topology-node {
    background: #fff;
    border: 2px solid var(--border-light);
    border-radius: var(--radius);
    padding: 1rem 1.5rem;
    text-align: center;
    transition: var(--transition);
}

.topology-node:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
}

.topology-node.master {
    border-color: var(--primary);
    background: rgba(79, 70, 229, 0.04);
}

.topology-node .node-icon {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

/* ---------- Badge Styles ---------- */
.badge-new {
    background: var(--danger);
    font-size: 0.6rem;
    padding: 3px 8px;
    border-radius: 50px;
    position: absolute;
    top: 4px;
    left: calc(100% - 4px);
}

/* ---------- Gradient Text Variants ---------- */
.text-gradient-accent {
    background: linear-gradient(135deg, var(--accent), #a855f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-gradient-success {
    background: linear-gradient(135deg, var(--success), #34d399);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ---------- Pulse animation for live indicators ---------- */
.pulse-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--success);
    display: inline-block;
    position: relative;
}

.pulse-dot::after {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    border: 2px solid var(--success);
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(1.6); opacity: 0; }
}

/* ---------- Counter Animation ---------- */
.counter {
    display: inline-block;
}

/* ---------- Cookie/Toast Notification ---------- */
.toast-notification {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    animation: slideInRight 0.3s ease;
}

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

/* ---------- Back to Top ---------- */
#backToTop {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    border: none;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    z-index: 1040;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    cursor: pointer;
}

#backToTop:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

#backToTop.show {
    display: flex;
}

/* ---------- Topology Scale Tabs ---------- */
.topology-tab {
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.6rem 1.5rem !important;
    border-radius: 50px !important;
    border: 2px solid var(--border-light);
    color: var(--text-secondary);
    background: #fff;
    transition: var(--transition);
    white-space: nowrap;
}

.topology-tab:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.topology-tab.active {
    background: var(--primary) !important;
    border-color: var(--primary) !important;
    color: #fff !important;
}

.topology-tab.active i {
    color: #fff !important;
}

/* ---------- Topology Diagram Container ---------- */
.topology-diagram-container {
    margin-top: 1rem;
}

.topo-diagram-box {
    background: #fff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
}

.topo-title {
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.topo-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    max-width: 600px;
}

.topo-visual {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    padding: 1rem 0;
}

.topo-row {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.topo-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 2px solid var(--border-light);
    border-radius: var(--radius);
    padding: 0.75rem 1rem;
    min-width: 100px;
    text-align: center;
    transition: var(--transition);
}

.topo-node i {
    font-size: 1.3rem;
    margin-bottom: 0.25rem;
}

.topo-node span {
    font-weight: 600;
    font-size: 0.8rem;
    color: var(--text-primary);
}

.topo-node small {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.topo-node-primary {
    border-color: var(--primary);
    background: rgba(79, 70, 229, 0.04);
}

.topo-node-primary i {
    color: var(--primary);
}

.topo-node-secondary {
    border-color: var(--primary-light);
    background: rgba(99, 102, 241, 0.03);
}

.topo-node-secondary i {
    color: var(--primary-light);
}

.topo-node-accent {
    border-color: var(--accent);
    background: rgba(124, 58, 237, 0.04);
}

.topo-node-accent i {
    color: var(--accent);
}

.topo-node-sm {
    min-width: 80px;
    padding: 0.5rem 0.75rem;
}

.topo-node-sm i {
    font-size: 1rem;
}

.topo-node-sm span {
    font-size: 0.7rem;
}

.topo-node-lg {
    min-width: 160px;
    padding: 1rem 1.5rem;
}

.topo-connector-v {
    width: 2px;
    height: 20px;
    background: var(--border-light);
    margin: 0 auto;
}

.topo-connector-h-wrap {
    display: flex;
    justify-content: center;
    width: 100%;
}

.topo-connector-h {
    height: 2px;
    width: 60%;
    background: var(--border-light);
}

.topo-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px dashed var(--border-light);
}

.topo-spec {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 500;
    display: inline-flex;
    align-items: center;
}

.topo-spec i {
    font-size: 0.75rem;
}

/* ---------- Expandable Text / Read More ---------- */
.expandable-text {
    position: relative;
}

.expandable-text .expandable-content {
    overflow: hidden;
}

.read-more-link {
    display: inline-block;
    margin-top: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
}

.read-more-link:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.read-more-link i {
    font-size: 0.75rem;
    transition: transform 0.3s ease;
}

/* ---------- Responsive for Topology ---------- */
@media (max-width: 767.98px) {
    .topo-diagram-box {
        padding: 1.25rem;
    }

    .topo-row {
        gap: 0.5rem;
    }

    .topo-node {
        min-width: 70px;
        padding: 0.5rem;
    }

    .topo-node i {
        font-size: 1rem;
    }

    .topo-node span {
        font-size: 0.7rem;
    }

    .topo-node-lg {
        min-width: 120px;
    }

    .topo-connector-h {
        width: 80%;
    }

    .topology-tab {
        font-size: 0.8rem;
        padding: 0.5rem 1rem !important;
    }
}
