/* General body styles */
body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background-color: #f8f9fa;
    color: #333;
    line-height: 1.6;
}

/* Header styles */
header {
    background-color: #007bff;
    color: #fff;
    padding: 1rem;
    text-align: center;
    font-size: 1.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Main layout styles */
main {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
}

/* Controls container styles */
.controls {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

/* Button styles */
button {
    background-color: #28a745;
    color: #fff;
    border: none;
    border-radius: 5px;
    padding: 0.5rem 1rem;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

button:hover {
    background-color: #218838;
    transform: translateY(-2px);
}

button:active {
    transform: translateY(0);
}

button:disabled {
    background-color: #6c757d;
    cursor: not-allowed;
}

/* Graph container styles */
#graph-container {
    width: 100%;
    max-width: 800px;
    height: 600px;
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 5px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Graph visuals (D3.js) styles */
.node {
    stroke: #007bff;
    stroke-width: 2;
    fill: #6c757d;
    cursor: pointer;
    transition: fill 0.2s ease, stroke 0.2s ease;
}

.node:hover {
    fill: #0056b3;
    stroke: #0056b3;
}

.edge {
    stroke: #6c757d;
    stroke-width: 2;
    transition: stroke 0.2s ease;
}

.edge.active {
    stroke: #28a745;
}

/* Footer styles */
footer {
    text-align: center;
    padding: 1rem;
    background-color: #f1f1f1;
    font-size: 0.9rem;
    border-top: 1px solid #ddd;
}

/* Responsive styles */
@media (max-width: 768px) {
    #graph-container {
        height: 400px;
    }

    button {
        font-size: 0.9rem;
        padding: 0.4rem 0.8rem;
    }
}