body {
    background: #2b2b2b; /* Dark neutral grey background */
    color: #e0e0e0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    display: flex;
    justify-content: center;
    padding: 20px;
    margin: 0;
}

.container {
    max-width: 500px;
    width: 100%;
    text-align: center;
}

/* Logo Styling */
.logo-container {
    margin-bottom: 20px;
}
.logo {
    max-width: 180px;
    height: auto;
}

h1 { margin-bottom: 5px; color: #fff; font-size: 1.5rem; }
.description { font-size: 0.9em; color: #bbb; margin-bottom: 20px; }

.bipartite-container {
    width: 300px;
    height: 300px;
    margin: 0 auto 30px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    border: 4px solid #1a1a1a;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    background: #444; /* Fallback */
}

.field {
    flex: 1;
    height: 100%;
}

/* 10px Neutral Divider */
.divider {
    width: 10px;
    height: 100%;
    background: #444; /* Neutral Grey */
}

.controls {
    background: #383838; /* Slightly lighter than background */
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #4a4a4a;
}

.control-group label {
    display: block;
    margin: 15px 0 5px;
    font-weight: 600;
}

input[type="range"] {
    width: 100%;
    height: 8px;
    border-radius: 5px;
    background: #222;
    outline: none;
    cursor: pointer;
}

#r-slider { accent-color: #ff4444; }
#g-slider { accent-color: #44ff44; }
#b-slider { accent-color: #4444ff; }

.toggle-container {
    margin: 20px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.switch { position: relative; width: 40px; height: 22px; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: #555; transition: .4s; border-radius: 34px; }
.slider:before { position: absolute; content: ""; height: 16px; width: 16px; left: 3px; bottom: 3px; background-color: white; transition: .4s; border-radius: 50%; }
input:checked + .slider { background-color: #007bff; }
input:checked + .slider:before { transform: translateX(18px); }

#result-area { margin-top: 20px; min-height: 150px; }
button {
    background: #007bff;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.hidden { display: none; }
hr { border: 0; border-top: 1px solid #4a4a4a; margin: 20px 0; }

.data-grid {
    display: flex;
    justify-content: space-around;
    margin-top: 15px;
    font-size: 0.9em;
    text-align: left;
}

.data-grid strong { color: #5cb3ff; display: block; margin-bottom: 5px; }