/* General Styles */
body {
    margin: 0;
    padding: 0;
    width: 100%;
    background-image: url('https://closebyyou.com/wp-content/uploads/2025/03/girl-with-had-sitting-green-lawn-near-lake.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
   font-family: 'Montserrat', sans-serif;
    height: 100vh;
    overflow: hidden;
}

body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2); /* Dark overlay */
    z-index: -1;
}


#logo {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 1000;
}

#logo img {
    height: 50px;
}

/* Main container */
main {
    width: 100%;
    margin: 0 auto;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
}

.main-div {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 50px;
    padding-top: 5%;
    box-sizing: border-box;
    margin-bottom:100px !important;
}

/* Join Wrapper */
#join-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    background: rgba(255, 255, 255, 0.1);
    padding: 50px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    width: 90%;
    max-width: 800px;
}


.video-player video {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
}




/* Input fields */
.credentials {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-content: center;
    gap: 20px;
}


 #username{
    padding: 15px;
    font-size: 16px;
    border-radius: 5px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
    color: white;
    width: 95%;
    outline: none;
    font-family: 'Montserrat', sans-serif;
}
#meetingId, #secretCode {
     padding: 15px;
    font-size: 16px;
    border-radius: 5px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
    color: white;
    width: 50%;
    outline: none;
    font-family: 'Montserrat', sans-serif !important;
}

#meetingId::placeholder,
#username::placeholder,#secretCode::placeholder {
    color: rgba(255, 255, 255, 0.7);
  font-family: 'Montserrat', sans-serif !important;
  font-size: 18px !important;

   
}

/* Join button */
#join-btn {
   background: transparent;
    border: 3px solid white;
    border-radius: 5px;
    color: white;
    font-size: 18px;
    padding: 15px 40px;
    cursor: pointer;
    transition: background 0.3s ease;
    width: 100%;
     font-family: 'Montserrat', sans-serif !important;
}


/* Room ID Display */
#room-id-display {
    margin-top: 20px;
    font-size: 1rem;
    text-align: center;
}

#room-id-display.hidden {
    display: none;
}

/* User Streams */
#user-streams {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 1em;
     justify-items: center;
    width: 100%;
      height: 90%;
    padding: 20px;
    box-sizing: border-box;
}

.video-player {
    width: 100%;
    height: 100%;
    border-radius: 10px;
    overflow: hidden;
    background-color: #3B6B80;
}

.video-containers {
    position: relative;
    background-color: #3B6B80;
    border-radius: 10px;
      width: 100%;
      max-width: 900px;     /* maximum width for a single stream */
  max-height: 700px;     /* prevent extreme height */
  aspect-ratio: 12/9;    /* consistent ratio */
   
    object-fit: cover;
}



.video-player video,
.video-player {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
}

.user-uid {
    display: flex;
    align-items: center;
    gap: 10px;
    background-color: #8CBCD1;
    padding: 5px 10px;
    border-radius: 5px;
    position: absolute;
    bottom: 10px;
    left: 10px;
    z-index: 1;
    font-size: 0.9rem;
}


/*Modal css for next appointment feature*/

#next-appointment-modal {
   
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
   
}


#next-appointment-modal.hidden {
    display: none;
}


.modal-content {
     display: flex;
    flex-direction: row; 
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    font-family: 'Montserrat', sans-serif;
    color: #333;
    z-index: 1;
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    width: 90%;
    max-width: 850px;
    margin-top:15%;
   margin-left:20%;
}



.left-part {
      display: flex;
    flex-direction: column; 
    justify-content: space-between;
    width: 60%;
}
.right-part {
       display: flex;
    align-items: center;
    flex-direction: column; 
     align-items: flex-start;
    min-height: 120px;
      width: 40%;
}


.calendar-icon {
    max-width: 80%; 
    transition: opacity 0.3s ease, transform 0.3s ease;
    display: block;
    margin-left: auto; 
}



.modal-content p{
     font-family: 'Montserrat', sans-serif;
     color:white;
     font-size:18px;
     
}

.modal-content h2 {
    font-family: 'Roboto condensed', sans-serif; 
    font-weight: 700;
    font-size: 22px;
    color: white;
    margin-bottom: 10px;
}


input[type="date"] {
   
    padding: 12px;
     font-family: 'Montserrat', sans-serif;
    font-size: 18px;
        color: white;
    background-color: #f9f9f9;
    margin-bottom: 20px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);

    outline: none;
   
}

input[type="date"]:focus {
    border-color: white;
    outline: none;
     background: rgba(255, 255, 255, 0.1);
     color: white;
}

#available-slots {
       display: none;
    margin-top: 10px;
    width: 100%;
    text-align: center;
}

h3 {
    
   font-family: 'Montserrat', sans-serif;
    font-size: 22px;
    color: white;
    margin-bottom: 5px;
}

#slots-list {
    list-style-type: none;
    padding-left: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    
}

#slots-list li {
    font-size: 1rem;
    color: #666;
    padding: 8px 12px; 
    border-radius: 8px;
    background-color: #f1f1f1;
    transition: background-color 0.3s ease;
    cursor: pointer;
    white-space: nowrap;
}

#slots-list li:hover {
    background-color: #d1e4f1;
    cursor: pointer;
}

.confirm-btn {
 background-color: #FFFFFF00;
    font-family: var(--e-global-typography-accent-font-family), Sans-serif;
    font-size: var(--e-global-typography-accent-font-size);
    font-weight: var(--e-global-typography-accent-font-weight);
    line-height: var(--e-global-typography-accent-line-height);
    letter-spacing: var(--e-global-typography-accent-letter-spacing);
    fill: white;
    color: white;
    box-shadow: 0px 0px 5px 0px rgba(0, 0, 0, 0.15);
    border-style: solid;
    border-width: 3px 3px 3px 3px;
    border-color: white;
    border-radius: 5px 5px 5px 5px;
    padding: 12px 35px;
    cursor: pointer;
    transition: background 0.3s ease;
    width: 100%;
}

.confirm-btn:hover {
       background-color: #FFFFFF00;
}

.close-btn {
    color: white;
    font-size: 30px;
    font-weight: bold;
    position: absolute;
    top: 10px;
    right: 10px;
    transition: color 0.3s ease;
}

.close-btn:hover,
.close-btn:focus {
    color: black;
    cursor: pointer;
}


/**************************SCREEN Sharing ***********************/
  #video-layout {
    width: 100%;
    height: 100vh;
    overflow: hidden;
  }

  .screen-container {
    flex-grow: 1;
    padding: 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #000;
  }

  .screen-container .video-player {
    width: 100%;
    height: 100%;
  }




/*************Tablet Mobile Responsiveness ***********************/ 


/* Tablet (768px and below) */
@media (max-width: 768px) {
    
     .modal-content {
         width: 90%;
        flex-direction: column;
        align-items: center;
       
        padding: 20px;
     margin: 50px auto !important;
    }

    .left-part,
    .right-part {
        width: 100%;
        align-items: center;
        margin-top: 10px;
    }

    .calendar-icon {
        max-width: 50%;
    }

    .modal-content h2,
    .modal-content h3 {
        font-size: 18px;
    }

    .modal-content p {
        font-size: 14px;
        text-align: center;
    }

    input[type="date"] {
        width: 90%;
    }

    #slots-list {
        justify-content: center;
    }

    #slots-list li {
        font-size: 14px;
        padding: 6px 10px;
    }

    .confirm-btn {
        padding: 12px 24px;
    }

    .close-btn {
        font-size: 24px;
        top: 5px;
        right: 5px;
    }


  input[type="date"] {
    width:90%;
}
#meetingId::placeholder,
#username::placeholder,#secretCode::placeholder {
    
  font-family: 'Montserrat', sans-serif !important;
  font-size: 14px !important;

   
}


}




/* Mobile (480px and below) */
@media (max-width: 480px) {
   .modal-content {
    flex-direction: column !important;
    width: 90%;
    height: auto;
    top: 50%;
    left: 5%;
    margin: 0;
    padding: 20px 0;
    border-radius: 3px;
  }
  
  .modal-content h2 {
       font-family: 'Roboto condensed', sans-serif; 
    font-weight: 700;
font-size: 16px !important;
}
 .modal-content h3 {
font-size: 16px !important;
}
 .modal-content p {
font-size: 14px !important;
}

  .left-part {
        align-items: center;
  }
  
    .right-part {
           margin-top: 0px;
           padding-bottom:10px;
        align-items: center;
       
  }
  .calendar-icon {
    max-width: 50% !important;
  }

  #slots-list li {
    font-size: 14px;
    padding: 6px 10px;
  }

  .confirm-btn {
       width:100%;
    padding: 12px 20px;
    
  }

  .close-btn {
    font-size: 24px;
    top: 5px;
    right: 5px;
  }
  input[type="date"] {
    width:90%;
}
}





/***********Create appointment successful */


#success-modal.hidden {
    display:none;
}

#success-modal {
 position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
   
}

.success-modal-content {
   display: flex;
    flex-direction: row; 
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    font-family: 'Montserrat', sans-serif;
    line-height:1.4px;
    color: white;
    font-size:18px;
    z-index: 1;

    background: rgba(255, 255, 255, 0.1);
    padding: 35px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    width: 90%;
    max-width: 800px;
    margin-top:20%;
   margin-left:20%;
}

.close-success-modal {
    position: absolute;
    top: 10px;
    right: 15px;
    color: white;
    font-family: 'Montserrat', sans-serif;
    font-size: 24px;
    cursor: pointer;
}

.close-success-modal:hover {
    color: #000;
}


#ok {
      background: linear-gradient(90deg, #3B6B80, #8CBCD1);
    border: none;
    border-radius: 5px;
    color: white;
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    padding: 15px 40px;
    cursor: pointer;
    transition: background 0.3s ease;
    width: 50%;
}


@media (max-width: 768px) {
  .success-modal-content {
    flex-direction: column;
    width: 90%;
    margin-left: 5%;
    margin-top: 30%;
    padding: 20px;
    font-size: 16px;
    gap: 15px;
    text-align: center;
  }

  .close-success-modal {
    top: 10px;
    right: 10px;
    font-size: 20px;
  }

  #ok {
    width: 100%;
    padding: 12px 0;
    font-size: 16px;
  }
}

/************************************************/


/******************* New Session record modal  **************/

#session-note-modal.hidden {
    display: none;
}

#session-note-modal {
    position: fixed;
    z-index: 999;
    left: 0;
    top: 0;
    width: 20%;
    height: 90vh;
    overflow: auto;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
 background: rgba(255, 255, 255, 0.1);
     backdrop-filter: blur(10px);
   

}
.session-modal-content {
    display: flex;
    flex-direction: column; 
    justify-content: space-between;
    align-items: center;
    gap: 20px;
   font-family: 'Montserrat', sans-serif;
    color: #333;
    border-radius: 3px;
    width: 100%;
    margin: 150px 0px;
 
}
.session-modal-content h2{
     font-family: 'Roboto condensed', sans-serif; 
    font-weight: 700;
    font-size: 22px;
    color: white;
    margin-bottom: 10px;
}
#close-session-modal {
    color: white;
    font-size: 30px;
    font-weight: bold;
    position: absolute;
    top: 10px;
    right: 10px;
    transition: color 0.3s ease;
}

#close-session-modal:hover,
#close-session-modal:focus {
    color: black;
    cursor: pointer;
}


#new-session-record-form {
    display: flex;
    flex-direction: column;
    width: 80%;
    padding:0;
}

#new-session-record-form textarea {
    width: 100%;
    padding: 10px;
   font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    font-weight:400;
    color:#666;
    border: 1px solid #ccc;
    border-radius: 3px;
    min-height: 300px;
    resize: vertical; 
    margin-bottom: 20px;
    box-sizing: border-box;
}

.session-modal-content p{
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    font-weight:400;
    color: white;
}



@media (max-width: 768px) {
    
  #session-note-modal {
    width: 90%;
    height: auto;
    top: 50%;
    left: 5%;
    margin: 0;
    padding: 20px 0;
    border-radius: 3px;
  }

  .session-modal-content {
    margin: 50px 0;
    padding: 0px 20px;
    gap: 15px;
  }

  .session-modal-content h2 {
    font-family: 'Roboto condensed', sans-serif; 
    font-weight: 700;
    font-size: 18px;
    color: white;
    margin-bottom: 10px;

  }

  #new-session-record-form {
    width: 90%;
  }

  #new-session-record-form textarea {
    font-size: 16px;
    min-height: 120px;
    width:90%;
  }

  .session-modal-content p {
    font-size: 16px;
    width:90%;
    text-align: center;
  }

  #close-session-modal {
    font-size: 24px;
    top: 5px;
    right: 10px;
  }

  .confirm-btn {
   background-color: #FFFFFF00;
    font-family: var(--e-global-typography-accent-font-family), Sans-serif;
    font-size: var(--e-global-typography-accent-font-size);
    font-weight: var(--e-global-typography-accent-font-weight);
    line-height: var(--e-global-typography-accent-line-height);
    letter-spacing: var(--e-global-typography-accent-letter-spacing);
    fill: white;
    color: white;
    width : 90%;
    box-shadow: 0px 0px 5px 0px rgba(0, 0, 0, 0.15);
    border-style: solid;
    border-width: 3px;
    border-color: white;
    border-radius: 5px;
    cursor: pointer;
  }

  .confirm-btn:hover {
    background: #2c5566;
  }
}



/***************************************/










/* Footer */
#footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 10px;
    margin-top:100px;
    background: rgba(59, 107, 128, 0.7);
    backdrop-filter: blur(10px);
    z-index: 1000;
}

#footer.hidden {
    display: none;
}

.icon-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
}

.control-icon {
    padding: 10px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    width: 40px;
    height: 40px;
    transition: background-color 0.3s ease;
}
.volume-icon {
    width:30px;
}

.control-icon:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.icon-wrapper p {
    margin: 5px 0 0;
    font-size: 0.8rem;
}








/* Responsive Design */
@media screen and (max-width: 768px) {
    #logo img {
        height: 50px;
    }

    #join-wrapper {
        padding: 15px;
        gap: 15px;
    }

    #meetingId,
    #username,#secretCode {
        padding: 10px;
        font-size: 14px;
    }

    #join-btn {
        font-size: 16px;
        padding: 10px 30px;
    }

    #footer {
        gap: 5px;
        padding: 5px;
    }

    .control-icon {
        width: 35px;
        height: 35px;
    }

    .icon-wrapper p {
        font-size: 0.7rem;
    }
    
    
  

    h2 {
        font-size: 1.4rem;
    }

    label, input[type="date"], .confirm-btn {
        font-size: 1rem;
    }
}


/************Design for mobile *************************************/
@media screen and (max-width: 480px) {
    #logo img {
        height: 40px;
    }

    .main-div {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 100%;
        text-align: center;
        height: auto;
        min-height: 100vh;
        padding:0;
        
    }

    #join-wrapper {
        width: 90%;
        max-width: 300px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center !important;
        padding: 20px;
        gap: 20px;
    }


     
    #user-streams {
        display: grid;
        grid-template-columns: 1fr !important;
        gap: 1em;
        width: 100%;
        box-sizing: border-box;
        height: auto;
    } 

    #meetingId,
    #username,#secretCode {
        padding: 8px;
        font-size: 14px;
        max-width: 100%;
    }

    #join-btn {
        font-size: 16px;
        padding: 8px 20px;
        width: 100%;
    }

    #footer {
        gap: 3px;
        padding: 3px;
        bottom: 10px;
    }

    .control-icon {
        width: 30px;
        height: 30px;
    }

    .icon-wrapper p {
        font-size: 0.6rem;
    }

    

    .video-containers {
        position: relative;
        width: calc(100% - 40px) !important;
        margin: 0 auto !important;
        padding: 0 !important;
        aspect-ratio: 12/9 !important;
        background-color: #3B6B80;
        border-radius: 10px;
        overflow: hidden;
    }

    
 
    .video-player {
         position: relative !important;
        width: 100%;
        height: 100%;
    }
    


   
    .video-player video {
        width: 100%;
        height: 100%;
        object-fit: cover; 
        display: block;
    }
    
    
    
}





/***********TOAST USER LEAVE THE CALL ******/

.custom-toast {
    background-color: #1f1f1f;
    color: white;
    padding: 10px 16px;
    margin-top: 10px;
    border-radius: 8px;
    font-family: 'Montserrat', sans-serif;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    transition: opacity 0.5s ease;
}

.fade-out {
    opacity: 0;
}

