/* General Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    font-size: 16px;
    color: #333;
    line-height: 1.5;
    background-color: #f9f9f9;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    height: 100vh;
    overflow: hidden;
}

h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #0056b3;
}

/* Header Styles */
.header {
    background-color: #0056b3;
    color: #ffffff;
    width: 100%;
    text-align: center;
    padding: 1rem 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Controls Section */
.controls {
    margin: 1rem;
    width: 90%;
    max-width: 1200px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.controls label {
    font-size: 1rem;
    font-weight: bold;
    color: #333;
}

.controls input[type="text"],
.controls input[type="range"],
.controls button {
    font-size: 1rem;
    padding: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    outline: none;
    transition: all 0.3s ease-in-out;
}

.controls input[type="text"]:focus,
.controls input[type="range"]:focus {
    border-color: #0056b3;
    box-shadow: 0 0 5px rgba(0, 86, 179, 0.5);
}

.controls button {
    cursor: pointer;
    background-color: #0056b3;
    color: #ffffff;
    border: none;
}

.controls button:hover,
.controls button:focus {
    background-color: #004494;
}

/* Canvas Container */
.canvas-container {
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #ffffff;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin: 1rem;
    overflow: hidden;
}

canvas {
    background-color: #f3f3f3;
    border: 1px solid #ccc;
    border-radius: 4px;
}

canvas:focus {
    outline: none;
    border-color: #0056b3;
}

/* Node and Edge Styling */
.node {
    cursor: pointer;
}

.node:hover {
    fill-opacity: 0.8;
}

/* Status Colors */
.node-active {
    fill: green;
    stroke: black;
}

.node-inactive {
    fill: gray;
    stroke: black;
}

.node-delayed {
    fill: orange;
    stroke: black;
}

.node-operational {
    fill: blue;
    stroke: black;
}

/* Utility Styles */
.hidden {
    display: none;
}