:root {
    --primary-color: #2496ed;
    /*--secondary-color: #0d6efd;*/
    --accent-color: #4cc9f0;
    --light-color: #f8f9fa;
    --dark-color: #212529;
    --success-color: #198754;
    --warning-color: #ffc107;
    --info-color: #0dcaf0;
}

.network-hero {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 10px 0;
    border-radius: 10px;
    margin-bottom: 30px;
}

.network-card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
    margin-bottom: 25px;
    height: 100%;
    border-top: 4px solid var(--primary-color);
}

.network-card:hover {
    transform: translateY(-5px);
}

.network-icon {
    background-color: rgba(36, 150, 237, 0.1);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.command-table {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.command-table th {
    background-color: var(--primary-color);
    color: white;
}

.code-example {
    background-color: #2d2d2d;
    color: #f8f9fa;
    border-radius: 5px;
    padding: 15px;
    font-family: 'Courier New', monospace;
    margin: 15px 0;
    overflow-x: auto;
}

.code-example .command {
    color: #4cc9f0;
}

.code-example .comment {
    color: #6a9955;
}

.code-example .string {
    color: #ce9178;
}

.code-example .option {
    color: #9cdcfe;
}

.section-title {
    position: relative;
    margin-bottom: 30px;
    padding-bottom: 15px;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: var(--primary-color);
}

.comparison-section {
    background-color: var(--light-color);
    padding: 30px;
    border-radius: 10px;
    margin: 30px 0;
}

.network-comparison {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.network-comparison th {
    background-color: var(--primary-color);
    color: white;
}

.use-case-item {
    padding: 15px;
    border-left: 3px solid var(--primary-color);
    background-color: rgba(36, 150, 237, 0.05);
    margin-bottom: 15px;
    border-radius: 0 5px 5px 0;
}

.security-section {
    background-color: rgba(25, 135, 84, 0.05);
    padding: 30px;
    border-radius: 10px;
    margin: 30px 0;
    border-left: 4px solid var(--success-color);
}

.architecture-diagram {
    background-color: white;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    margin: 30px 0;
}

.best-practice-item {
    padding: 15px;
    border-left: 3px solid var(--success-color);
    background-color: rgba(25, 135, 84, 0.05);
    margin-bottom: 15px;
    border-radius: 0 5px 5px 0;
}

.troubleshooting-item {
    border-left: 3px solid var(--warning-color);
    padding: 15px;
    background-color: rgba(255, 193, 7, 0.05);
    margin-bottom: 15px;
    border-radius: 0 5px 5px 0;
}

.nav-pills .nav-link {
    color: var(--dark-color);
    font-weight: 500;
    border: 1px solid #dee2e6;
    margin-right: 5px;
    margin-bottom: 5px;
}

.nav-pills .nav-link.active {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.network-type-card {
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.network-type-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.network-type-card.recommended {
    border-color: var(--success-color);
    background-color: rgba(25, 135, 84, 0.02);
}

.demo-terminal {
    background-color: #2d2d2d;
    color: #f8f9fa;
    border-radius: 5px;
    padding: 15px;
    font-family: 'Courier New', monospace;
    margin: 15px 0;
    min-height: 200px;
}

.network-lifecycle {
    background-color: rgba(36, 150, 237, 0.05);
    padding: 25px;
    border-radius: 10px;
    margin: 30px 0;
}

.lifecycle-step {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    padding: 15px;
    background-color: white;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.step-number {
    background-color: var(--primary-color);
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-weight: bold;
}

.network-visualization {
    background-color: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    margin: 30px 0;
}

.visualization-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    margin: 20px 0;
}

.network-node {
    background-color: var(--light-color);
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    margin: 10px;
    min-width: 120px;
}

.network-connection {
    height: 2px;
    background-color: var(--primary-color);
    margin: 10px 0;
    position: relative;
}

.network-connection:after {
    content: '→';
    position: absolute;
    right: -10px;
    top: -8px;
    color: var(--primary-color);
}

.port-mapping {
    background-color: rgba(36, 150, 237, 0.1);
    padding: 15px;
    border-radius: 5px;
    margin: 15px 0;
}
