/* Overall plugin container */
.tfm-container {
    background: linear-gradient(135deg, #1d2736 0%, #1d2942 100%);
    color: #e2e9fc;
    padding: 36px 48px;
    max-width: 1080px;
    margin: auto;
    font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
    border-radius: 22px;
    box-shadow: 0 4px 24px rgba(26,38,78,0.13);
}

header {
    margin-bottom: 20px;
}

header h1 {
    color: #fff;
    font-weight: 700;
    font-size: 2.3em;
    margin-bottom: 9px;
}

/* Panels container */
.tfm-panels {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

/* Individual panel styling */
.tfm-panel {
    background: linear-gradient(120deg, #222e44 0%, #23304a 100%);
    border-radius: 18px;
    box-shadow: 0 2px 14px rgba(26,38,78,0.09);
    padding: 24px 22px;
    flex: 1 1 340px;
    min-width: 270px;
}

/* Sliders */
input[type="range"] {
    width: 100%;
    margin-top: 12px;
    accent-color: #49c6fd;
    height: 4px;
    border-radius: 3px;
    background: linear-gradient(90deg, #3b99fc 0%, #36e3bc 100%);
}

/* Slider thumb styling (all browsers) */
input[type="range"]::-webkit-slider-thumb {
    width: 22px;
    height: 22px;
    background: #fff;
    border: 2px solid #49c6fd;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(73,198,253,0.14);
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    transition: background 0.15s;
}
input[type="range"]:focus::-webkit-slider-thumb {
    background: #36e3bc;
    border: 2px solid #337aed;
}
input[type="range"]::-moz-range-thumb {
    width: 22px;
    height: 22px;
    background: #fff;
    border: 2px solid #49c6fd;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(73,198,253,0.14);
    cursor: pointer;
    transition: background 0.15s;
}
input[type="range"]:focus::-moz-range-thumb {
    background: #36e3bc;
    border: 2px solid #337aed;
}
input[type="range"]::-ms-thumb {
    width: 22px;
    height: 22px;
    background: #fff;
    border-radius: 50%;
    border: 2px solid #49c6fd;
    box-shadow: 0 2px 8px rgba(73,198,253,0.14);
    cursor: pointer;
    transition: background 0.15s;
}

/* Button styles */
.tfm-actions button, button, input[type="button"] {
    background: linear-gradient(90deg, #337aed 0%, #1eb3d7 100%);
    color: #e2e9fc;
    border: none;
    border-radius: 9px;
    box-shadow: 0 3px 14px rgba(26,38,78, 0.11);
    padding: 7px 14px;
    font-size: 0.97em;
    font-family: inherit;
    font-weight: 500;
    margin: 0 5px 7px 0;
    cursor: pointer;
    transition: background 0.15s, box-shadow 0.15s;
}
.tfm-actions button:hover, button:hover, input[type="button"]:hover {
    background: linear-gradient(90deg, #0fbdda 0%, #20edd5 100%);
    box-shadow: 0 6px 22px rgba(67,178,250,0.16);
}

/* Frequency list */
ul#list {
    list-style: none;
    padding: 0;
    margin: 0;
}
ul#list li {
    margin: 2px 0;
    display: flex;
    align-items: center;
    background: rgba(30,49,92,0.42);
    border-radius: 9px;
    padding: 4px 8px;
    font-size: 1em;
}
ul#list button {
    margin-left: 6px;
    padding: 7px 14px;
    font-size: 0.97em;
}

/* Noise & nature sound radio buttons and labels */
.tfm-noise-group,
.tfm-nature-group {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 14px;
}

.tfm-noise-group label,
.tfm-nature-group label {
    margin-bottom: 4px;
    margin-right: 8px;
    vertical-align: middle;
    color: #e2e9fc;
    font-size: 1em;
    display: inline-flex;
    align-items: center;
}

input[type="radio"] {
    accent-color: #49c6fd;
    margin-right: 3px;
    vertical-align: middle;
}

input[type="checkbox"] {
    accent-color: #36e3bc;
    margin-right: 4px;
}

input[type="radio"]:checked + label {
    color: #36e3bc;
}

/* Divider below radio buttons */
.tfm-divider {
    border: none;
    border-top: 1.5px solid #383e54;
    margin: 15px 0 16px 0;
    width: 100%;
}

/* Actions container */
.tfm-actions {
    margin-top: 14px;
    display: flex;
    flex-wrap: wrap;
}

/* Section titles */
.tfm-panel h2, h3, h4 {
    color: #ddeaff;
    font-size: 1.15em;
    font-weight: 600;
    margin-bottom: 13px;
}

/* Responsive panels */
@media (max-width: 900px) {
    .tfm-container {
        max-width: 100%;
        padding: 14px 7px;
    }
    .tfm-panels {
        flex-direction: column;
        gap: 20px;
    }
    .tfm-panel {
        min-width: unset;
        width: 100%;
    }
    .tfm-noise-group,
    .tfm-nature-group {
        gap: 12px;
        margin-bottom: 7px;
    }
}

/* For ultra small screens, stack radios vertically */
@media (max-width: 600px) {
    .tfm-noise-group,
    .tfm-nature-group {
        flex-direction: column;
        gap: 4px;
        margin-bottom: 8px;
    }
    .tfm-panel {
        padding: 14px 6px;
    }
}

/* Accessible focus for form elements */
input:focus,
button:focus,
label:focus {
    outline: 2px solid #49c6fd;
    outline-offset: 2px;
}
