.phone {
  /* padding: 5px; */
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-height: 405px;
  overflow: hidden;
  /* background: #fff; */
  padding-top: 0px;
}

/* Header Area */
.header {
  background: #454545;
  padding: 7px;
  color: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 30px;
}
#agentStatusDropdown {
  font-size: 13px;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 550;
}
.logout {
  border-left: 1px soild #ccc;
}
/* Logout button */

.logout-container {
  position: relative;
  display: inline-block;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 27px;
  right: 0;
  background-color: white;
  border: 1px solid #ccc;
  width: 30px;
  min-width: 100px;
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  align-content: center;
}

.dropdown-menu button {
  width: 80%;
  height: 80%;
  padding: 0px 0px 0px 13px;
  border: none;
  background: none;
  text-align: left;
  cursor: pointer;
  font-size: 14px;
  transition: transform 0.2s;
}

.dropdown-menu button:hover {
  transform: scale(1.05);
}

/* Logout button  */

.logout > i {
  cursor: pointer;
}
.logout-btn {
  background: #f4f4f4;
  color: #4d4c4c;
  border: none;
  padding: 5px 10px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: background 0.3s, transform 0.2s;
}
.logout-btn:hover:not(:disabled) {
  transform: scale(1.05);
}

.agent-status {
  font-size: 14px;
  font-weight: 400;
  color: #f4f4f4;
  letter-spacing: 0.5px;
}
/* Status Area */
.status-area {
  background: #fcfcfc;
  padding: 7px;
  background: rgb(7, 115, 152);
  color: rgb(252, 249, 249);
  font-size: 12px;

  /* text-align: center; */
}

/* welcome message */
.agent-info {
  font-weight: 500;
  color: #333;
  /* margin-bottom: 5px; */
  height: 460px;

  /* background-color: #0078d4; */
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-direction: column;
  padding-top: 40px;

  /* gap: 50px; */
}
.agent-name {
  font-size: 16px;
  font-weight: 500;
  color: #333;
  margin-bottom: 5px;
  height: 25%;
  width: 100%;
  /* background-color: red; */
  display: flex;
  align-items: center;
  justify-content: center;
}
#loginLogo {
  position: absolute;
  top: 6%;
  left: 5%;
}
.company-logo {
  width: 100%;
  height: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  /* background: black; */
}
/* close welcome message */

.call-status {
  font-size: 12px;
  font-weight: 500;
  color: #f4f4f4;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.consult-status {
  font-size: 12px;
  font-weight: 500;
  color: #f4f4f4;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.call-sessions {
  display: flex;
  justify-content: center;
  width: 100%;
  gap: 5px;
  margin-top: 10px;
}
.call-sessions button {
  width: 30px;
  height: 30px;
  border: none;
  border-radius: 5px;
  background: #ddd;
  color: #333;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
}

.session-btn {
  width: 30px;
  height: 30px;
  background: #ddd;
  color: #333;
  font-weight: 600;
  cursor: pointer;
}

.session-btn.active {
  background: #0078d4;
  color: #fff;
}

/* Close phone Div */
.close-phone {
  color: #4e4e4e;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 16px;
  font-weight: 550;
  font-style: bolder;
}

.input-with-backspace {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
  background-color: transparent;
}

#callNumber {
  flex: 1;
}

.backspace-btn {
  margin-left: 8px;
  /* background-color: #f5f5f5; */
  border: none;
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 16px;
  background-color: transparent;
  transition: 0.3s all ease-in-out;
}

.backspace-btn:hover {
  background-color: #e0e0e0;
}

.close-icon {
  font-size: 20px;
  margin-right: 10px;
  transition: transform 0.3s;
  cursor: pointer;
}
.close-icon:hover:not(:disabled) {
  transform: scale(1.05);
}

/* Dial Area */
.dial-area {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.dial-area input {
  padding: 10px;
  font-size: 16px;
  border-radius: 6px;
  outline: none;
  transition: border-color 0.3s;
  height: 36px;
  border: none;
  border-bottom: 1px solid #ccc;
  border-radius: 2px;
  padding-bottom: 0px;
}

.dial-area input:focus {
  box-shadow: none;
}

.dial-pad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
}

.dial-btn {
  height: 60px;
  padding: 5px;
  border: none;
  border-radius: 10px;
  background: #e9ecef;
  color: #333;
  cursor: pointer;
  font-size: 25px;
  transition: background 0.3s;
}

.dial-btn:hover {
  background: #d1d5db;
}

/* Show dialpad */
.show-dialpad {
  width: 100%;
  height: 50px;
  margin-top: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5px;
  color: #454545;
}
.numpad-btn {
  width: 80%;
  height: 40px;
  background: transparent;
  background: red;
  color: #505050;
  border: none;
  padding: 5px 10px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  border: 1px solid #505050;
  background: #fff;
  transition: background 0.3s, transform 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.numpad-icon {
  font-size: 18px;
  color: #505050;
  margin-right: 10px;
}
.numpad-text {
  font-size: 14px;
  color: #505050;
  font-weight: 400;
}
.numpad-btn:hover:not(:disabled) {
  transform: scale(1.05);
}

/* Call Controls */
.call-controls {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-direction: column;
  /* background-color: #138496; */
  gap: 5px;
  height: 100%;
  padding-top: 10px;
}
.call-controls > div {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 90%;
}
.call-controls > div > button {
  width: 100%;
  font-size: 14px;
  border: 1px solid #505050;
  background: #fff;
}

.icon {
  font-size: 16px;
  padding-right: 5px;
}

.control-btn {
  padding: 7px;
  font-size: 14px;
  font-weight: 500;
  border: none;
  border-radius: 6px;
  background: #e9ecef;
  color: #333;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transition: background 0.3s, transform 0.2s;
}

.control-btn:hover:not(:disabled) {
  /* transform: scale(1.05); */
}

.control-btn:disabled {
  background: #ccc;
  color: #666;
  cursor: not-allowed;
}
.main-call-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  width: 100%;
}
.end-call,
.ans-call {
  padding: 7px;
  font-size: 14px;
  font-weight: 500;
  border: none;
  border-radius: 6px;
  background: #ffffff;
  color: #ffffff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s, transform 0.2s;
}

.end-call {
  background: rgb(208, 2, 27);
}
.ans-call {
  background: rgb(17, 126, 38);
}

/* Call Button */
.call-btn {
  background: rgb(7, 115, 152);
  color: #fff;
  height: 40px;
  /* width: 0px; */
}
.call-btn:disabled {
  background: rgb(124, 176, 194);
  color: #fff;
  cursor: not-allowed;
}

.call-btn:hover:not(:disabled) {
}

.answer-btn {
  background: #17a2b8;
  color: #fff;
}

.answer-btn:hover:not(:disabled) {
  background: #138496;
}

.end-btn {
  background: #dc3545;
  color: #fff;
}

.end-btn:hover:not(:disabled) {
  background: #c82333;
}

/* Log Area */
.log-area {
  background: #f8f9fa;
  padding: 10px;
  border-radius: 8px;
}

.log-area h3 {
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 5px;
  color: #444;
}

.log-area ul {
  list-style: none;
  max-height: 150px;
  overflow-y: auto;
  font-size: 12px;
  color: #555;
}

.log-area ul li {
  padding: 5px 0;
  border-bottom: 1px solid #eee;
}

.log-area ul li:last-child {
  border-bottom: none;
}

/* Responsive Design */
@media (max-width: 400px) {
  .phone {
    padding: 5px;
  }

  .control-btn {
    font-size: 12px;
    padding: 8px;
  }

  .dial-btn {
    padding: 12px;
    font-size: 16px;
  }
}

/* Call Timer */
.call-timer {
  font-size: 14px;
  color: #666;
  margin-top: 5px;
  text-align: center;
}

.hidden {
  display: none;
}
