body {
    font-family: 'Segoe UI', Tahoma, sans-serif;
    background-color: #1a1a1a;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
}

.container {
    text-align: center;
}

#graph-container {
    background: #2d2d2d;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    margin: 20px 0;
}

/* Graph Elements */
.edge {
    stroke: #555;
    stroke-width: 2;
    transition: stroke 0.3s, stroke-width 0.3s;
}

.node {
    fill: #2c3e50;
    stroke: #ecf0f1;
    stroke-width: 2;
    filter: drop-shadow(0px 2px 2px rgba(0,0,0,0.5));
    transition: all 0.4s ease;
}

.node-label {
    fill: white;
    font-size: 12px;
    pointer-events: none;
    text-anchor: middle;
    alignment-baseline: middle;
}

.weight-label {
    fill: #f39c12;
    font-size: 11px;
    font-weight: bold;
    paint-order: stroke;
    stroke: #1a1a1a;
    stroke-width: 3px;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Animation States */

/* Make searching state pulse */
.searching {
    fill: #f1c40f !important;
    stroke: white;
    r: 22; /* Grow slightly when checking */
}

.visited { fill: #3498db !important; }
.path { 
    stroke: #2ecc71 !important; 
    stroke-width: 5 !important; 
    fill: #2ecc71 !important; 
}

button {
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 5px;
    margin: 0 10px;
}

button:hover { background: #2980b9; }
button:disabled { background: #555; cursor: not-allowed; }

#status { margin-top: 15px; font-style: italic; color: #bbb; }
