/* Global box-sizing para incluir bordes y paddings en el width/height */
*, *::before, *::after {
  box-sizing: border-box;
}

/* Estilos originales de tu login-about (si los necesitas) */
.login-container .login-about > .about-credits {
  margin: 2rem 0;
  font-size: .85rem;
  max-width: 75%;
  line-height: 200%;
  font-weight: 300;
}

/*************   PCH added for specific chat page ********/

.text-psy { color: #59B9E9 !important}

body.pschat {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: auto;
}

.pschat-container {
  position: relative;
  height: 100%;
  width: 100%;
  background-color: #f2f2f2;
}

.pschat-container .pschat-wrapper {
  height: 100%;
  display: flex;
  align-items: top;
  padding: 30px;
  justify-content: center;
  position: relative;
  background-color: #f2f2f2;
}

.pschat-screen {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 760px;   /* ancho fluido hasta 900px */
  height:100%;	
  background: linear-gradient(to bottom, #FFF 0%, #EDF7FD 100%);
  /* 
  background-color: white;
  background-image: url('img/bg_pattern_256.png');
  background-repeat: repeat;
	*/
  border: 1px solid #e1e8f3;
  border-radius: 20px;
  box-shadow: 0 30px 15px -20px rgba(0, 0, 0, 0.2);
  position: relative;
}

.pschat-screen .actions {
  display: flex;
  margin-bottom: 1rem;
  justify-content: space-between;
  align-items: center;
}
.pschat-screen .actions a {
  color: #8796af;
  font-size: .7rem;
  line-height: 200%;
  border-bottom: 1px dashed !important;
}
.pschat-screen .actions a:hover {
  text-decoration: underline;
}
.pschat-screen .additional-link {
  text-decoration: none;
  margin: 0 auto;
  display: inline-block;
  color: #999999;
}
.pschat-screen .additional-link a {
  margin-left: 5px;
  display: inline-block;
}
.pschat-screen h6 {
  font-size: .875rem;
  margin-bottom: 2rem;
  line-height: 160%;
  font-weight: 300;
}

/* Header */
.pschat-header {
  border-bottom: 1px solid #e1e8f3;
  padding: 1rem;
  box-shadow: none;
  height: 102px;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  background-color: #fff;
}
.pschat-header .pschat-logo {
  margin: 0.5rem;
  display: flex;
  z-index: 100;
}
.pschat-header .pschat-logo img {
  width: 72px;
  height: 72px;
}

/* Body */
.pschat-screen .pschat-body-wrapper {
  height: 600px;
  flex-grow: 1;
  padding: 1.5rem;
  overflow-y: scroll;
}

.pschat-body {
  flex-grow: 1;
  padding: 1.5rem;
  overflow-y: auto;
}
.pschat-body::-webkit-scrollbar {
  width: 10px;
}
.pschat-body::-webkit-scrollbar-thumb {
  background-color: #999;
  border-radius: 5px;
}

.messageleft {
  margin: 0px 12px 18px 0;
  padding: 12px 12px 12px 18px;
  background-color: #fff;
  text-align: left;
  min-width: 240px;
  max-width: 75%;
  display: inline-block;
  border-radius: 9px;
  border: 2px solid #59B9E9;
}

.messageright {
  margin: 0 12px 12px 0;
  padding: 12px 12px 12px 18px;
  min-width: 240px;
  max-width: 75%;
  background-color: rgba(89, 185, 233, 0.1);
  float: right;
  clear: both;
  display: inline-block;
  border-radius: 12px;
  border-color: gray;
  text-align: left;
}

/* Footer */
.pschat-footer {
  border-top: 1px solid #e1e8f3;
  padding: 1rem;
  height: 138px;
  background-color: #fff;
  border-bottom-left-radius: 20px;
  border-bottom-right-radius: 20px;
}
 .pschat-copyright {
  margin: 1rem;
}
/* .pschat-entry {
  margin: 12px 14px 12px 24px;
  padding: 6px 6px 6px 18px !important;
  border-radius: 12px !important;
  border: 2px solid #CCC !important;
}
 */

.input-group {
  display: flex;
  align-items: stretch;
  width: 90%; /* Optional: control width */
}

.pschat-entry {
  flex: 1 1 auto;
  border: 2px solid #CCC;
  border-right: none; /* Removes double border between input & button */
  border-radius: 9px 0 0 9px; /* Left side rounded */
  padding: 9px 9px 9px 12px !important;
  font-size: 1em;
  outline: none;
  background: #fff;
}

.pschat-entry:focus {
  border-color: #59B9E9 !important;
  outline: none;
}

.submit-btn {
  border-top: 2px solid #ccc !important;
  border-right: 2px solid #ccc !important;	
  border-bottom: 2px solid #ccc !important;
  border-color: #CCC !important;
  border-left: none; /* No double border */
  background: #fff;
  border-radius: 0 9px 9px 0; /* Right side rounded */
  padding: 0 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2em;
  transition: background 0.2s;
}

.submit-btn:hover,
.submit-btn:focus {
  background: #f4f4f4;
  border-color: #59B9E9 !important;
}

.submit-btn i {
  color: #6ABFEB; /* Adjust to your theme */
  font-size: 1.2em;
}


.input-group {
  display: flex;
  align-items: stretch;
  width: 100%; /* Optional: control width */
}

.input-group:focus-within .submit-btn {
  border-color: #59B9E9 !important;
  background: #eaf6fd; /* Optional: subtle background highlight */
}

.input-group:focus-within .submit-btn i {
  color: #59B9E9; /* Icon color on focus */
}

 .pschat-footer {
  border-top: 2px solid #e1e8f3;
  height: 120px;
  padding: 1.5rem;
}	
.pschat-copyright {display: none;}
.pschat-intro {display: none;}


/* Placeholder parpadeante */
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}
.blinking-placeholder::placeholder {
  animation: blink 1s linear infinite;
  color: #59B9E9;
  font-weight: bold;
}

/* Media query para móviles (ancho ≤ 640px) */
@media (max-width: 640px) {
	
  .pschat-body {
  flex-grow: 1;
  overflow-y: auto;
}
  .pschat-container {
  height: 100%;
  width: 100%;
  background-color: #FFFFFF;
}

.pschat-container .pschat-wrapper {
  /*height: 90%;*/
  background-color: #fff;
  display: flex;
  align-items: top;
  padding: 0px;
  justify-content: center;
  position: relative;
}
	.pschat-screen {
    width: 100vw;
    height: 90vh;
    border-radius: 0px;
    box-shadow: none;
    border: 0px;
  }
	
.pschat-body-wrapper {
  padding: 0rem;
}
 .pschat-body {
  padding: 0.5rem;
  flex-grow: 1;
  overflow-x: hidden;
  overflow-y: auto;
}

  .input-group {
    display: flex;
    align-items: stretch;
    width: 100%;
    min-width: 0;
    margin: 0;
  }
  .pschat-entry,
  .submit-btn {
    height: 44px !important;
    font-size: 1em !important;
    box-sizing: border-box;
  }
  .pschat-entry {
    border-radius: 9px 0 0 9px !important;
    padding: 0 12px !important;
  }
  .submit-btn {
    border-radius: 0 9px 9px 0 !important;
    border-color: #CCC !important;
    min-width: 44px !important;
    padding: 0 14px !important;
    margin: 0 !important;
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

 

