/**
Author: Ishan Jayman
 */

/* Reset all default styles */
body,
h1, h2, h3, h4, h5, h6,
p, blockquote, pre,
dl, dd, ol, ul,
figure,
form, fieldset, legend,
button, textarea, select {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    font-family: inherit;
    font-weight: inherit;
    line-height: 1;
    vertical-align: baseline;
}

/* Correct the line height in all browsers */
h1, h2, h3, h4, h5, h6 {
    line-height: 1.2;
}

/* Remove the list style on navigation lists */
ul, ol {
    list-style: none;
}

/* Reset the default link styles */
a {
    text-decoration: none;
    color: inherit;
}

/* Reset other elements that can have inherent styles */
table {
    border-collapse: collapse;
    border-spacing: 0;
}

img {
    max-width: 100%;
    height: auto;
}

/* Optional: Set a base font size and line height for easier scaling */
body {
    font-family: Arial, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    background: #fff;
    background-size: contain;
    background-image: url("../images/bg.png");
    background-repeat: no-repeat;
    min-height: 100vh;
}
body.enroll{
    background-image: url("../images/bg_enroll.png");
}

.root{
    justify-content: center;
    align-items: center;
    padding: 30px 50px;
}

.auth_container{


    /*background-color: rgba(255, 255, 255, 0.3);*/
    border-radius: 15px;
    padding: 100px 150px;
}
.logo{
    max-width: 300px;
    margin: 0 auto;
}
.auth_container h1{
    padding: 20px 0;
}
.btn-small{
    padding: 5px 30px;
}
.btn-block{
    display: block;
}

/* Header styles */
header {
    display: flex;
    color: #000;
    padding: 15px 50px;
    border-bottom: 1px solid #C1C2C5;
    justify-content: space-between;
    align-items: center;
}
.header_left{
    display: flex;
    gap: 10px;
    align-items: center;
}
.header_right{
    display: flex;
    align-items: center;
}
header img{
    height: 35px;
}
header h1{
    border-left: 1px solid #C1C2C5;
    padding: 0 0 0 20px;
    margin: 0;
    font-size: 24px;
}

h1 {
    margin: 0;
    font-size: 24px;
}
.user-actions{
    background: transparent;
    padding: 0;
}
.nav_home{
    font-size: 28px;
    color: #000;
    margin-right: 15px;
}
.avatar_name{
    border-radius: 50%;
    padding: 10px;
    background: #CED4DA;
}

/* Responsive header styles */
@media screen and (max-width: 480px) {
    header {
        font-size: 18px;
    }
}

/* Common styles for the form elements */
form {
    margin: 0 auto;
    padding: 20px;
}
.form-control{
    width: 100%;
    height: 50px;
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ADB5BD;
    border-radius: 15px;
    box-sizing: border-box;
}

button {
    box-sizing: border-box;
    border: none;
    border-radius: 5px;
    padding: 12px 20px;
    font-size: 16px;
    cursor: pointer;
}
button.green{
    background-color: #4CAF50;
    color: white;
}
.form-title{
    font-size: 22px;
    margin-bottom: 40px;
    font-family: 'Open Sans';
    font-style: normal;
    font-weight: 700;
}
.form-group{
    margin-bottom: 30px;
}
.form-group label{
    display: block;
    padding-bottom: 10px;
}
.form_controls{
    display: flex;
    padding-top: 15px;
}
.form_controls.left{
    justify-content: left;
}
.form-button{
    height: 40px;
    color: #fff;
    border-radius: 30px;
    background: #571E65;
}

.table-container{
    position: relative;
    padding-top: 30px;
}
.date_filter{
    position: absolute;
    right: 0;
    z-index: 10;
}

.enroll_voice_container{
    display: none;
}
.enroll_voice_container p{
    padding-bottom: 30px;
}

.enrollment_details{
    width: 400px;
}

.voice_form{
    position: relative;
    max-width: 1000px;
}
.voice_form.step_1 .enrollment_details{
    display: block;
}
.voice_form.step_1 .enroll_voice_container{
    display: none;
}

.voice_form.step_2 .enrollment_details{
    display: none;
}
.voice_form.step_2 .enroll_voice_container{
    position: relative;
    display: flex;
    width: 100%;
}
.go_back{
    position: absolute;
    left: 0;
    bottom: 15px;
    color: #862E9C;
}
.go_back i{
    margin-right: 10px;
}
.go_back:hover, .go_back:focus{
    color: #862E9C;
}

#empNumberValidationMsg{
    display: block;
    padding-top: 10px;
    color: darkred;
}

.voice_container_left,
.voice_container_right{
    flex: 0 0 50%;
    flex: 1;
}
.voice_form #enroll_voice_container.error .enroll_voice_container{
    display: none;
}

.enroll_voice_box{
    display: flex;
    gap: 15px;
    flex-direction: column;
    align-items: center;
    padding: 0;
}

.p_text{
    color: #25262B;
    font-size: 16px;
    font-weight: 600;
}
.p_text_2{
    color: #25262B;
}
.p_text_2 span{
    color: #BE4BDB;
}

/* Add your styles for the microphone icon here */
#microphoneIcon {
    background: transparent;
    font-size: 48px;
    cursor: pointer;
    position: relative;
    z-index: 1;
    flex: 0 0 100px;
    margin: 0;
    width: 290px;
    padding: 0;
}
.microphone-icon-outer{
    position: relative;
}
#microphoneIcon.active{
    animation: pulse 2s infinite;
}

#microphoneIcon.active {
    animation: none;
}

/* Add circles for animation effect */
#microphoneIcon.active::before{
    animation: circleZoom 2s infinite;
}

#microphoneIcon.active::after {
    content: "";
    position: absolute;
    z-index: 1;
    width: 36px;
    height: 36px;
    background-color: #4CAF50;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: circleZoom 2s infinite;
    animation-delay: 0.5s;
}

@keyframes circleZoom {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(3);
        opacity: 0;
    }
}

.img_wave_container{
    position: relative;
    padding-top: 26.82119205%;
}
.img_wave_container .wave{
    position: absolute;
    width: 100%;
    top: 50%;
    transform: translateY(-50%);
}

#challengeText{
    padding: 15px 40px;
    border: 1px solid #862E9C;
    color: #862E9C;
    border-radius: 50px;
    font-size: 18px;
    line-height: 24px;
    text-align: center;
}
#challengeText.success{
    border: 1px solid #2B8A3E;
    color: #099268;
}
#challengeText.error{
    border: 1px solid #FA5252;
    color: #F03E3E;
}

/*
Success container
*/
.enroll_success, .enroll_error{
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
}
.message_success{
    font-size: 22px;
    padding: 20px 0;
    text-align: center;
}
.badge-success, .badge-error{
    display: flex;
    border: 4px solid #4CAF50;
    background: #fff;
    color: #4CAF50;
    width: 48px;
    height: 48px;
    font-size: 24px;
    border-radius: 50%;
    justify-content: center;
    align-items: center;
}
.badge-error{
    border: 4px solid #ff4242;
    color: #ff4242;
}
.enroll_success p{
    padding-bottom: 30px;
}

/* Styles for the email validation message */
#emailValidationMsg {
    color: red;
    font-size: 14px;
}

/* Styles for invalid email input */
input.invalid {
    border-color: red;
}

/* Media query for responsiveness */
@media screen and (max-width: 480px) {
    form {
        padding: 10px;
    }

    input[type="text"],
    input[type="email"] {
        font-size: 14px;
    }

    button {
        font-size: 14px;
        padding: 10px 15px;
    }
}

.spinner{
    display: none;
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    justify-content: center;
    align-items: center;
}
.spinner img{
    width: 48px;
}
.microphone-icon-outer .spinner img{
    width: 110px;
}
.show_progress .hide_on_progress{
    visibility: hidden;
}
.show_progress .spinner{
    display: flex;
}

#readings_table_wrapper div.dt-buttons{
    padding-top: 30px;
}

#readings_table,
#readings_table th,
#readings_table td{
    font-size: 14px;
}

#readings_table th.right,
#readings_table td.right{
    text-align: right;
}

.dashboard_summary{
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    /*padding: 15px;*/
    /*border: 1px solid #ccc;*/
    border-radius: 5px;
    margin-top: 50px;
    font-weight: 600;
}

#maintanence_table{
    border: 1px solid #ddd;
}

#maintanence_table th,
#maintanence_table td{
    padding: 8px 15px;
    border-right: 1px solid #ddd;
    background: lightblue;
    text-align: center;
}
#maintanence_table tr{
    border-bottom: 1px solid #ddd;
}
#maintanence_table thead th{
    background: lightseagreen;
}
#maintanence_table tr th:last-child,
#maintanence_table tr td:last-child{
    border-right: none;
}


#summary_table{
    border: 1px solid #ddd;
}

#summary_table th,
#summary_table td{
    padding: 8px 15px;
    border-right: 1px solid #ddd;
    background: lightblue;
}
#summary_table tr{
    border-bottom: 1px solid #ddd;
}
#summary_table thead th{
    background: lightseagreen;
}
#summary_table tr th:last-child,
#summary_table tr td:last-child{
    border-right: none;
}

.num_label{

}
.num_label.red{
    color: darkred;
}
.num_label.green{
    color: darkgreen;
}

@media print {
    .site-title {
        display: none;
    }

    #readings_table,
    #readings_table th,
    #readings_table td{
        font-size: 12px;
    }

    thead {
        display: table-header-group;
    }
}

@media (min-width: 768px) and (max-width: 1024px) {
    .auth_container{
        padding: 60px;
    }
    .voice_form.step_1 .enrollment_details{
        margin: 0 auto;
    }
}

@media only screen and (max-width: 767px) {
    header{
        padding: 15px;
        font-size: 14px;
    }
    header h1{
        font-size: 14px;
        margin-left: 5px;
        padding-left: 15px;
    }
    #users_table_wrapper{
        position: relative;
        padding-top: 50px;
        font-size: 14px;
    }
    #users_table_wrapper .dt-buttons{
        position: absolute;
        top: 0;
        left: 0;
    }
    #users_table_wrapper #users_table_filter{
        position: absolute;
        top: 0;
        right: 0;
    }
    .auth_container{
        position: relative;
        padding: 30px 15px;
    }
    .logo{
        max-width: 100%;
    }
    .auth_container h1 {
        padding: 20px 0;
        font-size: 18px;
        text-align: center;
    }
    .enroll_voice_container{
        display: none;
        max-width: 100%;
    }
    .enroll_voice_container p{
        padding-bottom: 20px;
        text-align: center;
    }

    .enrollment_details{
        max-width: 100%;
        margin: 0 auto;
    }
    .enroll_voice_box{
        flex-direction: column;
    }

    .voice_form.step_2 .enroll_voice_container{
        flex-direction: column;
    }
    .go_back{
        position: relative;
        left: auto;
        bottom: auto;
        text-align: center;
        margin: 15px 0;
    }
    .form-title{text-align: center;}
    #microphoneIcon{
        width: 180px;
    }
    .wave{
        max-width: 200px;
    }
    #challengeText{
        padding: 10px 40px;
        border-radius: 45px;
        font-size: 16px;
    }
}