.t4e-signal-generator {
    background-color: #1a1a1a;
    color: #ffffff;
    padding: 20px;
    border-radius: 10px;
    font-family: Arial, sans-serif;
    max-width: 100% !important;
}

.grid-9-3{
    display: grid;
    grid-template-columns: 10fr 2fr;
}

.signal-display {
    background-color: #000000;
    border: 1px solid #333;
    border-radius: 8px;
    margin-bottom: 20px;
    margin-right: 15px;
    position: relative;
}

#waveformDisplay {
    width: 100%;
    height: 100%;
    border-radius: 8px;
}

.master-controls {
    background-color: #2a2a2a;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.generators-container {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: space-between;
}

.generator-module {
    background-color: #2a2a2a;
    padding: 15px;
    border-radius: 8px;
    flex: 1;
    min-width: 200px;
}

h2, h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #fff;
}

.control-group {
    margin-bottom: 15px;
}

.control-group label {
    display: block;
    margin-bottom: 5px;
    color: #ccc;
    font-size: small;
}

/* Switch styling */
.switch {
    position: relative;
    display: inline-block;
    margin-bottom: 10px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.switch .slider {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
    background-color: #333;
    border-radius: 12px;
    margin: 0 10px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.switch .slider:before {
    content: "";
    position: absolute;
    height: 20px;
    width: 20px;
    left: 2px;
    bottom: 2px;
    background-color: #fff;
    border-radius: 50%;
    transition: transform 0.3s;
}

.switch input:checked + .slider {
    background-color: #4CAF50;
}

.switch input:checked + .slider:before {
    transform: translateX(26px);
}

/* Number control styling */
.number-control {
    display: flex;
    align-items: center;
}

.number-control input[type="number"] {
    width: 60px;
    background-color: #333;
    border: 1px solid #444;
    color: #fff;
    padding: 5px;
    border-radius: 4px;
    margin-right: 5px;
}

.number-buttons {
    display: flex;
    flex-direction: column;
}

.number-buttons button {
    background-color: #444;
    border: none;
    color: #fff;
    width: 20px;
    height: 15px;
    padding: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
}

.number-buttons button:hover {
    background-color: #555;
}

.number-buttons button:active {
    background-color: #666;
}

.slider-control{
    display: flex;
    align-items: center;
}

/* Volume slider styling */
.slider-control input[type="range"] {
    -webkit-appearance: none;
    width: 100%;
    height: 4px;
    background: #333;
    border-radius: 2px;
    outline: none;
}

.slider-control input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    background: #fff;
    border-radius: 50%;
    cursor: pointer;
}

.slider-control input[type="range"]::-moz-range-thumb {
    width: 16px;
    height: 16px;
    background: #fff;
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

.slider-control input[type="number"] {
    width: 35px;
    background-color: #333;
    border: 1px solid #444;
    color: #fff;
    padding: 5px;
    border-radius: 4px;
    margin-left: 5px;
}

.slider-control input[type="text"] {
    width: 35px;
    background-color: #333;
    border: 1px solid #444;
    color: #fff;
    padding: 5px;
    border-radius: 4px;
    margin-left: 5px;
}

.header-group{
    display: flex;
    align-items: center;
}

.valueDisplay{
    font-size: small;
    margin-left: 5px;
    padding-left: 5px;
}


/* Remove number input arrows */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type="number"] {
    -moz-appearance: textfield;
} 