/* General Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

/* Body Background: Instagram gradient */
body {
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background: linear-gradient(135deg, #f58529, #dd2a7b, #8134af, #515bd4);
  background-size: 400% 400%;
  animation: gradientMove 8s ease infinite;
}

@keyframes gradientMove {
  0% {background-position: 0% 50%;}
  50% {background-position: 100% 50%;}
  100% {background-position: 0% 50%;}
}

/* Chat Container */
.chat-container {
  width: 620px;       /* bigger than before */
  height: 720px;      /* taller */
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 25px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
  transition: all 0.3s ease-in-out;
}

/* Header */
.chat-header {
  display: flex;
  align-items: center;
  padding: 12px;
  background: linear-gradient(90deg, #f58529, #dd2a7b, #8134af);
  color: white;
}
/* Profile pic in chatbot header */
.profile-pic {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  margin-right: 12px;
  cursor: pointer;
  border: 2px solid white;
}

/* Fullscreen DP container */
.fullscreen-dp {
  display: none; /* hidden initially */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.9); /* dark background */
  justify-content: center;
  align-items: center;
  z-index: 1000;
  flex-direction: column;
}

/* Enlarged image */
.fullscreen-img {
  max-width: 90%;
  max-height: 80%;
  border-radius: 10px;
  box-shadow: 0 0 15px rgba(255,255,255,0.5);
  animation: zoomIn 0.3s ease-in-out;
}

/* Close button */
.close-btn {
  position: absolute;
  top: 20px;
  right: 25px;
  font-size: 30px;
  font-weight: bold;
  color: white;
  cursor: pointer;
}

/* Animation */
@keyframes zoomIn {
  from { transform: scale(0.7); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.header-info h3 {
  margin: 0;
  font-size: 20px;
}

.header-info p {
  margin: 0;
  font-size: 12px;
  color: #f1f1f1;
}

/* Chat Area */
.chat-area {
  flex: 1;
  padding: 15px;
  overflow-y: auto;
  background: #fafafa;
}

.chat-area ul {
  list-style: none;
}

/* Sent Messages */
.sent {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 12px;
}

.sent .green {
  background: linear-gradient(135deg, #f58529, #dd2a7b);
  color: #fff;
  padding: 10px 14px;
  border-radius: 20px 20px 4px 20px;
  max-width: 70%;
  word-wrap: break-word;
  position: relative;
  font-size: 14px;
}

.sent .green label {
  display: block;
  font-size: 10px;
  color: rgba(255,255,255,0.8);
  margin-top: 5px;
  text-align: right;
}

/* Received Messages */
.received {
  display: flex;
  justify-content: flex-start;
  margin-bottom: 12px;
}

.received .grey {
  background: #e4e6eb;
  color: #000;
  padding: 10px 14px;
  border-radius: 20px 20px 20px 4px;
  max-width: 70%;
  word-wrap: break-word;
  position: relative;
  font-size: 14px;
}

.received .grey label {
  display: block;
  font-size: 10px;
  color: #555;
  margin-top: 5px;
  text-align: right;
}

/* Input Area */
.chat-input {
  display: flex;
  padding: 10px;
  background: #fff;
  border-top: 1px solid #ddd;
}

.chat-input input {
  flex: 1;
  padding: 10px;
  border: none;
  outline: none;
  border-radius: 20px;
  background: #f0f0f0;
  font-size: 14px;
}

.chat-input button {
  margin-left: 10px;
  border: none;
  background: linear-gradient(135deg, #f58529, #dd2a7b);
  color: white;
  font-size: 16px;
  padding: 10px 14px;
  border-radius: 50%;
  cursor: pointer;
  transition: 0.3s;
}

.chat-input button:hover {
  transform: scale(1.1);
}

/* resume thumbnail in received class*/
.resumeThumbnail{
    width: 100%;
    border-radius: 10px 10px 0px 0px;
}

.downloadSpace{
    background-color: #1d282f;
    display: flex;
    width: 100%;
}
.downloadSpace .pdfname{
    display: flex;
    width: 100%;
}
.pdfname label{
    margin: auto 0px;
}
.downloadSpace img{
    width: 30px;
    cursor: pointer;
    margin: 5px;
}
/* this css is used for embedded html in messages */
.bold{
    font-weight: bold;
}

.alink{
    color: goldenrod;
    transition: all 600ms ease;
    text-decoration: none;
}

.alink:hover{
    text-decoration: none;
    color: green;
}

/* this css is used for social links message */

.social{
    padding: 10px;
}

.social .socialItem{
    width: 100%;
    border-radius: 10px;
    background-color: #94bab3;
    cursor: pointer;
    display: flex;
    margin-bottom: 10px;
    transition: all 500ms ease-in-out;
}

.social .socialItemI{
    margin: auto;
    padding: 10px;
    flex-direction: column;
}

.social .socialItem:hover{
    background-color: rgba(58, 170, 58, 0.863);
}
#call{
    flex-direction: column;
    text-align: center;
}

.number{
    display: none;
}




.scrollable .fullScreenDP{
    transition: all 700ms ease-in-out;
    position: absolute;;
    width: 100%;
    height: 100%;
    display: none;
    flex-direction: column;
    background-color: #2f2f2fec;
    z-index: 1000;
}

.scrollable .fullScreenDP .insideDP{
    display: flex;
    margin: auto;
    scrollbar-width: 0px;
}

.closeBTN{
    width: 30px;
    height: 30px;
    display: block;
    position: absolute;
    margin-left: 6%;
    margin-top: 5px;
    cursor: pointer;
    
}

.btnColor{
    fill: rgba(0, 0, 0, 0.692);
    transition: all 400ms ease-in-out;
}

.closeBTN:hover .btnColor{
    fill: red;
}



.scrollable .fullScreenDP .insideDP .dp{
    width: 90%;
    margin: auto;
    border-radius: 10px;
}




@media (max-width: 1024px) {
  .chat-container {
    width: 90%;
    height: 75vh;
  }

  .chat-header h3 {
    font-size: 22px; /* was 20px */
  }
  .chat-header p {
    font-size: 14px; /* was 12px */
  }

  .sent .green, .received .grey {
    font-size: 16px; /* was 14px */
  }

  .sent .green label, .received .grey label {
    font-size: 12px; /* was 10px */
  }

  .chat-input input {
    font-size: 16px;
  }
}

@media (max-width: 768px) {
  .chat-container {
    width: 95%;
    height: 80vh;
  }

  .chat-header h3 {
    font-size: 24px; /* larger for readability */
  }
  .chat-header p {
    font-size: 15px;
  }

  .sent .green, .received .grey {
    font-size: 18px; /* bumped up */
  }

  .sent .green label, .received .grey label {
    font-size: 13px;
  }

  .chat-input input {
    font-size: 18px;
  }
}

@media (max-width: 480px) {
  .chat-container {
    width: 100%;
    height: 90vh;
    border-radius: 0;
  }

  .chat-header h3 {
    font-size: 26px; /* large, clear header */
  }
  .chat-header p {
    font-size: 16px;
  }

  .sent .green, .received .grey {
    font-size: 20px; /* very readable on small screens */
  }

  .sent .green label, .received .grey label {
    font-size: 14px;
  }

  .chat-area {
    padding: 10px;
  }

  .chat-input input {
    font-size: 20px; /* big, thumb-friendly */
  }

  .chat-input button {
    padding: 14px 18px; /* larger tap target */
  }
}
