/* Core Variables */
:root {
  --primary-gradient: linear-gradient(135deg, #4361ee, #7209b7);
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --border-radius-md: 12px;
  --transition-normal: all 0.3s ease;
  --text-light: #6c757d;
  --text-color: #343a40;
  --dark-color: #212529;
  --primary-color: #4361ee;
  --warning-color: #ffc107;
  --error-color: #dc3545;
}

/* Base Layout */
.feedback-page {
  padding: 3rem 0 0 0;
  /* background-color: #f8f9fa; */
  min-height: 100vh;
}

.container.custom {
  max-width: 1140px;
  margin: 0 auto;
}

/* Back Button */
.btn-back {
  display: inline-flex;
  align-items: center;
  color: #4e73df;
  font-weight: 500;
  margin-bottom: 1.5rem;
  transition: all 0.2s;
  text-decoration: none;
}

.btn-back:hover {
  color: #2e59d9;
  transform: translateX(-3px);
}

.btn-back i {
  margin-right: 0.5rem;
}

/* Top Tabs */
.custom-top-tabs {
  border-bottom: 1px solid #dee2e6;
  margin-bottom: 2rem;
}

.custom-top-tabs .nav-link {
  color: #495057;
  background-color: transparent;
  border: 1px solid transparent;
  margin-right: 0.5rem;
  padding: 0.9rem 1rem;
  transition: all 0.15s ease-in-out;
  border-radius:0px;
}

.custom-top-tabs .nav-link.active {
	color: #4160f4;
	background-color: #f7f7f7;
	border-bottom: 2px solid #4160f4;
	font-weight: 500;
}

/* Feedback Header */
.feeback-header h1, .feedback-detail h2 {
  font-size: 26px;
  color: #4B4B4B;
  display: flex;
  align-items: center;
  margin-bottom: 22px;
}

.feeback-header h1 img, .feedback-detail h2 img {
  width:34px;
}

/* Feedback Response Box */
.feeback-response {
  margin: 2rem 0;
}

.ai-note div p {
	font-weight: 400;
	color: #4b4b4b;
  font-size: 15px;
}

.bg-box p {
	font-size: 18px;
	line-height: 21px;
  margin-top:5px;
}

.ai-note .btn-close {
	font-size: 12px;
}

.bg-box p + p {
	font-weight: 400;
	font-size: 15px;
	line-height: 21px;
}

.ai-inter {
	padding-bottom: 25px;
	border-bottom: 1px solid #e9ecef;
}


.user-ans {
	padding-top: 25px;
}


.feedbox {
  height: 100px;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 13px;
  border-radius: 10px;
  transition: all 0.5s;
}

.feedbox:hover {
  transform: scale(1.01);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.negative-feeback {
  background: linear-gradient(45deg, #FEEEEE, #FFE1E1, #FEEEEE);
  color: #D94241;
  border: 1px solid #FFCECE;
  box-shadow: 0 5px 15px rgba(217, 66, 65, 0.15);
}

.positive-feeback {
  background: linear-gradient(45deg, #CEEBEC, #D8F3F4, #CEEBEC);
  color: #318B89;
  border: 1px solid #c0dfde;
  box-shadow: 0 5px 15px rgba(49, 139, 137, 0.15);
}

/* Animated Letters */
.word {
  display: flex;
  justify-content: center;
  font-size: 25px;
  font-weight: 600;
  letter-spacing: 1px;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.1);
  animation: gradientAnimation 5s ease infinite, zoomPulse 2s infinite ease-in-out;
}

.negative-feeback .word {
  color: #D94241;
}

.positive-feeback .word {
  color: #318B89;
}

.letter {
  display: inline-block;
  opacity: 0;
  animation: dropInEnhanced 0.8s ease-out forwards;
  transform-origin: center bottom;
}

@keyframes dropInEnhanced {
  0% {
    opacity: 0;
    transform: translateY(-20px) scale(0.8);
  }
  60% {
    opacity: 1;
    transform: translateY(5px) scale(1.1);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes zoomPulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

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

/* Letter animation delays */
.letter:nth-child(1) { animation-delay: 0.1s; }
.letter:nth-child(2) { animation-delay: 0.2s; }
.letter:nth-child(3) { animation-delay: 0.3s; }
.letter:nth-child(4) { animation-delay: 0.4s; }
.letter:nth-child(5) { animation-delay: 0.5s; }
.letter:nth-child(6) { animation-delay: 0.6s; }
.letter:nth-child(7) { animation-delay: 0.7s; }
.letter:nth-child(8) { animation-delay: 0.8s; }

/* Feedback Tabs */
.feedback-tabs {
  border: 1px solid #D9D9D9;
  border-radius: 10px;
}

.feedback-tabs .nav-link {
  text-align: left;
  color: #4B4B4B;
  padding: 12px 0;
  border-radius: 0px;
  font-size: 16px;
}

.feedback-tabs .nav-link.active {
  color: #4361EE;
  background: transparent;
  border-right: 3px solid #4361EE;
}

.tab-buttons-wrapper {
  padding-left: 15px;
}

.right-f {
  border-left: 1px solid #D9D9D9;
}

.feedback-tabs p {
  font-size: 16px;
}

/* Interview Analysis Section */
.interview-analysis {
  height: 450px;
  overflow-y: auto;
}



.analysis-box:first-child {
  margin-top: 0px;
}

.ai-note {
  background: rgb(249, 244, 255);
  padding: 10px;
  border-radius: 10px;
  margin-bottom: 10px;
  border: 1px solid rgb(213, 195, 236);
}


.analysis-box h4 {
  color: #4361EE;
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 15px;
}

.analysis-info {
 background: #EFF3FF;
  padding: 14px;
  border-radius: 0px;
  border-left: 4px solid #4361EE;
}

.analysis-info p {
  color: #4b4b4b;
  font-weight: 400;
    margin-bottom: 0px;
    font-size: 15px;
}

.message-content p {
	font-weight: 400;
}

.analysis-info.non-alert {
  display: flex;
  background: #fff2d2;
  border-left: 4px solid #a88d4c;
}

.analysis-info.non-alert img {
  width: 66px;
}

.analysis-info.non-alert ul {
  padding-left: 0px;
  margin-bottom: 0px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.interview-icon {
  margin-right: 15px;
}

/* Decision Boxes */
.negative-decision {
  background: #FEEEEE;
  padding: 10px;
  border-left: 4px solid #D94241;
}

.positive-decision {
  background: #CEEBEC;
  padding: 10px;
  border-left: 4px solid #318B89;
}

/* Footer Section */
.footer-ui {
  background: #EFF3FF;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 11px;
  margin-top: 20px;
  border-radius: 10px;
}

.footer-ui img {
  margin-right: 11px;
}

.footer-ui p {
  color: #444454;
  font-size: 14px;
  margin-bottom: 0;
}

/* Go Home Button */
#newInterviewBtn {
  background: linear-gradient(90deg, #1150B2 0%, #5694F7 100%);
  color: white;
  border: none;
  padding: 0.9rem 2.5rem;
  border-radius: 50px;
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-normal);
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 4px 15px rgb(210, 223, 244);
  position: relative;
  overflow: hidden;
  margin: 0 auto;
}

#newInterviewBtn:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(67, 97, 238, 0.4);
}

/* Loading Overlay */
#loading-overlay {
position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.8);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(8px);
}

.loading-spinner {
  width: 80px;
  height: 80px;
  border: 8px solid #f3f3f3;
  border-top: 8px solid #318B89;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 20px;
}

.loading-text {
  font-family: 'Poppins', sans-serif;
  font-size: 18px;
  color: #333;
  font-weight: 500;
}

.loading-subtext {
  font-size: 17px;
  color: #666;
  font-weight: 400;
}

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

/* Conversation Tab Styling */
.conversation-tabs-container {
  position: relative;
  margin-bottom: 30px;
}

.questions-tab-container {
  display: flex;
  overflow-x: auto;
  -ms-overflow-style: none;  /* Hide scrollbar for IE and Edge */
  scrollbar-width: none;  /* Hide scrollbar for Firefox */
  margin: 0 40px;
  scroll-behavior: smooth;
}

.questions-tab-container::-webkit-scrollbar {
  display: none; /* Hide scrollbar for Chrome, Safari and Opera */
}

.tab-scroll-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: #fff;
  border: 1px solid #e0e0e0;
  color: #6c757d;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  transition: all 0.2s ease;
}

.tab-scroll-button:hover {
  background-color: #f8f9fa;
  color: #495057;
}

.tab-scroll-button.left {
  left: 0;
}

.tab-scroll-button.right {
  right: 0;
}

.question-tab {
  padding: 6px 19px;
  border-radius: 50px;
  background-color: #f8f9fa;
  color: #495057;
  margin-right: 10px;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid #e9ecef;
  flex: 0 0 auto;
}

.question-tab:hover {
  background-color: #e9ecef;
}

.question-tab.active {
background-color: #4160f4;
  color: white;
  border-color: #4160f4;
  font-weight: 500;
}

/* Conversation Content Styling */
.conversation-content-container {
border-radius: 12px;
  margin-bottom: 5em;
  overflow: hidden;
  border: 1px solid #e9ecef;
  background-color: #fff;
}

.conversation-header {
  background-color: #f8f9fa;
  padding: 15px 20px;
  border-bottom: 1px solid #e9ecef;
}

.conversation-body {
  padding: 25px;
}

.message {
  margin-bottom: 20px;
  max-width: 98%;
}

.deep-analysis {
	display: grid;
	grid-template-columns: repeat(2,1fr);
	grid-gap: 2rem;
}

.conversation-area {
	display: grid;
	grid-template-columns: repeat(2,1fr);
}

/* .message-ai {
background-color: #EFF3FF;
  border-left: 4px solid #3263F4;
  padding: 15px;
  border-radius: 25px 25px 0px 25px;
}

.message-user {
	background-color: #fff2d2;
	border-right:4px solid #a88d4c;
	padding: 15px;
	border-radius: 25px 25px 25px 0;
	margin-left: 15%;
} */
.message-heading {
margin-bottom: 10px;
  font-weight: 600;
  color: #4160f4;
}

.ai-small {
	width: 30px;
}

.message-content {
  color: #495057;
  line-height: 1.5;
}

.question-content {
  display: none;
}

.question-content.active {
  display: block;
}

.no-result {
	display: flex;
	flex-direction: column;
	justify-content: center;
	width: 100%;
	align-items: center;
}

.no-result img {
	width: 110px;
}

.no-result p {
	color: #888;
}

.conversation-meta {
  display: flex;
  align-items: center;
  font-size: 0.85rem;
  color: #6c757d;
  margin-bottom: 5px;
}

.conversation-meta .badge {
  margin-left: 8px;
}

/* User Movements Styling */
.user-movements {
background-color: rgb(249, 244, 255);
  border-radius: 12px;
  padding: 18px;
  margin: 25px 0;
  border: 1px solid rgb(218, 191, 253);
}

.user-movements-header {
display: flex;
  align-items: center;
  margin-bottom: 10px;
  color: #793dc8;
  font-weight:600;
  font-size: 16px;
  margin-bottom: 23px;
}

.user-movements-header i {
  margin-right: 10px;
  font-size: 1.2rem;
  color: #6c757d;
}


.total-movment {
	background: #8b31ff;
	padding: 5px 9px;
	margin-left: 15px;
	border-radius: 5px;
	color: #fff;
	font-size: 14px;
}


.movement-description {
  font-size: 0.9rem;
  color: #6c757d;
  margin-bottom: 15px;
}

.user-movements-content {
display: grid;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 15px;
  grid-template-columns: repeat(3,1fr);
}

.movement-item {
  flex: 1 1 calc(33.333% - 15px);
  min-width: 200px;
  background-color: white;
  padding: 15px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  transition: transform 0.2s ease;
}

.movement-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.movement-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 12px;
  background-color: #e9ecef;
  border-radius: 50%;
  flex-shrink: 0;
}

.movement-icon i {
  color: #495057;
  font-size: 1rem;
}

.movement-text {
 flex-grow: 1;
  font-weight: 400;
  color: #343a40;
  font-size: 14px;
}

.question-tab {
  padding: 4px 17px;
  font-size: 14px;
}

.movement-count {
  background-color: #6c757d;
  color: white;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 20px;
  margin-left: 10px;
}

.movement-recommendation {
  background-color: #e9ecef;
  padding: 12px 15px;
  border-radius: 8px;
  font-size: 0.9rem;
  color: #495057;
  display: flex;
  align-items: center;
  margin-top: 15px;
}

.movement-recommendation i {
  color: #ffc107;
  margin-right: 8px;
  font-size: 1.1rem;
}

.recommendation-text {
  flex: 1;
}

/* Specific movement types styling */
.movement-item:nth-child(1) .movement-icon {
  background-color: #f8d7da;
}

.movement-item:nth-child(1) .movement-icon i {
  color: #dc3545;
}

.movement-item:nth-child(1) .movement-count {
  background-color: #dc3545;
}

.movement-item:nth-child(2) .movement-icon {
  background-color: #fff3cd;
}

.movement-item:nth-child(2) .movement-icon i {
  color: #ffc107;
}

.movement-item:nth-child(2) .movement-count {
  background-color: #ffc107;
  color: #212529;
}

.movement-item:nth-child(3) .movement-icon {
  background-color: #d1e7dd;
}

.movement-item:nth-child(3) .movement-icon i {
  color: #198754;
}

.movement-item:nth-child(3) .movement-count {
  background-color: #198754;
}


/** new accordion **/

.custom-accordion-edge {
	border: 0px;
}
.custom-accordion-edge .accordion-item:first-of-type .accordion-button{
	border-radius: 0px;
	background: no-repeat;
}

.custom-accordion-edge .accordion-item .accordion-button{
color:#4160f4;
}


.accordion-button:not(.collapsed) {
	background: no-repeat;
  border-bottom: 1px solid #e9ecef;

}

.custom-accordion-edge .accordion-body p, .custom-accordion-edge .accordion-body ul li {
	font-size: 15px;
	color: #4b4b4b;
}

.accordion-button:focus {
	box-shadow: none;
}

.custom-accordion-edge .accordion-item {
	border: 0px;
	box-shadow: 0 1px 5px rgba(0,0,0,0.1);
	border-radius: 10px;
	margin-bottom: 15px;
}





/* Responsive Adjustments */
@media (max-width: 992px) {
  .feeback-header h1, .feedback-detail h2 {
    font-size: 26px;
  }
}

@media (max-width: 768px) {
  .movement-item {
    flex: 1 1 100%;
  }
  
  .feeback-header h1, .feedback-detail h2 {
    font-size: 24px;
  }
  
  .right-f {
    border-left: 0;
  }
  
  #newInterviewBtn {
    width: 250px;
  }

  .conversation-area {
  display: grid;
  grid-template-columns: repeat(1,1fr);
}

.conversation-body {
  padding: 13px;
}

.message {
  max-width: 100%;
}

.message-content p {
	font-size: 14px;
	line-height: 21px;
}

.movement-text {
  font-size: 14px;
  line-height: 20px;
}
.deep-analysis {
	grid-template-columns: repeat(1,1fr);
}
}

@media (max-width: 576px) {

  .feeback-header h1, .feedback-detail h2 {
    font-size: 22px;
  }


  
  .feedback-tabs .nav-link {
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    border: 1px solid #d7cece;
    margin: 4px 0;
  }
  
  .feedback-tabs .nav-link.active {
    color: #fff;
    background: #4361EE;
    border-right: 1px solid #4361EE;
  }
  
  .tab-buttons-wrapper {
    white-space: wrap;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    gap: 0.5rem;
    flex-direction: row !important;
    overflow-y: scroll;
    display: block ruby;
    /* margin-right: 2em; */
    /* margin-left: -50%; */
  }
  
  .tab-buttons-wrapper .nav-link {
    display: inline-block;
    white-space: nowrap;
    margin-right: 0.5rem;
    flex-shrink: 0;
  }
  
  .feedback-tabs p {
    font-size: 14px;
  }

  .custom-top-tabs li {
    width: auto;
    display: flex;
}

.custom-top-tabs .nav-link {
  font-size: 14px;
}

.analysis-info p {
  font-size: 14px;
  line-height: 21px;
}

.analysis-box h4 {
	font-size: 16px;
}

.user-movements-header {
	display: flex;
	align-items: start;
	flex-direction: column;
}


.total-movment {
	margin-left: 0;

}

.user-movements-content {
	grid-template-columns: repeat(1,1fr);
}

}

 .load-animation-div {
      display: flex;
      align-items: center;
      gap: 10px;
      flex-direction: column;
    }

    .load-animation-div img {
      width: 73px;
      height: 73px;
      animation: spin 1.5s linear infinite;
    }

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

      to {
        transform: rotate(360deg);
      }
    }

    .grad-animation {
      font-size: 27px;
      font-weight: bold;
      background: linear-gradient(90deg, #524BD2, #A441C6, #7069E8);
      background-size: 200% auto;
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      animation: gradientMove 3s linear infinite;
    }

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

      100% {
        background-position: 0% 50%;
      }
    }