/* === ROOT MODULE === */
.mod_thermocomplex_calculator {
    --bg_color: white;
    --fill_percent: 13%;
}

.mod_thermocomplex_calculator .tc_container {
	border-radius: 10px;
	background: url('../images/background_dark.jpg');
    padding: 10px;
    max-width: 480px;
    margin: 0 auto;
}

.mod_thermocomplex_calculator .tc_container h3 {
    text-align: center;
	color: #d2ba8b;
}


/* === MATERIAL SWITCH === */
.mod_thermocomplex_calculator .tc_material_switch {
    display: flex;
    border-radius: 10px;
    padding: 10px;
    gap: 10px;
	background: url(../images/background_light.png);
}

.mod_thermocomplex_calculator .tc_material_switch input {
    display: none;
}

.mod_thermocomplex_calculator .tc_material_switch label {
    flex: 1;
    padding: 5px;
    text-align: center;
    cursor: pointer;
    border-radius: 10px;
    font-size: 14px;
    color: #495057;
    transition: all 0.25s ease;
    background-color: var(--bg_color);
}

.mod_thermocomplex_calculator .tc_material_switch label:hover {
    opacity: 0.75;
}

.mod_thermocomplex_calculator .tc_material_switch input:checked + label {
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.mod_thermocomplex_calculator .tc_material_switch input:checked + label.gray {
    background-color: gray;
    color: #000;
}

.mod_thermocomplex_calculator .tc_material_switch input:checked + label.green {
    background-color: #008C3F;
    color: #000;
}

.mod_thermocomplex_calculator .tc_material_switch input:checked + label.yellow {
    background-color: #F79816;
    color: #000;
}

.mod_thermocomplex_calculator .tc_material_switch input:checked + label.red {
    background-color: #FF0000;
    color: #000;
}


/* === MATERIAL BLOCK === */
.mod_thermocomplex_calculator .tc_material_container {
	border-radius: 10px;
	padding: 10px;
	background: url(../images/background_light.png);
    margin: 10px 0;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.mod_thermocomplex_calculator .tc_material_image_container {
    width: 20%;
	margin:	auto;
}

.mod_thermocomplex_calculator .tc_material_image {
    max-width: 100%;
    object-fit: contain;
}

.mod_thermocomplex_calculator .tc_material_description {
    background: var(--bg_color);
    padding: 10px;
    border-radius: 10px;
    font-size: 14px;
    color: #495057;
    width: 80%;
    min-height: 150px;
}

.mod_thermocomplex_calculator .tc_thickness {
	border-radius: 10px;
	padding: 10px;
	background: url(../images/background_light.png);
    margin: 10px 0;
}



/* === SLIDER === */
.mod_thermocomplex_calculator .tc_thickness_slider {
    width: 100%;
    margin-bottom: 10px;

}

.mod_thermocomplex_calculator .tc_thickness_slider_label {
	font-weight: bold;
}

.mod_thermocomplex_calculator .tc_thickness_slider_input {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 10px;
    border-radius: 10px;
    position: relative;
	background: transparent;
}

/* COLORS */
.mod_thermocomplex_calculator .tc_thickness_slider_input.gray {
    --thumb_color: gray;
}
.mod_thermocomplex_calculator .tc_thickness_slider_input.yellow {
    --thumb_color: #F79816;
}
.mod_thermocomplex_calculator .tc_thickness_slider_input.green {
    --thumb_color: #008C3F;
}
.mod_thermocomplex_calculator .tc_thickness_slider_input.red {
    --thumb_color: #FF0000;
}


/* THUMB */
.mod_thermocomplex_calculator .tc_thickness_slider_input::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    background: var(--thumb_color, var(--bg_color));
    border-radius: 50%;
    cursor: pointer;
	margin-top: -5px;
}

.mod_thermocomplex_calculator .tc_thickness_slider_input::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: var(--thumb_color, var(--bg_color));
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

/* TRACK */
.mod_thermocomplex_calculator .tc_thickness_slider_input::-webkit-slider-runnable-track {
    height: 10px;
    border-radius: 10px;
    background: linear-gradient(
        to right,
        var(--thumb_color, var(--bg_color)) 0%,
        var(--thumb_color, var(--bg_color)) var(--fill_percent),
        var(--bg_color) var(--fill_percent),
        var(--bg_color) 100%
    );
}

.mod_thermocomplex_calculator .tc_thickness_slider_input::-moz-range-progress {
    height: 10px;
    border-radius: 10px;
    background: var(--thumb_color, var(--bg_color));
}


/* LABELS */
.mod_thermocomplex_calculator .tc_thickness_slider_labels {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    margin-top: 5px;
    color: #777;
}

.mod_thermocomplex_calculator .tc_thickness_slider_labels span {
    width: 20px;
    text-align: center;
}

/* CALCULATION PARAMETERS*/

.mod_thermocomplex_calculator .tc_params_form {
	border-radius: 10px;
	padding: 10px;
	background: url(../images/background_light.png);
    margin: 10px 0;
	display: flex;
	gap: 0 20px;
	flex-wrap: wrap;
}
    
.mod_thermocomplex_calculator .tc_param_1,
.mod_thermocomplex_calculator .tc_param_2 {
	display: flex;
	flex-direction: column;
	flex: 1;
}
    
.mod_thermocomplex_calculator .tc_param_1 label, 
.mod_thermocomplex_calculator .tc_param_2 label {
	margin-bottom: 5px;
	font-weight: bold;
}
    
.mod_thermocomplex_calculator .tc_param_1 input, 
.mod_thermocomplex_calculator .tc_param_2 input {
	padding: 8px;
	border: 1px solid #ccc;
	border-radius: 4px;
}


/* === RESULT === */
.mod_thermocomplex_calculator .tc_result {
	position: relative;
	border-radius: 10px;
	padding: 10px;
	background: url(../images/background_light.png);
    margin: 10px 0;
}


/* === BUTTONS === */
.mod_thermocomplex_calculator .btn_container {
	display: flex;
    justify-content: flex-end;
	margin-top: 10px;
}

.mod_thermocomplex_calculator .btn {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
}

.mod_thermocomplex_calculator .tc_btn_reset {
    background-color: #6c757d;
    color: #fff;
}

.mod_thermocomplex_calculator .tc_btn_reset:hover {
    background-color: #545b62;
}

.mod_thermocomplex_calculator .tc_btn_copy {
    position: absolute;
    top: 10px;
    right: 10px;

    width: 34px;
    height: 34px;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 16px;

    background: transparent;

    border: none;
    border-radius: 8px;

    cursor: pointer;

}

.mod_thermocomplex_calculator .tc_btn_copy .tc_tooltip {
    position: absolute;
    right: 110%;
    top: 50%;
    transform: translateY(-50%);

    background: transparent;
    color: Black;

    padding: 4px 8px;
    border-radius: 4px;

    font-size: 12px;
    white-space: nowrap;

    opacity: 0;
    visibility: hidden;

    transition: 0.2s ease;
}

.mod_thermocomplex_calculator .tc_btn_copy:hover .tc_tooltip {
    opacity: 1;
    visibility: visible;
}

.mod_thermocomplex_calculator .tc_btn_copy .tc_tooltip::after {
    content: "";
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    border-width: 5px;
    border-style: solid;
    border-color: transparent transparent transparent #000;
}