/* Modern, Artistic Base Styles */
@import './common.css';

/* Page-specific styles */
/* Artistic Background Elements */
body{
  height: 100%;
}
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%234361ee' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  z-index: -1;
  opacity: 0.5;
}

.app-container {
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
}

/* Welcome Screen - Modern & Artistic */
.welcome-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  height: 90vh;
  padding: 2.5rem;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  border-radius: 24px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1), 0 10px 25px rgba(67, 97, 238, 0.1);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.welcome-screen::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at center, rgba(76, 201, 240, 0.03) 0%, transparent 0%);
  animation: rotate-gradient 30s linear infinite;
}

@keyframes rotate-gradient {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.welcome-screen h1 {
  font-size: 3.2rem;
  margin-bottom: 1.5rem;
  color: var(--primary-color);
  text-shadow: var(--text-shadow);
  position: relative;
}

.welcome-screen h1::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
  border-radius: 3px;
}

.welcome-screen p {
  font-size: 1.2rem;
  margin-bottom: 1.2rem;
  max-width: 600px;
  line-height: 1.7;
  color: var(--dark-color);
}

/* Main Content */
.main-content {
  padding: 1.5rem;
  animation: fadeUp 0.8s ease-out forwards;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Modern Card Design */
.card {
  background: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 20px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1), 0 5px 15px rgba(0, 0, 0, 0.05);
  margin-bottom: 2rem;
  overflow: hidden;
  transition: var(--transition-normal);
  backdrop-filter: blur(5px);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15), 0 10px 20px rgba(0, 0, 0, 0.1);
}

.card-header {
  background: linear-gradient(to right, rgba(67, 97, 238, 0.08), rgba(76, 201, 240, 0.08));
  color: var(--dark-color);
  padding: 1.2rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.card-header h3 {
 margin: 0;
  font-size: 20px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--primary-dark);
}

.card-header h3 i {
  color: var(--primary-color);
}

.card-body {
  padding: 1.8rem;
}

button#endInterviewBtn {
	width: 149px;
	font-size: 13px;
	padding: 10px 4px;
	border-radius: 6px;
	margin-bottom: 0px !important;
}

/* Stylish Video Container */
#videoContainer {
  position: relative;
  height: 25em;
  /* width: 13em; */
  width: auto;
  margin: 0 auto;
  transition: var(--transition-normal);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

#video {
  position: absolute;
  display: none;
  top: 0;
  left: 0;
  width: 100%;
  /* width: fit-content; */
  height: 480px;
  border-radius: 16px;
}

#overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  /* width: fit-content; */
  height: 480px;
  pointer-events: none;
  border-radius: 16px;
  z-index: 28;
}

.container1 {
  border-radius: 16px;
  transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  overflow: hidden;
}


/* Modern Controls */
.controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 25px;
  background: rgba(255, 255, 255, 0.9);
  padding: 20px;
  border-radius: 16px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.control-btn {
  padding: 12px 24px;
  font-size: 1rem;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  color: white;
  font-weight: 500;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  z-index: 1;
}

.control-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.1);
  transform: translateX(-100%) rotate(45deg);
  transition: var(--transition-normal);
  z-index: -1;
}
.mic-warning {
  color: #ff3d00;
  margin-top: 10px;
  display: none;
}

.mic-loading {
  margin-top: 10px;
  color: #2196F3;
}
.show-face-points {
  margin: 0.3em;
  background: linear-gradient(45deg, var(--success-color), #2ecc71);
  color: white;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border: none;
  padding: 1.5em 0em;
}
.show-face-points:hover {
  background: linear-gradient(45deg, var(--success-color), #27ae60);
}

.control-btn:hover::before {
  transform: translateX(100%) rotate(45deg);
}

.control-btn:disabled {
  background: linear-gradient(45deg, #d1d1d1, #c3c3c3);
  cursor: not-allowed;
  transform: none !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.control-btn:first-child {
  background: linear-gradient(45deg, var(--success-color), #2ecc71);
}

.control-btn:first-child:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(14, 173, 105, 0.3);
}

.control-btn:last-child {
  background: linear-gradient(45deg, var(--danger-color), #e74c3c);
}

.control-btn:last-child:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(231, 76, 60, 0.3);
}

.status-text {
  margin: 0 0 0 auto;
  color: var(--dark-color);
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* .face-screen {
    display: flex;
    height: 90vh;
    align-items: center;
} */

/* Enhanced Transcript Container */
#transcriptContainer {
  border: none;
  border-radius: 16px;
  padding: 20px;
  margin-top: 25px;
  background-color: rgba(248, 249, 250, 0.8);
  max-height: 200px;
  overflow-y: auto;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  scrollbar-width: thin;
  scrollbar-color: var(--primary-light) rgba(0, 0, 0, 0.05);
  transition: var(--transition-normal);
}

#transcriptContainer::-webkit-scrollbar {
  width: 8px;
}

#transcriptContainer::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.05);
  border-radius: 10px;
}

#transcriptContainer::-webkit-scrollbar-thumb {
  background-color: var(--primary-light);
  border-radius: 10px;
}

#transcript {
  margin: 0;
  padding: 0;
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--dark-color);
}

/* Stylish AI Response */
.ai-response-container {
  margin-top: 25px;
  padding: 20px;
  background: linear-gradient(to right, rgba(67, 97, 238, 0.05), rgba(76, 201, 240, 0.05));
  border-radius: 16px;
  border-left: 4px solid var(--primary-color);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  position: relative;
  overflow: hidden;
}

.ai-response-container h4 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  color: var(--primary-dark);
}

.ai-response-container h4 i {
  color: var(--primary-color);
}

.ai-response {
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--dark-color);
  position: relative;
  z-index: 2;
}

.ai-response-container::before {
  content: '';
  position: absolute;
  right: -20px;
  bottom: -20px;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, rgba(76, 201, 240, 0.1) 0%, transparent 70%);
  z-index: 1;
}

/* Enhanced Status Badges */
.status-badge {
  background-color: #f0f0f0;
  color: var(--dark-color);
  padding: 6px 12px;
  border-radius: 50px;
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  transition: var(--transition-fast);
}

.status-connected {
  background: linear-gradient(to right, #e8f5e9, #c8e6c9);
  color: #1b5e20;
  border-left: 3px solid #2e7d32;
}

.status-error {
  background: linear-gradient(to right, #ffebee, #ffcdd2);
  color: #b71c1c;
  border-left: 3px solid #c62828;
}

/* Artistic Buttons */
.btn-primary {
  background: linear-gradient(45deg, var(--primary-color), var(--primary-light));
  color: white;
  border: none;
  padding: 24px 34px;
  border-radius: 50px;
  font-size: 1.2rem;
  cursor: pointer;
  transition: var(--transition-normal);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 2.5rem;
  box-shadow: 0 6px 15px rgba(67, 97, 238, 0.3);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0));
  transform: translateY(100%);
  transition: var(--transition-normal);
  z-index: -1;
}

.btn-primary:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(67, 97, 238, 0.4);
}

.btn-primary:hover::before {
  transform: translateY(0);
}

.btn-danger {
  background: linear-gradient(45deg, var(--danger-color), #f64f59);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 12px;
  font-size: 1.1rem;
  cursor: pointer;
  transition: var(--transition-normal);
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
  width: 100%;
  box-shadow: 0 4px 15px rgba(230, 57, 70, 0.2);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-danger::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: var(--transition-normal);
}

.btn-danger:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(230, 57, 70, 0.3);
}

.btn-danger:hover::before {
  left: 100%;
}

/* Enhanced Animations */
.pulse-btn {
  animation: enhanced-pulse 2.5s infinite;
}

@keyframes enhanced-pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(67, 97, 238, 0.7);
  }
  70% {
    transform: scale(1.05);
    box-shadow: 0 0 0 15px rgba(67, 97, 238, 0);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(67, 97, 238, 0);
  }
}

.hidden {
  display: none;
}

.fade-in {
  animation: fadeIn 0.7s ease-in forwards;
}

.fade-out {
  animation: fadeOut 0.7s ease-out forwards;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeOut {
  from { opacity: 1; transform: translateY(0); }
  to { opacity: 0; transform: translateY(-20px); }
}

.highlight-animation {
  animation: modern-highlight 1.2s ease;
}

@keyframes modern-highlight {
  0% { background-color: rgba(76, 201, 240, 0.1); }
  50% { background-color: rgba(76, 201, 240, 0.3); }
  100% { background-color: rgba(76, 201, 240, 0.1); }
}

.recording {
  color: #e63946;
  font-weight: bold;
  animation: pulse-text 1.5s infinite;
}

@keyframes pulse-text {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

.error-text {
  color: #e63946;
  font-weight: 500;
}

/* Microphone Selection Styling */
.mic-selection {
  background: linear-gradient(to right, rgba(255, 255, 255, 0.9), rgba(245, 247, 250, 0.9));
  padding: 20px;
  border-radius: 16px;
  margin-bottom: 22px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(5px);
  transition: var(--transition-normal);
}

.mic-selection:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.mic-selection label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  font-weight: 500;
  color: var(--dark-color);
  font-size: 1.05rem;
}

.mic-selection label i {
  color: var(--primary-color);
  font-size: 1.2rem;
}

.mic-selection select {
  border: 2px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  padding: 12px 15px;
  width: 100%;
  height: 3em;
  background-color: #fff;
  cursor: pointer;
  color: var(--dark-color);
  font-size: 1.05rem;
  transition: var(--transition-fast);
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.02);
}

.mic-selection select:focus {
  outline: none;
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.15);
}

/* Artistic Warning Effects */
.red-shadow {
  box-shadow: 0 0 100px rgba(230, 57, 70, 0.6);
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.red-shadow::before {
  background: linear-gradient(45deg, var(--danger-color), transparent, var(--danger-color), transparent);
}

.black-shadow {
  box-shadow: 0 0 100px 5px rgba(194, 194, 194, 0.7);
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.yellow-shadow {
  box-shadow: 0 0 40px rgba(255, 193, 7, 0.6);
  border: 2px solid rgba(255, 193, 7, 0.7);
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.pulse-warning {
  animation: artistic-pulse-border 1.5s infinite;
}



.welcome-screen .alert-danger p {
	font-size: 15px !important;
	margin-bottom: 0px;
}


@keyframes artistic-pulse-border {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(230, 57, 70, 0.7);
  }
  70% {
    transform: scale(1.02);
    box-shadow: 0 0 0 15px rgba(230, 57, 70, 0);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(230, 57, 70, 0);
  }
}

/* Responsive Adjustments */
@media (max-width: 992px) {
  #videoContainer {
    width: 100%;
    /* height: auto; */
  }
  
  #video, #overlay {
    width: 100%;
    /* height: auto; */
  }
  
  .card-header {
    padding: 1rem;
  }
  
  .card-body {
    padding: 1.5rem;
  }

  .main-content {
  padding: 0;

}

.welcome-screen {
  height: auto;
}

.card-header h3 {
	font-size: 14px;
	}

  .status-badge {
	font-size: 12px;
}

.show-face-points {
    display: none;
}

#videoContainer {
      height: 21em;
}

.face-screen {
       height: 100vh;
       margin-top:10px;
}

}

@media (max-width: 768px) {
  .welcome-screen h1 {
    font-size: 2.5rem;
  }
  
  .welcome-screen p {
    font-size: 1.1rem;
  }
  
  .card-header h3 {
    font-size: 1.2rem;
  }
  
  .controls {
    flex-direction: column;
    align-items: stretch;
  }
  
  .control-btn {
    justify-content: center;
  }
  
  .status-text {
    margin: 10px 0 0 0;
    justify-content: center;
  }

   .card-header h3 {
    font-size: 14px;
  }


}

@media (max-width: 480px) {
  .welcome-screen {
    padding: 2rem;
  }
  
.welcome-screen h1 {
    font-size: 1.4rem;
    font-weight: 600;
  }
  
  .card-header {
    flex-direction: row;
    gap: 10px;
    align-items: center;
  }
  
  .status-badge {
    align-self: flex-start;
  }
div#card-1 {
    height: 409px;
    background: no-repeat;
    box-shadow: none;
}

#overlay {
  position: relative;
}

.welcome-screen {
  height: 100%;
}

#videoContainer {
    width: 100%;
    height: 100%;
    display: flex;
    box-shadow: none;
    margin-top: 17px;
}
#video, #overlay {
  width: 400px;
  height: 400px;
}

.welcome-screen p {
	font-size: 1rem;
}

.mic-warning {
	font-size: 12px;
}

.welcome-screen .alert-danger p {
	font-size: 13px !important;
	margin-bottom: 0px;
}

.metric-value {
  font-size: 1.5rem;

}

button#showFacePointsBtn {
    display: none;
}

}