/*
EP Directory — stylemaster.css (Annotated)
Generated: 2025-10-20 16:44:58

This annotated CSS explains:
- Layout regions (lists, video, status banner, modals).
- Button states (idle/dialing/connected) and color semantics.
- Responsive choices relevant for the single-page layout.

NOTE: No rules changed; only comments added for maintainability.
*/
/* merged stylemaster.css with purple buttons and modal overrides */
body {
  margin: 0;
  padding: 0;
  display: flex;
  height: 100vh;
  font-family: "Montserrat", sans-serif;
}

#pullDown { display: none; }

label[for="pullDown"] {
  display: block;
  background-color: #0eb3c7;
  color: white;
  padding: 10px 20px;
  cursor: pointer;
  text-align: center;
  margin: 20px auto;
  width: fit-content;
  border-radius: 6px;
}

#headerMenu {
  position: absolute;
  top: 60px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #ffffff;
  padding: 20px;
  border: 1px solid #ccc;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  width: 350px;
  z-index: 999;
}

.select { margin: 10px 0; }

.form {
  background-color: #15172b;
  border-radius: 20px;
  box-sizing: border-box;
  padding: 20px;
  width: 320px;
}

.green { color: #198b16; }
.red   { color: #FF0000; }

.regForm {
  position: absolute;
  top: 2in;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  width: max-content;
}

.clabel {
  display: inline-block;
  width: 170px;
  text-align: left;
  font-weight: bold;
  padding-right: 5px;
}

.cinput { display: inline-block; }
.ia { display: inline-block; float: left; }

.controls { border-top: 30px solid #fff; display: none; }
.controls ul {
  list-style: none;
  display: flex;
  justify-content: center;
  padding: 0;
  margin: 0;
  gap: 7.5px;
}
.controls li {
  align-items: center;
  display: inline-block;
  width: 5%;
}
.controls a {
  width: 50%;
  padding: 20px 15px;
  font-size: 1.4em;
  cursor: pointer;
  background: #D6D6D6;
  transition: background .3s, color .3s;
  vertical-align: middle;
}
.controls a:hover, .controls a.active {
  background: #0EBEC7; color: #fff;
}

.webrtcbutton {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #0eb3c7;
  border-radius: 50%;
  color: #fff;
  text-align: center;
  text-decoration: none;
  transition: background-color 0.3s, transform 0.3s;
}

.formBox {
  background-color: #ffffff;
  padding: 30px 40px;
  border-radius: 10px;
  box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.1);
  text-align: left;
  width: 400px;
}

.formTitle { text-align: center; margin-bottom: 20px; font-size: 1.5em; color: #0a2136; font-weight: 600; }
.formGroup { margin-bottom: 15px; display: flex; flex-direction: column; }
.clabel { margin-bottom: 5px; font-weight: 600; font-size: 0.95em; color: #333; }
.cinput { padding: 10px; border: 1px solid #ccc; border-radius: 6px; font-size: 1em; width: 100%; box-sizing: border-box; }

.registerBtn { background-color: #0eb3c7; color: white; border: none; padding: 12px; font-size: 1em; border-radius: 6px; cursor: pointer; transition: background-color 0.3s ease; }
.registerBtn:hover { background-color: #0a96a5; }

#status_container {
  position: fixed;
  background-color: #0a2136;
  padding: 10px 14px;
  border-radius: 8px;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 10px;
}
#reg_status { color: white; font-weight: bold; }

.flashing-red { animation: flashRed 1s infinite; color: red; }
@keyframes flashRed { 0% { color: red; } 50% { color: darkred; } 100% { color: red; } }
.green { color: #00c853; }

#refresh_registration_btn { background-color: #0eb3c7; color: white; border: none; padding: 6px 12px; font-size: 14px; border-radius: 4px; cursor: pointer; }
#refresh_registration_btn:hover { background-color: #0a94a8; }

@media only screen and (min-device-width: 768px) and (max-device-width: 1024px) {
  body { flex-direction: column; padding: 20px; justify-content: flex-start; }
  .form, .formBox { width: 90%; max-width: 500px; }
  .regForm { top: 1in; }
  #headerMenu { position: absolute; top: 60px; left: 50%; transform: translateX(-50%); background-color: #ffffff; padding: 20px; border: 1px solid #ccc; border-radius: 8px; box-shadow: 0 4px 12px rgba(0,0,0,0.1); width: 350px; z-index: 999; }
  .controls ul { flex-direction: row; justify-content: center; flex-wrap: wrap; gap: 10px; }
  .controls li { width: auto; margin-bottom: 0; }
  .controls a { width: auto; text-align: center; }
  #status_container { bottom: 10px; left: 10px; right: auto; }
}

.phonebook { font-family: "Montserrat", sans-serif; color: #0a2136; }
.facility { margin-bottom: 30px; background-color: #f7f7f7; padding: 15px 20px; border-radius: 10px; box-shadow: 0 2px 8px rgba(0,0,0,0.05); }
.facility h2 { font-size: 1.4em; margin-bottom: 10px; border-bottom: 2px solid #0eb3c7; padding-bottom: 5px; }
.department { margin-left: 20px; margin-top: 10px; }
.department h3 { font-size: 1.1em; margin-bottom: 8px; color: #333; }
.department ul { list-style-type: none; padding-left: 0; }
.department li { padding: 6px 0; display: flex; justify-content: space-between; align-items: center; }

.callBtn { background-color: #0eb3c7; border: none; color: white; padding: 5px 12px; font-size: 0.9em; border-radius: 5px; cursor: pointer; transition: background-color 0.3s ease; }
.callBtn:hover { background-color: #0a96a5; }
.addEndpointBtn { background-color: #0eb3c7; color: white; border: none; padding: 10px 16px; font-size: 1em; border-radius: 6px; cursor: pointer; margin-bottom: 20px; transition: background-color 0.3s ease; }
.addEndpointBtn:hover { background-color: #0a94a8; }

/* Modal Styles */
/* Modal base: used for camera switch/presets; centers and overlays content */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0; top: 0; width: 100%; height: 100%;
  overflow: hidden;
  background-color: rgba(0,0,0,0.5);
  align-items: center; justify-content: center;
}
/* Modal base: used for camera switch/presets; centers and overlays content */
.modal-content {
  background-color: #ffffff;
  padding: 20px 30px;
  border-radius: 10px;
  width: 90%; max-width: 420px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
  margin: 0;
}
/* Modal base: used for camera switch/presets; centers and overlays content */
.modal-content h3 { margin-top: 0; color: #0a2136; }
/* Modal base: used for camera switch/presets; centers and overlays content */
.modal-content label { display: block; margin-top: 10px; font-weight: bold; color: #333; }
.modal-content input,
/* Modal base: used for camera switch/presets; centers and overlays content */
.modal-content select { width: 100%; padding: 8px; margin-top: 4px; border-radius: 4px; border: 1px solid #ccc; box-sizing: border-box; }
/* Modal base: used for camera switch/presets; centers and overlays content */
.modal-content .callBtn { width: 100%; margin-top: 15px; }
.close { color: #aaa; float: right; font-size: 1.4em; font-weight: bold; cursor: pointer; }
.close:hover { color: #000; }

.main-layout { width: 75%; overflow-y: auto; padding: 20px; box-sizing: border-box; position: relative; }
#videoWindow { width: 25% !important; height: 100vh; overflow-y: auto; padding: 20px; box-sizing: border-box; background-color: #f4f4f4; }

.headerMenuWrapper { display: none; }
.callBtn.green { background-color: #198b16 !important; color: white !important; }

#video { background: #ffffff; }
.videoStage { background: #ffffff; }
.inactive-top { position: fixed; top: 60px; left: 20px; z-index: 1000; width: auto; }

/* Status banner: fetch/dial state; keep high-contrast and concise */
.status-green { color: #198b16; font-weight: 700; }
/* Status banner: fetch/dial state; keep high-contrast and concise */
.status-orange { color: #ff8c00; font-weight: 700; }

/* Purple round buttons */
/* Base button styling shared across call/sync/camera/preset actions */
.btn-purple { background-color: #6b21a8 !important; color: #fff !important; }
/* Base button styling shared across call/sync/camera/preset actions */
.btn-purple:hover { background-color: #581c87 !important; color: #fff !important; }

/* Camera Switch modal dark theme override */
#cameraSwitchModal /* Modal base: used for camera switch/presets; centers and overlays content */
.modal-content { background: #0a2136; color: #fff; }
#cameraSwitchModal input, #cameraSwitchModal select {
  background: #092033; color:#fff; border: 1px solid rgba(255,255,255,0.2);
}

/* 2x3 inch, translucent, draggable */
#feccPanel {
  position: fixed;
  width: 3in; height: 2in;
  top: 20px; left: 20px;
  background: rgba(30, 30, 40, 0.6);
  backdrop-filter: blur(6px);
  color: #fff;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0,0,0,.25);
  z-index: 99999;
  user-select: none;
}
#feccPanel .fecc-header {
  cursor: move;
  display: flex; align-items: center; justify-content: space-between;
  padding: 6px 10px; font-weight: 600; letter-spacing: .4px;
  background: rgba(255,255,255,.12);
  border-top-left-radius: 12px; border-top-right-radius: 12px;
}
#feccPanel .fecc-close {
  background: transparent; border: 0; color: #fff; font-size: 18px; cursor: pointer;
}
#feccPanel .fecc-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 36px;
  gap: 6px; padding: 8px 10px 2px 10px;
}
#feccPanel .fecc-btn {
  border: 1px solid rgba(255,255,255,.25);
  background: rgba(255,255,255,.12);
  color: #fff; border-radius: 8px; cursor: pointer; font-size: 14px;
}
#feccPanel .fecc-btn:active { transform: translateY(1px); }
#feccPanel .fecc-preset {
  margin: 6px 10px 10px 10px; width: calc(100% - 20px);
  border: 0; border-radius: 8px; padding: 8px 10px; cursor: pointer;
  background: #6366f1; color: #fff; font-weight: 600;
}

.vmr-container { max-height: 480px; overflow-y: auto; }
#vmrList { list-style: none; padding-left: 0; margin: 0; }
#vmrList li { padding: 6px 0; border-bottom: 1px solid #eee; display: flex; justify-content: space-between; align-items: center; }
