:root {
  --orangecolor: #EA6B57;
  --lightgreencolor: #F6AF4E;
  --whitecolor: #FFFFFF;
  --linecolor: #e5e5e5;
  --blackcolor: #000000;
  --redcolor: red;
  --greycolor: grey;
  --greenbg: #ddffdd;
  --redbg: #ffcfcf;
  --bluebg: #dddeff;
  --bluecolor: #007abf;
  --greybg: #f1f1f1;
  --greenlightbg: #FFE4C2;
  --greenborder: #F6AF4E;
  --lightgrey: #7c7c7c;
  --lightorange: #F9C9C3;
}

@font-face {
  font-family: 'InclusiveSans';
  src: url('fonts/InclusiveSans-Regular.ttf');
}

input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

body {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  background-color: var(--greenlightbg);
}

* {
  font-family: InclusiveSans;
}

strong {
  color: var(--blackcolor);
}

#completeview,
#loginview {
  display: none;
}

#profile,
#timeline,
#university-offers {
  margin: 20px;
  padding: 20px;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  background-color: #fff;
}

#timeline {
  padding-left: 10px;
}

h2 {
  color: var(--orangecolor);
}

.profile-card ul {
  list-style-type: none;
  padding: 0;
}

.profile-card li {
  margin: 5px 0;
}

.timeline {
  margin-top: 20px;
  padding-left: 35px;
  position: relative;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 20px;
  top: 0;
  bottom: 0;
  width: 2px;
  background-color: var(--greybg);
}

.timeline-stage {
  position: relative;
  margin-bottom: 30px;
  padding-left: 16px;
}

.timeline-stage:last-child {
  margin-bottom: 0;
}

.timeline-stage[stagestatus="1"]::before {
  border-color: var(--orangecolor);
  background-color: var(--orangecolor);
}

.timeline-stage[stagestatus="-1"]::before {
  border-color: red;
  background-color: red;
}

.timeline-stage[stagestatus="0"]::before {
  border-color: grey;
  background-color: grey;
}

.timeline-stage h3 {
  margin: 0;
}

.timeline-stage p {
  margin: 0;
  font-size: 0.9rem;
  color: #555;
  margin-top: 5px;
}

.timeline-stage .icon-wrapper {
  position: absolute;
  left: -29px;
  top: -2px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
}

.timeline-stage .icon-wrapper span {
  border-radius: 50%;
  width: 24px;
}

.timeline-stage[stagestatus="1"] .icon-wrapper span {
  background-color: var(--orangecolor);
  color: var(--whitecolor);
}

.timeline-stage[stagestatus="-1"] .icon-wrapper span {
  background-color: red;
  color: var(--whitecolor);
}

.timeline-stage[stagestatus="0"] .icon-wrapper span {
  background-color: grey;
  color: var(--whitecolor);
}

.timeline-stage[stagestatus="2"] .icon-wrapper span {
  background-color: var(--greycolor);
  color: var(--whitecolor);
}

.substage-cards {
  margin-top: 16px;
}

.substage-card.disabled {
  background: var(--redbg);
}

.substage-card {
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  padding: 10px;
  background-color: #fff;
  flex: 1 1 calc(33.333% - 20px);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s;
  margin: 10px 5px;
}

.substage-card:hover {
  transform: translateY(-5px);
}

.substage-card h4 {
  margin: 0;
  font-size: 1rem;
}

.red {
  color: var(--redcolor);
}

.green {
  color: var(--orangecolor);
}

.grey {
  color: var(--greycolor);
}

.substage-card p {
  margin: 5px 0;
  font-size: 0.9rem;
  color: #555;
}

.card {
  margin: 20px;
  padding: 20px;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  background-color: #fff;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.card h2 {
  margin-bottom: 15px;
  color: var(--orangecolor);
}

.profile-card strong {
  margin-bottom: 5px;
  font-size: 0.95rem;
  color: #555;
}

/* Members Section Styling */
.members-section {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

.member-card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  padding: 20px;
  width: 100%;
  max-width: 300px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  border: 1px solid #e5e5e5;
}

.member-card img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin-bottom: 15px;
  object-fit: cover;
  background-color: var(--greenbg);
  object-fit: contain;
  object-position: center;
}

.member-card-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.member-card h3 {
  margin: 0;
  color: var(--orangecolor);
  font-size: 1.2rem;
}

.member-card p {
  margin: 5px 0;
  font-size: 0.9rem;
  color: #555;
}

.member-card .email {
  color: #03a9f4;
  text-decoration: none;
}

#loginview {
  text-align: center;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  margin: 10px;
}

.login-card {
  background: #fff;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  max-width: 400px;
  width: 100%;
  text-align: center;
}

.login-card h2 {
  color: var(--orangecolor);
  text-align: center;
  margin-bottom: 20px;
}

.login-card form {
  display: flex;
  flex-direction: column;
}

.login-card label {
  margin-bottom: 10px;
  font-weight: bold;
  text-align: left;
  color: #555;
}

.login-card input {
  margin-bottom: 15px;
  padding: 10px;
  font-size: 1rem;
  border: 1px solid #e5e5e5;
  border-radius: 20px;
  width: 100%;
  margin-left: -1px;
  outline: none;
  box-sizing: border-box;
}

.login-card button {
  background: var(--orangecolor);
  color: #fff;
  font-size: 1rem;
  padding: 10px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.login-card button:hover {
  background: var(--lightgreencolor);
}

.error {
  color: red;
  font-size: 0.9rem;
  text-align: center;
  margin-bottom: 10px;
}

.logout-container {
  text-align: center;
}

.logout-container .logout-btn {
  display: inline-block;
  text-align: center;
  margin: 30px auto;
  background: var(--blackcolor);
  color: var(--whitecolor);
  cursor: pointer;
  padding: 3px 5px;
  border-radius: 5px;
}

.needhelp-container {
  position: relative;
}

.needhelp-container .needhelp {
  padding: 15px;
  border-radius: 30px;
  color: var(--whitecolor);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.needhelp-container .needhelp span {
  margin-right: 10px;
  width: 20px;
}

.needhelp-container .needhelp h3 {
  margin: 0px;
}

.needhelp-container .help-popup {
  background: var(--whitecolor);
  border: 1px solid var(--lightgrey);
  border-radius: 5px;
  padding: 16px;
  margin-bottom: 10px;
  text-align: left;
  display: none;
  position: absolute;
  left: 10px;
  bottom: 40px;
}

.needhelp-container .help-popup label {
  display: block;
  color: var(--greycolor);
  margin-bottom: 5px;
}

.needhelp-container .help-popup a {
  color: var(--bluecolor);
  text-decoration: none;
  font-size: 18px;
  margin-bottom: 16px;
  display: block;
}

.needhelp-container .help-popup .a-last-child {
  margin-bottom: 0px;
}

.needhelp-container .help-popup .close-btn {
  position: absolute;
  top: -8px;
  right: -8px;
  background-color: var(--whitecolor);
  font-size: 25px;
  cursor: pointer;
  border-radius: 50%;
  color: var(--greycolor);
  width: 25px;
}

/* General Styling */
.rate-us-btn,
.change-of-member-btn {
  padding: 8px 13px;
  background-color: var(--blackcolor);
  color: var(--whitecolor);
  border: none;
  border-radius: 20px;
  cursor: pointer;
  font-size: 0.8rem;
  min-width: 130px;
  margin-top: 20px;
  text-align: center;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  white-space: nowrap;
}

.rate-us-btn:hover,
.change-of-member-btn:hover {
  background-color: var(--orangecolor);
}

/* Popup Styling */
.popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.popup-content {
  background: var(--whitecolor);
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  width: 90%;
  max-width: 400px;
  text-align: center;
}

.popup-content h2 {
  margin-bottom: 20px;
}

#popup-rating {
  display: flex;
  justify-content: center;
  gap: 5px;
  margin-bottom: 15px;
}

#popup-rating .star {
  font-size: 2rem;
  color: #ddd;
  cursor: pointer;
  transition: color 0.3s;
}

#popup-feedback {
  width: 100%;
  height: 80px;
  border: 1px solid #ddd;
  border-radius: 5px;
  padding: 10px;
  resize: none;
  margin-bottom: 20px;
  box-sizing: border-box;
}

.popup-actions {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.popup-actions button {
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

#popup-close-btn {
  background-color: #aaa;
  color: var(--whitecolor);
}

#popup-submit-btn {
  background-color: var(--orangecolor);
  color: var(--whitecolor);
}

#popup-close-btn:hover {
  background-color: #888;
}

#popup-submit-btn:hover {
  background-color: var(--orangecolor);
}

.hidden {
  display: none;
}

#thank-you-message {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  margin-top: 20px;
  color: var(--orangecolor);
  font-size: 1.2rem;
  background: var(--whitecolor);
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  width: 90%;
  max-width: 400px;
  text-align: center;
  position: relative;
}

#thank-you-message.hidden {
  display: none;
}

#thank-you-message .close-btn {
  color: var(--lightgrey);
  position: absolute;
  top: -5px;
  right: -5px;
  background: var(--whitecolor);
  border-radius: 50%;
  cursor: pointer;
}

.error-message {
  color: red;
  font-size: 0.9rem;
  margin: 5px 0 10px;
  display: block;
}

.error-message.hidden {
  display: none;
}

.whatsapp-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.whatsapp-number input:first-child {
  width: 50px;
  text-align: center;
  border-top-right-radius: 0px;
  border-bottom-right-radius: 0px;
}

.whatsapp-number input:last-child {
  border-top-left-radius: 0px;
  border-bottom-left-radius: 0px;
}

.business-logo {
  margin-bottom: 30px;
  margin-top: 15px;
  width: 170px;
  box-sizing: border-box;
}

.downloads {
  width: 100%;
  display: block;
  text-align: right;
}

.downloads img {
  width: 100px;
  cursor: pointer;
  margin: 0px 10px;
  object-fit: contain;
  margin-top: 15px;
}

.downloads a {
  outline: none;
}

.downloads a:first-child img {
  width: 110px;
}

/* University Offers Grid */
.university-offers h2 {
  color: var(--orangecolor);
  margin-bottom: 15px;
}

.offers-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: flex-start;
}

.offer-item {
  display: flex;
  flex-direction: column;
  text-align: left;
  cursor: pointer;
  width: 150px;
}

.offer-item img {
  width: 150px;
  height: 150px;
  object-fit: cover;
  border: 1px solid #ddd;
  border-radius: 4px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  margin-bottom: 5px;
}

.offer-item p {
  font-size: 0.9rem;
  color: #555;
  word-break: break-word;
  margin: 0;
}

#cancel-change-btn {
  background-color: #aaa;
  color: var(--whitecolor);
}

#confirm-change-btn {
  background-color: var(--orangecolor);
  color: var(--whitecolor);
}

#cancel-change-btn:hover {
  background-color: #888;
}

#confirm-change-btn:hover {
  background-color: var(--orangecolor);
}

.button-group {
  display: flex;
  gap: 10px;
}

#thank-you-message-change {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  margin-top: 20px;
  color: var(--orangecolor);
  font-size: 1.2rem;
  background: var(--whitecolor);
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  width: 90%;
  max-width: 400px;
  text-align: center;
  position: relative;
}

#thank-you-message-change.hidden {
  display: none;
}

#thank-you-message-change .close-btn {
  color: var(--lightgrey);
  position: absolute;
  top: -5px;
  right: -5px;
  background: var(--whitecolor);
  border-radius: 50%;
  cursor: pointer;
}

/* Loader */
.loading-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--whitecolor);
  z-index: 9999;
  justify-content: center;
  align-items: center;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 5px solid var(--orangecolor);
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/* Call Screen Overlay */
.call-screen {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #111;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  color: white;
  z-index: 10000;
}

/* Profile Picture */
.callee-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 3px solid white;
  object-fit: cover;
}

/* Calling Status */
.call-status {
  margin-top: 10px;
  font-size: 1.2rem;
  font-weight: bold;
}

/* Call Controls */
.call-controls {
  position: absolute;
  bottom: 50px;
  display: flex;
  gap: 20px;
}

/* Call Buttons */
.call-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.5rem;
  cursor: pointer;
  transition: 0.3s;
  border: none;
}

/* Icon Styling */
.call-btn i {
  font-size: 28px;
  color: white;
}

/* Mic & Speaker Buttons */
.mic-btn,
.speaker-btn {
  background-color: #333;
}

/* End Call Button */
.end-call-btn {
  background-color: red;
}

.alert-container {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  font-size: 24px;
  color: var(--orangecolor);
  /* Using your project's green color */
}

.alert-message {
  margin-bottom: 10px;
  font-weight: bold;
  margin-bottom: 30px;
}

.go-back-btn {
  padding: 8px 15px;
  background-color: var(--blackcolor);
  color: var(--whitecolor);
  border: none;
  border-radius: 20px;
  cursor: pointer;
  font-size: 0.9rem;
  display: none;
  /* Initially hidden */
}

/* Incoming call */

.incomingcall-callee-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 3px solid white;
  object-fit: cover;
}

.incomingcall-call-status {
  margin-top: 10px;
  font-size: 1.2rem;
  font-weight: bold;
}

.incomingcall-call-controls {
  position: absolute;
  bottom: 50px;
  display: flex;
  gap: 20px;
}

.incomingcall-call-btn {
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.5rem;
  cursor: pointer;
  transition: 0.3s;
  border: none;
}

.incomingcall-call-btn i {
  font-size: 28px;
  color: white;
}

.incomingcall-join-btn {
  background-color: #333;
  color: white;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: bold;
  height: auto;
  width: auto;
  min-width: 120px;
  /* Ensure minimum width for text */
}

.incomingcall-join-btn:hover {
  background-color: #444;
}

.incomingcall-decline-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: red;
  color: white;
}

.incomingcall-decline-btn:hover {
  background-color: #ff3333;
}

.disabled {
  pointer-events: none;
  opacity: 0.5;
}

.profile-card {
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 16px;
  background: #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
}

.profile-card table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
}

.profile-card td {
  padding: 12px 8px;
  /* Increased padding for more space */
  vertical-align: top;
}

.profile-card strong {
  font-weight: bold;
}

.horizontal-scroll-container {
  display: flex;
  overflow-x: auto;
  gap: 16px;
  padding: 10px 0;
}

.field-box {
  flex: 0 0 auto;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 10px;
  background: #f9f9f9;
  margin-bottom: 10px;
}

.chip-container {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.chip {
  display: inline-block;
  padding: 4px 8px;
  background: #e0f7fa;
  color: #00796b;
  border-radius: 16px;
  font-size: 12px;
}

input[type="text"] {
  width: 100%;
  background: transparent;
  font-size: 14px;
  color: #333;
}

.container {
  display: flex;
  width: 100%;
  font-family: InclusiveSans;
  height: 100vh;
}

.left-panel {
  width: 15%;
  background-color: var(--orangecolor);
  color: #fff;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-direction: column;
}

.left-panel h2 {
  font-size: 24px;
  margin-bottom: 10px;
}

.left-panel p,
.left-panel a,
.left-panel button {
  margin: 10px 0;
  display: block;
}

.left-panel button {
  background: #fff;
  border: none;
  padding: 10px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
}

.right-panel {
  width: 85%;
  display: flex;
  flex-direction: column;
  padding: 20px;
  text-align: center;
  height: 100vh;
  box-sizing: border-box;
  padding: 16px;
}

.quick-chats {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.quick-chats button {
  background: var(--greenborder);
  border: 1px solid var(--greenborder);
  border-radius: 12px;
  padding: 10px 16px;
  cursor: pointer;
}

.chat-box {
  flex-grow: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 10px;
}

.message {
  max-width: 60%;
  padding: 12px 16px;
  border-radius: 12px;
  background: var(--whitecolor);
  text-align: left;
}

.user {
  align-self: flex-end;
  background: var(--lightorange);
}

.bot {
  align-self: flex-start;
}

.message small {
  font-size: 12px;
  color: #981500;
  display: block;
  margin-bottom: 4px;
  font-weight: bold;
}

.message.bot small {
  color: #666;
}

.typing {
  font-size: 14px;
  color: #888;
  text-align: left;
  margin-bottom: 10px;
}

.input-area {
  display: flex;
  gap: 10px;
}

.input-area textarea {
  flex-grow: 1;
  padding: 14px 16px;
  border: 1px solid var(--greenborder);
  border-radius: 25px;
  font-size: 16px;
  outline: none;
  resize: none;
  background-color: var(--whitecolor);
}

.send-btn {
  background: #00ac4d;
  border: none;
  border-radius: 50%;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.send-btn svg {
  width: 20px;
  height: 20px;
  fill: #fff;
}

/* NEW */

h1 {
  font-size: 2.5rem;
  margin: 0;
  font-weight: 700;
  color: #111;
}

h1 span {
  background: linear-gradient(to right, #db2777, #7e22ce);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

h2 {
  font-size: 2.5rem;
  margin-top: 0.2em;
  font-weight: 700;
  background: linear-gradient(to right, #7e22ce, #4f46e5);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

p.description {
  margin: 16px 0 32px;
  color: #6b7280;
  font-size: 0.95rem;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 20px;
  text-align: left;
  cursor: pointer;
  transition: box-shadow 0.2s ease;
}

.card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.card .icon {
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.card .text {
  font-size: 0.9rem;
  font-weight: 500;
  color: #1f2937;
}

.container .menu-toggle {
  display: none;
  position: fixed;
  top: 1rem;
  left: 1rem;
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
  z-index: 1000;
  background: white;
  border-radius: 30px;
  padding: 8px;
}

textarea.inactive,
.send-btn.inactive {
  pointer-events: none;
  opacity: 0.5;
}

/* Responsive */
@media screen and (max-width: 768px) {
  .container {
    display: flex;
    flex-direction: column;
  }

  .left-panel {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 260px;
    height: 100%;
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.1);
    z-index: 999;
    overflow-y: auto;
  }

  .left-panel.active {
    display: flex;
  }

  .container .menu-toggle {
    display: block;
  }

  .right-panel {
    width: 100%;
  }
}