body {
            background-image: url('../images/networking.jpg');
            background-repeat: no-repeat;
            background-attachment: fixed;
            background-size: cover;
            font-family: Arial, sans-serif;
            color: white;
            text-align: center;
        }
        .container {
            max-width: 800px;
            margin: 50px auto;
            background: rgba(0, 0, 0, 0.7);
            padding: 30px;
            border-radius: 12px;
            box-shadow: 0 0 15px rgba(0,0,0,0.6);
        }
        h2 {
            margin-bottom: 20px;
            font-size: 26px;
            color: #00ffcc;
        }
        form {
            margin: 20px 0;
        }
        input, select, button {
            margin: 5px;
            padding: 8px 12px;
            border-radius: 6px;
            border: none;
        }
        button {
            background: #00ffcc;
            color: black;
            font-weight: bold;
            cursor: pointer;
        }
        table {
            width: 100%;
            margin-top: 20px;
            border-collapse: collapse;
            color: white;
        }
        td {
            border: 1px solid #00ffcc;
            padding: 8px;
        }
        td:first-child {
            background: rgba(0,0,0,0.6);
            font-weight: bold;
            width: 40%;
        }
        .menu {
            background: rgba(0,0,0,0.8);
            padding: 10px;
            text-align: center;
        }
        .menu a {
            color: #00ffcc;
            margin: 0 15px;
            text-decoration: none;
            font-weight: bold;
        }
        .menu a:hover {
            text-decoration: underline;
        }
		.subnet-map {
        display: flex;
        margin-top: 30px;
        height: 40px;
        border: 1px solid #00ffcc;
        border-radius: 8px;
        overflow: visible;
        position: relative;
    }
    .subnet-block {
        height: 100%;
        text-align: center;
        line-height: 40px;
        color: black;
        font-size: 12px;
        font-weight: bold;
        border-right: 1px solid #111;
        cursor: pointer;
        transition: transform 0.2s ease-in-out, box-shadow 0.2s;
        position: relative;
    }
    .subnet-block:hover {
        transform: scale(1.05);
        z-index: 2;
    }
    .tooltip {
        display: none;
        background: rgba(0,0,0,0.9);
        color: #00ffcc;
        padding: 8px 12px;
        border-radius: 6px;
        position: absolute;
        z-index: 20;
        bottom: 50px;
        left: 50%;
        transform: translateX(-50%);
        font-size: 12px;
        border: 1px solid #00ffcc;
        white-space: nowrap;
    }
    .subnet-block:hover .tooltip {
        display: block;
    }
    .subnet-block.highlight {
        box-shadow: 0 0 15px 3px #fff;
        transform: scale(1.08);
        z-index: 3;
    }

    .legend {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        margin-top: 25px;
        gap: 10px;
    }
    .legend-item {
        display: flex;
        align-items: center;
        background: rgba(0,0,0,0.6);
        padding: 5px 10px;
        border-radius: 6px;
        border: 1px solid #00ffcc;
        font-size: 13px;
        cursor: pointer;
    }
    .legend-item:hover { background: rgba(0,255,204,0.2); }
    .legend-color {
        width: 16px;
        height: 16px;
        border-radius: 3px;
        margin-right: 6px;
        border: 1px solid #fff;
    }
	#chart-container { margin-top: 30px; background: rgba(0,0,0,0.6); padding: 20px; border-radius: 12px; }
.progress-bar-container { margin-top: 20px; }
.progress-label { margin-bottom: 5px; font-size: 14px; }
.progress-wrapper { margin-bottom: 15px; }
.progress-bar { width: 0%; height: 25px; background: #00ffcc; border-radius: 8px; position: relative; }
.progress-text { position: absolute; width: 100%; text-align: center; color: black; font-weight: bold; }

/* ---------- CIDR to IP Range Converter Styles ---------- */

textarea {
    width: 100%;
    height: 120px;
    resize: vertical;
    margin: 8px 0;
    padding: 10px 12px;
    border-radius: 6px;
    border: none;
    font-size: 14px;
    background: rgba(255,255,255,0.9);
    color: #000;
}

button {
    background: #00ffcc;
    color: black;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

button:hover {
    transform: scale(1.05);
    box-shadow: 0 0 10px #00ffcc;
}

.error {
    color: #ff8080;
    margin-top: 12px;
    font-weight: bold;
}

table {
    width: 100%;
    margin-top: 20px;
    border-collapse: collapse;
    color: white;
    text-align: center;
}

th, td {
    border: 1px solid #00ffcc;
    padding: 8px;
    font-size: 13px;
}

th {
    background: rgba(0,0,0,0.6);
    color: #00ffcc;
}

td:first-child {
    width: auto;
    font-weight: bold;
    background: rgba(0,0,0,0.6);
}

@media (max-width: 700px) {
    td, th {
        font-size: 12px;
    }
}
/* --- Mini VLSM --- */
.subnet-map-mini {
    display: flex;
    margin-top: 20px;
    height: 50px;
    border: 2px solid #00ffcc;
    border-radius: 8px;
    overflow: visible;
}
.subnet-block-mini {
    height: 100%;
    line-height: 50px;
    min-width: 40px;
    text-align: center;
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
    border-right: 1px solid #111;
    position: relative;
    transition: transform 0.2s, box-shadow 0.2s;
}
.subnet-block-mini:hover { transform: scale(1.05); z-index: 2; }
.tooltip-mini {
    display: none;
    background: rgba(0,0,0,0.9);
    color: #00ffcc;
    padding: 6px 10px;
    border-radius: 6px;
    position: absolute;
    z-index: 20;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 12px;
    border: 1px solid #00ffcc;
    white-space: nowrap;
}
.subnet-block-mini:hover .tooltip-mini { display: block; }

/* --- Mini Bandwidth --- */
.bw-bar-wrapper { margin-bottom: 10px; background: rgba(0,0,0,0.2); border-radius: 8px; overflow: hidden; position: relative; height: 25px; }
.bw-bar { height: 100%; width: 0; position: relative; border-radius: 8px; cursor: pointer; }
.bw-tooltip { display: none; position: absolute; top: -70px; left: 50%; transform: translateX(-50%); background: rgba(0,0,0,0.9); color: #00ffcc; padding: 6px 10px; border-radius: 6px; font-size: 12px; text-align: center; white-space: nowrap; border: 1px solid #00ffcc; z-index: 10; }
.bw-bar:hover .bw-tooltip { display: block; }

/* --- Mini CIDR --- */
.cidr-mini {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}
.cidr-block {
    padding: 10px 15px;
    border-radius: 6px;
    color: black;
    font-weight: bold;
    cursor: pointer;
    position: relative;
    transition: transform 0.2s ease-in-out;
}
.cidr-block:hover { transform: scale(1.05); z-index: 2; }
.cidr-block .tooltip-mini {
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
}
/* --- Dynamic CIDR Mini Preview (improved, avoids truncation) --- */
.cidr-mini {
    display: flex;
    justify-content: center;
    align-items: center;      /* center vertically so multi-line labels look good */
    gap: 8px;
    margin-top: 25px;
    flex-wrap: nowrap;        /* keep on single row, blocks can shrink */
}

/* each block uses flexible basis (set in-line) but these defaults help readability */
.cidr-block {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px 8px;
    min-height: 48px;
    height: auto;
    color: black;
    font-weight: 700;
    border-radius: 6px;
    text-align: center;
    line-height: 1.15;
    position: relative;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s;
    white-space: normal;           /* allow wrap */
    overflow-wrap: anywhere;       /* break long tokens if needed */
    font-size: 12px;               /* smaller font so labels fit */
    box-sizing: border-box;
    padding-left: 10px;
    padding-right: 10px;
}

/* hover/tooltip visual */
.cidr-block:hover {
    transform: scale(1.08);
    box-shadow: 0 0 10px #00ffcc;
    z-index: 5;
}

.cidr-block .tooltip-mini {
    display: none;
    bottom: 60px;
    background: rgba(0,0,0,0.9);
    border: 1px solid #00ffcc;
    padding: 6px 10px;
    border-radius: 6px;
    color: #00ffcc;
    font-size: 12px;
    white-space: nowrap;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}
.cidr-block:hover .tooltip-mini { display: block; }

/* optional: ensure very small screens scale text a touch */
@media (max-width: 600px) {
    .cidr-block { font-size: 11px; min-height: 44px; padding: 6px; }
}
.calc-box {
    margin-top: 40px;
    padding: 25px;
    background: rgba(0,0,0,0.65);
    border: 2px solid #00ffcc;
    border-radius: 12px;
    box-shadow: 0 0 15px rgba(0,255,204,0.4);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.calc-box:hover {
    transform: scale(1.02);
    box-shadow: 0 0 25px rgba(0,255,204,0.8);
}
.calc-box-link {
    display: block;
    text-decoration: none;
    color: inherit;
    margin-top: 40px;
}

.calc-box-link:hover .calc-box {
    transform: scale(1.02);
    box-shadow: 0 0 25px rgba(0,255,204,0.8);
}
/* ---------- Footer Styling ---------- */
.site-footer {
    background: rgba(0, 0, 0, 0.8);
    padding: 25px 0;
    margin-top: 60px;
    color: #00ffcc;
    text-align: center;
    border-top: 2px solid #00ffcc;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.6);
}

.footer-container {
    max-width: 900px;
    margin: 0 auto;
}

.footer-links a {
    color: #00ffcc;
    margin: 0 10px;
    text-decoration: none;
    font-weight: bold;
}

.footer-links a:hover {
    text-decoration: underline;
}

.footer-credits {
    margin-top: 10px;
    font-size: 13px;
    color: #ccc;
}
/* ---------- Header Styling ---------- */
.site-header {
    background: rgba(0, 0, 0, 0.85);
    padding: 20px 0;
    text-align: center;
    border-bottom: 2px solid #00ffcc;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}

.header-container {
    max-width: 900px;
    margin: 0 auto;
}

.site-title {
    color: #00ffcc;
    font-size: 26px;
    margin-bottom: 10px;
    text-shadow: 0 0 8px rgba(0, 255, 204, 0.6);
}

.menu {
    background: rgba(0, 0, 0, 0.6);
    padding: 10px;
    border-radius: 8px;
    display: inline-block;
}

.menu a {
    color: #00ffcc;
    margin: 0 12px;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.2s, text-shadow 0.2s;
}

.menu a:hover {
    text-decoration: underline;
    text-shadow: 0 0 8px #00ffcc;
}
/* ---------- Header Styling ---------- */
.site-header {
    background: rgba(0, 0, 0, 0.85);
    padding: 20px 0 10px 0;
    text-align: center;
    border-bottom: 2px solid #00ffcc;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}

.header-container {
    max-width: 900px;
    margin: 0 auto;
}

.site-title {
    color: #00ffcc;
    font-size: 26px;
    margin-bottom: 10px;
    text-shadow: 0 0 8px rgba(0, 255, 204, 0.6);
}

.menu {
    background: rgba(0, 0, 0, 0.6);
    padding: 10px;
    border-radius: 8px;
    display: inline-block;
}

.menu a {
    color: #00ffcc;
    margin: 0 12px;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.2s, text-shadow 0.2s;
}

.menu a:hover {
    text-decoration: underline;
    text-shadow: 0 0 8px #00ffcc;
}

/* ---------- Breadcrumb Styling ---------- */
.breadcrumb {
    margin-top: 10px;
    text-align: center;
    font-size: 14px;
    color: #ccc;
}

.breadcrumb a {
    color: #00ffcc;
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumb a:hover {
    color: #33ffff;
    text-decoration: underline;
}

.breadcrumb .active {
    color: #ffffff;
    font-weight: bold;
}
/* ---------- CONTACT PAGE ---------- */
.contact-form input,
.contact-form textarea {
    width: 80%;
    max-width: 500px;
    margin: 10px auto;
    display: block;
    padding: 10px 12px;
    border-radius: 6px;
    border: 1px solid #00ffcc;
    background: rgba(0,0,0,0.4);
    color: white;
    font-size: 15px;
}
.contact-form textarea {
    resize: vertical;
}
.contact-form button {
    background: #00ffcc;
    color: black;
    font-weight: bold;
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}
.contact-form button:hover {
    transform: scale(1.05);
    box-shadow: 0 0 10px #00ffcc;
}

.status-message {
    margin: 20px auto;
    padding: 10px;
    border-radius: 8px;
    width: 80%;
    max-width: 500px;
    font-weight: bold;
}
.status-message.success { background: rgba(0,255,204,0.2); color: #00ffcc; border: 1px solid #00ffcc; }
.status-message.error { background: rgba(255,0,0,0.2); color: #ff6666; border: 1px solid #ff6666; }
