* {
    box-sizing: border-box;
}

#messageContainer div {
    border-bottom: 1px solid #000;
    padding: 5px;
    font-size: 20px;
    color: black;
}

#textBoxContainer {
    border-bottom: 1px solid #000;
    padding: 5px;
}

.form-inline {
    display: flex;
    flex-flow: row wrap;
    align-items: center;
    margin-left: 5px;
    margin-top: 0px;
}

.form-inline label {
    margin: 5px 0 5px 0;
    font-size: 18px;
    font-weight: 500;
    color: red;
}

.form-inline input {
    vertical-align: middle;
    margin: 5px 10px 5px 0;
    /* padding: 2px; */
    /* width: 320px; */
    height: 35px;
    font-size: 16px;
    color: blue;
    background-color: #fff;
    border: 1px solid rgb(24, 24, 24);
    border-radius: 3px;
}

.form-inline button {
    padding: 7px;
    background-color: dodgerblue;
    border: 1px solid #ddd;
    color: white;
    height: 37px;
    margin-right: 10px;
    cursor: pointer;
    width: 85px;
    border-radius: 6px;
    font-size: 16px;
}

.form-inline button:hover {
    background-color: royalblue;
}

hr.new5 {
    border: 2px solid rgb(17, 17, 17);
    border-radius: 3px;
    margin: 5px;
    margin-top: 12px;
}

hr.new1 {
    border: 1px solid rgb(188, 188, 188);
    margin: 5px;
}


hr.new6 {
    border: 1px solid rgb(255, 255, 255);
    margin: 5px;
    margin-top: 5px;
}

div.div1 {
    font-size: large;
    margin-left: 15px;
    height: 110em;
    line-height: 1.1;
    overflow: auto;
    /* padding-bottom: 1px; */
}

@media (max-width: 400px) {
    .form-inline input {
        margin: 10px 0;
    }

    .form-inline {
        flex-direction: column;
        align-items: stretch;
    }
}

.message-containerabcdfddf {
    height: 300px;
    /* Set to your preferred value */
    overflow-y: auto;
    display: flex;
    flex-direction: column-reverse;
    /* This will reverse the order of the elements */
}

.switch {
    position: relative;
    display: inline-block;
    width: 100px;
    height: 40px;
}

.switch input {
    display: none;
}

.slider {
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: green;
    padding: 5px 15px; /* Adds some space around the text */
    border-radius: 15px;
    transition: 0.4s;
    height: 40px;
    font-size: 22px;
}

/* Remove the slider's before element */
.slider:before {
    content: none;
}

.on {
    display: none;
    color: white; /* Change this to your desired color */
}

.off {
    display: none;
    color: white; /* Change this to your desired color */
}

/* Show "SMS" when checked */
input:checked + .slider .on {
    display: block;
}

/* Show "MQTT" when not checked */
input:not(:checked) + .slider .off {
    display: block;
}

input:checked + .slider {
    background-color: red;
}

#smsblock {
    white-space: nowrap;
}

/* --------------------------------- */
/* body {
    font-family: 'Arial', sans-serif;
    background-color: #f4f4f4;
    padding: 20px;
} */

#devicesDropdown, #providerformat, #providersetup {
    padding: 10px 15px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 5px;
    width: 220px;
    margin-left: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    appearance: none; /* Removes the default styling on some browsers like Chrome */
    -webkit-appearance: none; /* Safari */
    -moz-appearance: none; /* Firefox */
    cursor: pointer;
    background-color: #ffffff;
    background-image:
        linear-gradient(45deg, transparent 50%, #777 50%),
        linear-gradient(135deg, #777 50%, transparent 50%),
        linear-gradient(to right, #ccc, #ccc);
    background-position:
        calc(100% - 20px) calc(1em + 2px),
        calc(100% - 15px) calc(1em + 2px),
        calc(100% - 2.5em) 0.5em;
    background-size:
        5px 5px,
        5px 5px,
        1px 1.5em;
    background-repeat: no-repeat;
    transition: background 0.3s, border-color 0.3s;
}

#devicesDropdown:hover, #providerformat:hover, #providersetup:hover{
    border-color: #888;
}

#devicesDropdown:focus, #providerformat:focus, #providersetup:focus {
    outline: none;
    border-color: #007BFF;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
}

#devicesDropdown:disabled, #providerformat:disabled, #providersetup:disabled {
    background-color: #e9ecef;
    cursor: not-allowed;
}

.form-inline > div .round_button {
    background-color:white; /* Green */
    border: none;
    color: white;
    padding: 14px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    /* font-size: 16px; */
    margin: 4px 2px;
    cursor: pointer;
    border-radius: 50%;
    width: 40px; /* Ensure width and height are equal */
    height: 40px; /* Ensure width and height are equal */
  }
