/* ---------------------------------------------------------------- */
/*                   GLOBAL VARIABLES & RESETS                      */
/* ---------------------------------------------------------------- */
:root {
  --text-light: #fdfcfc;
  --primary: #ff99cc;
  --primary-hover: #ff66aa;
  --accent: #ffe066;
  --bg-dark: #120618;
  --transition: 0.3s ease;
}
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
body {
  font-family: 'Inter', sans-serif;
  background: var(--bg-dark);
  min-height: 100vh;
  color: var(--text-light);
  overflow-x: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---------------------------------------------------------------- */
/*                      LAYOUT CONTAINERS                           */
/* ---------------------------------------------------------------- */
/* Main Container (Split Layout) */
.split-container {
  display: flex;
  width: 90%;
  max-width: 1200px;
  background: #1a1a1a;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
}

/* ---------------------------------------------------------------- */
/*                         SIDEBAR STYLES                           */
/* ---------------------------------------------------------------- */
.side-panel {
  flex: 0 0 200px;
  background: linear-gradient(135deg, #251636, #b65c8f);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
}
.side-panel .logo {
  text-align: center;
  margin-top: 1rem;
}
.side-panel .logo img {
  width: 70px;
  margin-bottom: 0.5rem;
}
.side-panel .logo h1 {
  font-size: 1.8rem;
  color: var(--primary);
  font-weight: 500;
}
.language-selector {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.language-selector button {
  background: transparent;
  border: none;
  padding: 0.3rem;
  cursor: pointer;
  transition: transform var(--transition);
}
.language-selector button:hover {
  transform: scale(1.1);
}
.language-selector img {
  width: 24px;
  height: 24px;
}

/* ---------------------------------------------------------------- */
/*                     MAIN CONTENT STYLES                          */
/* ---------------------------------------------------------------- */
.main-content {
  flex: 1;
  background: linear-gradient(-45deg, #120618, #3b0a45, #120618);
  background-size: 400% 400%;
  animation: gradientFlow 10s ease infinite;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  overflow-y: auto;
  max-height: 100vh;
}
@keyframes gradientFlow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
.form-container {
  background: rgba(10, 10, 10, 0.9);
  backdrop-filter: blur(10px);
  padding: 2rem;
  border-radius: 1rem;
  width: 100%;
  max-width: 600px;
}
.form-container h2 {
  text-align: center;
  color: var(--primary);
  margin-bottom: 1rem;
  font-weight: 500;
}

/* ---------------------------------------------------------------- */
/*                    FORM ELEMENT STYLES                           */
/* ---------------------------------------------------------------- */
form label {
  display: block;
  margin: 1rem 0 0.3rem;
  font-weight: 500;
}
form input,
form textarea,
form select {
  width: 100%;
  padding: 0.75rem;
  font-size: 1rem;
  border: 1px solid #444;
  border-radius: 0.5rem;
  background: #111;
  color: var(--text-light);
  transition: box-shadow var(--transition), border-color var(--transition);
}
form input:focus,
form textarea:focus,
form select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 8px var(--primary);
}
form input[type="file"] {
  background: transparent;
  border: none;
  padding: 0;
  margin-top: 0.25rem;
  color: var(--text-light);
}
.file-label:hover::after {
  content: " 👀";
}

/* Dropdown Styling */
select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}
.select-wrapper {
  position: relative;
}
button#submit-btn {
  width: 100%;
  margin-top: 1.5rem;
  background: var(--primary);
  color: #000;
  border: none;
  padding: 0.75rem;
  font-size: 1.1rem;
  border-radius: 0.5rem;
  cursor: pointer;
  font-weight: 600;
  transition: background var(--transition), transform var(--transition);
}
button#submit-btn:hover {
  background: var(--primary-hover);
  transform: scale(1.03);
}

/* ---------------------------------------------------------------- */
/*                        HEART RATING STYLES                         */
/* ---------------------------------------------------------------- */
#heart-rating {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px; /* Adjust spacing between hearts as needed */
  margin-top: 10px;
  justify-items: center; /* Center hearts within each grid cell */
}
.heart {
  font-size: 2rem;
  color: #ccc;
  cursor: pointer;
  transition: color 0.3s ease, transform 0.2s ease;
  position: relative;
  text-align: center;
}
.heart:before {
  content: attr(data-value);
  position: absolute;
  top: 55%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 11px;
  font-weight: 300;
  color: #ffffff;
}
.heart:hover {
  color: var(--primary-hover);
  transform: scale(1.1);
}
.heart.selected {
  color: var(--primary);
}

/* ---------------------------------------------------------------- */
/*                  CONFIRMATION OVERLAY STYLES                     */
/* ---------------------------------------------------------------- */
.confirmation-overlay {
  position: fixed;
  bottom: -120%;
  left: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.95);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem;
  transition: bottom 0.6s cubic-bezier(0.68, -0.55, 0.27, 1.55);
  z-index: 10000;
}
.confirmation-overlay.active {
  bottom: 0;
}
.confirmation-content {
  background: #111;
  padding: 1.5rem 2rem;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.7);
  max-width: 90%;
}
.confirmation-icon {
  font-size: 3rem;
  margin-bottom: 0.5rem;
  display: block;
}
.confirmation-title {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
  color: var(--primary);
  font-weight: 500;
}
.confirmation-text {
  font-size: 1.1rem;
  margin-bottom: 1rem;
}
#close-overlay {
  background: var(--primary);
  color: #000;
  border: none;
  padding: 0.6rem 1.2rem;
  font-size: 1rem;
  border-radius: 0.5rem;
  cursor: pointer;
  font-weight: 600;
  transition: background var(--transition), transform var(--transition);
  margin-top: 1rem;
}
#close-overlay:hover {
  background: var(--primary-hover);
  transform: scale(1.05);
}

/* ---------------------------------------------------------------- */
/*                       RESPONSIVE STYLES                          */
/* ---------------------------------------------------------------- */
@media (max-width: 768px) {
  .split-container {
    flex-direction: column;
    width: 100%;
    height: 100vh;
    border-radius: 0;
  }
  .side-panel {
    flex: 0 0 auto;
    width: 100%;
    padding: 1rem;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
  .side-panel .logo {
    margin-top: 0;
    text-align: left;
  }
  .side-panel .logo img {
    width: 40px;
    margin-bottom: 0;
    vertical-align: middle;
  }
  .side-panel .logo h1 {
    font-size: 1.5rem;
    display: inline-block;
    margin-left: 0.5rem;
    vertical-align: middle;
  }
  .language-selector {
    margin-bottom: 0;
  }
  .language-selector img {
    width: 22px;
    height: 22px;
  }
  .main-content {
    padding: 1.5rem;
    flex: 1;
    max-height: none;
    align-items: flex-start;
  }
  .form-container {
    padding: 1.5rem;
    width: 100%;
    max-width: 100%;
    backdrop-filter: blur(5px);
  }
  #heart-rating { gap: 5px; }
  .heart { font-size: 1.6rem; min-width: 30px; }
  .heart:before { font-size: 9px; }
  .confirmation-content { padding: 1rem 1.5rem; }
  .confirmation-title { font-size: 1.5rem; }
  .confirmation-text { font-size: 1rem; }
}
