@import url(https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&family=Rajdhani:wght@300;400;500;600;700&display=swap);
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
    'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
    sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

code {
  font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New',
    monospace;
}

/* Font declarations */
@font-face {
  font-family: 'Avenir Next';
  src: url(/static/media/AvenirNextCyr-Regular.1b8ec2e9db931727ee18.ttf) format('truetype');
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: 'Avenir Next';
  src: url(/static/media/AvenirNextCyr-Italic.284d109380dffb268a1d.ttf) format('truetype');
  font-weight: 400;
  font-style: italic;
}

@font-face {
  font-family: 'Avenir Next';
  src: url(/static/media/AvenirNextCyr-Light.3cbf46ea684984d02b72.ttf) format('truetype');
  font-weight: 300;
  font-style: normal;
}

@font-face {
  font-family: 'Avenir Next';
  src: url(/static/media/AvenirNextCyr-LightItalic.9e61a3331767cc2f9137.ttf) format('truetype');
  font-weight: 300;
  font-style: italic;
}

@font-face {
  font-family: 'Avenir Next';
  src: url(/static/media/AvenirNextCyr-Medium.679388dbda7c117a5d00.ttf) format('truetype');
  font-weight: 500;
  font-style: normal;
}

@font-face {
  font-family: 'Avenir Next';
  src: url(/static/media/AvenirNextCyr-MediumItalic.c7222f134dd6b0b1841a.ttf) format('truetype');
  font-weight: 500;
  font-style: italic;
}

@font-face {
  font-family: 'Avenir Next';
  src: url(/static/media/AvenirNextCyr-Bold.ae3b1e683a0c6a170a24.ttf) format('truetype');
  font-weight: 700;
  font-style: normal;
}

@font-face {
  font-family: 'Avenir Next';
  src: url(/static/media/AvenirNextCyr-BoldItalic.c4ed4af32690af95bf8c.ttf) format('truetype');
  font-weight: 700;
  font-style: italic;
}

/* Design Tokens */
:root {
  --accent-primary: #00E0E9;
  --accent-primary-dark: #00c7cf;
  --btn-primary-bg: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-primary-dark) 100%);
  --feedback-correct-start: #00ff88;
  --feedback-correct-end: #00e676;
  --feedback-incorrect-start: #ff4757;
  --feedback-incorrect-end: #ff3742;
}

/* Badge Card Styles */
.badges-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  grid-gap: 1.5rem;
  gap: 1.5rem;
}

.badge-card {
  background: white;
  border-radius: 1rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  border: 1px solid #f0f0f0;
}

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

.badge-image-container {
  position: relative;
  padding-top: 56.25%; /* 16:9 aspect ratio */
  background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
  overflow: hidden;
}

.badge-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 1rem;
  transition: transform 0.3s ease;
}

.badge-card:hover .badge-image {
  transform: scale(1.05);
}

.badge-lock-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  -webkit-backdrop-filter: blur(2px);
          backdrop-filter: blur(2px);
}

.badge-content {
  padding: 1.25rem;
  flex: 1 1;
  display: flex;
  flex-direction: column;
}

.badge-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #374151;
  margin: 0 0 0.5rem 0;
}

.badge-description {
  font-size: 0.875rem;
  color: #6b7280;
  margin: 0 0 1rem 0;
  flex: 1 1;
}

.badge-display-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 1px solid #f3f4f6;
}

.badge-display-toggle span {
  font-size: 0.875rem;
  color: #4b5563;
}

/* Toggle Switch Styles */
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 20px;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: .4s;
  border-radius: 20px;
}

.toggle-slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 2px;
  bottom: 2px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
}

input:checked + .toggle-slider {
  background: linear-gradient(90deg, #37dae0 0%, #42f8ff 100%);
}

input:focus + .toggle-slider {
  box-shadow: 0 0 1px #37dae0;
}

input:checked + .toggle-slider:before {
  transform: translateX(20px);
}

.badge-locked .badge-image {
  filter: grayscale(1);
  opacity: 0.7;
}

/* History Styles */
.history-filters {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.history-filter-btn {
  padding: 0.5rem 1.25rem;
  border-radius: 1rem;
  font-weight: 600;
  font-size: 0.875rem;
  background: #f3f4f6;
  color: #4b5563;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.history-filter-btn:hover {
  background: #e5e7eb;
}

.history-filter-btn.active {
  background: linear-gradient(90deg, #22d3ee 0%, #3b82f6 100%);
  color: white;
  box-shadow: 0 4px 6px rgba(59, 130, 246, 0.3);
}

.history-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.history-card {
  background: white;
  border-radius: 1rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  padding: 1.25rem;
  transition: all 0.3s ease;
  border: 1px solid #f0f0f0;
}

.history-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

.history-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.history-type-badge {
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}
/* Add this to your Profile.css file */
.feature-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  border-radius: 0.75rem;
  font-weight: 700;
  font-size: 0.875rem;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.2);
  color: #4b5563;
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.feature-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

.feature-btn-active {
  background: linear-gradient(135deg, #fde047 0%, #fbbf24 100%);
  color: #1f2937;
  box-shadow: 0 10px 15px -3px rgba(251, 191, 36, 0.3);
}

.feature-btn-active:hover {
  background: linear-gradient(135deg, #fde047 0%, #fbbf24 100%);
  transform: translateY(-2px);
}
.quiz-badge {
  background: rgba(59, 130, 246, 0.1);
  color: #3b82f6;
}

.game-badge {
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
}

.history-date {
  font-size: 0.75rem;
  color: #6b7280;
}

.history-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: #374151;
  margin: 0 0 0.5rem 0;
}

.history-topic {
  font-size: 0.875rem;
  color: #6b7280;
  margin-bottom: 1rem;
}

.history-details {
  display: flex;
  gap: 1.5rem;
}

.history-detail {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.detail-label {
  font-size: 0.75rem;
  color: #6b7280;
  font-weight: 500;
}

.detail-value {
  font-size: 0.875rem;
  font-weight: 600;
  color: #374151;
}

.detail-value.won {
  color: #10b981;
}

.detail-value.lost {
  color: #ef4444;
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
  .badges-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }
}

@media (max-width: 768px) {
  .badges-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .history-details {
    flex-direction: column;
    gap: 0.75rem;
  }
}

@media (max-width: 640px) {
  .badges-grid {
    grid-template-columns: 1fr;
  }
  
  .history-card-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  
  .history-filters {
    flex-wrap: wrap;
  }
}

@media (max-width: 480px) {
  .badge-display-toggle {
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-start;
  }
  
  .history-filter-btn {
    flex: 1 1;
    text-align: center;
  }
}

body,
html {
  overflow-x: hidden;
}
:root {
  --primary-color: #61dafb;
  --secondary-color: #282c34;
  --accent-color: #ff6b6b;
  --background-color: #f0f8ff;
  --text-color: #333;
  --font-family: "Avenir Next", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.App {
  text-align: center;
  min-height: 100vh;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.8) 0%, rgba(229, 254, 255, 0.8) 100%);
  font-family: "Avenir Next", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-family: var(--font-family);
}

.menu-button {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 10px;
  margin-right: 1rem;
}

.menu-button span {
  display: block;
  width: 30px;
  height: 3px;
  background: linear-gradient(180deg, #37dae0cc 0%, #42f8ffcc 100%);
  border-radius: 3px;
  transition: all 0.3s ease;
}

.menu-button:hover span {
  transform: scaleX(1.1);
}

.navbar {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  padding: 1rem 2rem;
  background-color: white;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
  animation: slideDown 0.3s ease;
}


@keyframes slideDown {
  from { transform: translateY(-100%); }
  to { transform: translateY(0); }
}

#email,#username {
  width: 100%;
  box-sizing: border-box;
}

.login-form input, .signup-form input {
  width: 95%;
  padding: 16px;
  margin-bottom: 1rem;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  font-size: 1rem;
  color: #686868;
  background: white;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
  text-align: left;
}

.login-form input::placeholder, .signup-form input::placeholder {
  color: #686868;
  text-align: left;
}

.login-form input:focus, .signup-form input:focus {
  outline: none;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  transform: translateY(-1px);
}

.login-form button, .signup-form button {
  text-align: center;
  width: 100%;
  transform-origin: center;
  transition: all 0.3s ease;
}

.login-form button:hover, .signup-form button:hover,
.login-button:hover, .signup-button:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 4px 12px rgba(55, 218, 224, 0.2);
}

.logo:hover span {
  transform: scale(1.01); /* Reduced from 1.02 for subtler effect */
  transition: transform 0.4s ease; /* Slightly slower transition */
  color: #37dae0; /* Solid color on hover instead of scaling */
}

.logo img {
  height: 70px;
  transition: transform 0.4s ease;
}



.search-input:focus {
  transform: translateY(-1px);
  transition: all 0.3s ease;
}

.nav-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo img {
  height: 70px;
}

.logo, .nav-right a {
  text-decoration: none;
}

.logo span {
  font-size: 2.5rem;
  font-weight: bold;
  margin-top: 40px;
  color: #3ee7eccc;
  text-decoration: none;
}

.nav-center {
  display: flex;
  align-items: center;
  position: relative;
  width: 100%;
  max-width: 600px;
  margin: 0 1rem;
}

.search-input {
  width: 100%;
  padding: 0.75rem 1rem 0.75rem 3rem;
  border: 2px solid transparent;
  border-radius: 25px;
  font-size: 1rem;
  background: linear-gradient(white, white) padding-box,
              linear-gradient(180deg, #37dae0cc 0%, #42f8ffcc 100%) border-box;
  transition: all 0.3s ease;
}

.search-input:focus {
  outline: none;
  box-shadow: 0 2px 8px rgba(55, 218, 224, 0.2);
}

.search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  pointer-events: none;
}

.nav-right {
  display: flex;
  gap: 1rem;
}

.hero-section {
  padding: 4rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.hero-title {
  font-size: 8rem;
  background: linear-gradient(180deg, #37dae0cc 0%, #42f8ffcc 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 1rem;
  margin-top: -0.5rem;
}

.hero-subtitle {
  font-size: 1.8rem;
  background: linear-gradient(180deg, #37dae0cc 0%, #42f8ffcc 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 1rem;
  margin-top: -0.5rem;
}

.hero-description {
  font-size: 1.2rem;
  color: #333;
  color: var(--text-color);
  max-width: 600px;
  margin: 0 auto 2rem;
}

@media (max-width: 600px) {
  .hero-content .hero-title {
    font-size: 6.5rem;
  }
}

@media (max-width: 480px) {
  .hero-content .hero-title {
    font-size: 5rem;
  }
}

.join-button {
  padding: 0.5rem 1.5rem;
  border-radius: 20px;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  background-color: transparent;
  border: 2px solid #61dafb;
  border: 2px solid var(--primary-color);
  color: #61dafb;
  color: var(--primary-color);
}

.login-button {
  padding: 0.5rem 1.5rem;
  border-radius: 20px;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  background: linear-gradient(180deg, #37dae0cc 0%, #42f8ffcc 100%);
  border: none;
  color: white;
}

.signup-button {
  display: inline-block;
  padding: 1rem 2rem;
  font-size: 1.2rem;
  background: linear-gradient(180deg, #37dae0cc 0%, #42f8ffcc 100%);
  color: white;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-bottom: 4rem;
  text-decoration: none;
}

.join-button:hover, .login-button:hover, .signup-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  grid-gap: 2rem;
  gap: 2rem;
  padding: 2rem;
}

.feature-card {
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.feature-card:nth-child(1) {
  background: linear-gradient(180deg, #37DAE0 0%, #B7E1E3 100%);
}

.feature-card:nth-child(2) {
  background: linear-gradient(180deg, #FFB81B 0%, #FFEFCA 100%);
}

.feature-card:nth-child(3) {
  background: linear-gradient(180deg, #FF6058 0%, #FFD0CE 100%);
}

.feature-card:nth-child(4) {
  background: linear-gradient(180deg, #49BA43 0%, #D2F4D1 100%);
}

.feature-card:hover {
  transform: translateY(-10px);
}

.feature-card h3 {
  color: white;
  font-size: 1.5rem;
  margin-bottom: 1rem;
  text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.feature-content {
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Authentication Pages Styles */
.auth-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 2rem;
  background: #F5FFFF;
}

.auth-content {
  display: flex;
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.auth-left {
  flex: 1 1;
  padding: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg,#f0fff300 0%, #7ffbff54 31%, #fcfcff5b 100%);
}

.auth-left img {
  max-width: 100%;
  height: auto;
}

.auth-form {
  flex: 1 1;
  padding: 3rem;
  max-width: 500px;
  background: linear-gradient(90deg,#f0fff365 0%, #e8fafb7e 31%, #fcfcffc7 100%);
}

.auth-header {
  display: flex;
  justify-content: center;
  margin-bottom: 3rem;
  width: 100%;
}

.auth-header .logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.auth-header .logo img {
  height: 100px;
}

.auth-header .logo span {
  font-size: 4rem;
  font-weight: 700;
  background: linear-gradient(180deg, #37dae0cc 0%, #42f8ffcc 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-top: 55px;
}

.auth-tabs {
  display: flex;
  gap: 2rem;
  margin-bottom: 2rem;
}

.auth-tab {
  font-size: 1.5rem;
  font-weight: 700;
  color: #686868;
  text-decoration: none;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid transparent;
  transition: all 0.3s ease;
}

.auth-tab.active {
  background: linear-gradient(180deg, #37dae0cc 0%, #42f8ffcc 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  border-bottom-color: #37dae0;
}

.form-group {
  margin-bottom: 0.3rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: #686868;
  text-align: left;
  font-weight: 600;
  font-size: 1rem;
}

.form-input {
  width: 100%;
  padding: 12px;
  margin-bottom: 0.5rem;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  background: white;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.form-input:focus {
  outline: none;
  box-shadow: 0 6px 16px rgba(55, 218, 224, 0.2);
}

.form-row {
  display: flex;
  gap: 1rem; 
  width: 100%; 
  box-sizing: border-box; 
}

.form-row .form-group {
  flex: 1 1;
  min-width: 0; 
}

.form-row .form-input {
  width: 100%;
  box-sizing: border-box;
}

.terms input[type="checkbox"] {
  margin-top: 0.25rem;
  appearance: none;
  width: 12px;
  height: 12px;
  border: 2px solid #e0e0e0;
  border-radius: 4px;
  cursor: pointer;
  position: relative;
}

.terms input[type="checkbox"]:checked {
  background: #37dae0;
  border-color: #37dae0;
}

.terms input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  left: 4px;
  right: 6px;
  top: 2px;
  width: 6px;
  height: 12px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.terms label {
  font-size: 0.9rem;
  color: #686868;
}

.terms-link {
  color: #37dae0;
  text-decoration: none;
}

.forgot-password {
  color: #37dae0;
  text-decoration: none;
  font-size: 0.9rem;
  display: block;
  text-align: right;
}

.auth-link{
  color: #37dae0;
  font-weight: 300;
}

@media (max-width: 1024px) {
  .auth-content {
    max-width: 900px;
  }
}

.join-button-text::after {
  content: " game";
}

@media screen and (max-width: 1024px) {
  .navbar {
    padding: 0.75rem 1.5rem;
  }
  
  .logo span {
    font-size: 2rem;
  }
  
  .logo img {
    height: 60px;
  }
  .nav-center {
    max-width: 300px;
  }
  .search-input {
    padding: 0.6rem 1rem 0.6rem 2.5rem;
    font-size: 0.9rem;
  }
  
  .search-icon {
    width: 18px;
    height: 18px;
    left: 0.8rem;
  }
  
  .join-button, .login-button {
    padding: 0.5rem 1.25rem;
    font-size: 0.9rem;
  }
}

@media screen and (max-width: 768px) {
  .navbar {
    padding: 0.6rem 1rem;
  }
  
  .nav-content {
    flex-wrap: wrap;
  }
  
  .logo span {
    font-size: 1.8rem;
    margin-top: 30px;
  }
  
  .logo img {
    height: 50px;
  }
  .nav-left {
    order: 1;
  }
  .nav-right {
    order: 3;
  }
  .nav-center {
    order: 3;
    width: 100%;
    margin: 0.75rem 0 0 0;
    max-width: 200px;
    order: 2;
  }
  
  .search-input {
    padding: 0.5rem 1rem 0.5rem 2.5rem;
  }
  
  .join-button, .login-button {
    padding: 0.4rem 1rem;
    font-size: 0.85rem;
  }
  
  .menu-button span {
    width: 25px;
    height: 2.5px;
  }

  
  .sidebar {
    transform: translateX(-100%);
    width: 250px; /* Ensure full width on mobile */
    transition: transform 0.3s ease; /* Add smooth transition */
  }
  
  .sidebar:not(.collapsed) {
    transform: translateX(0);
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2); 
  }

  .main-content,
  .ud-main-content {
    margin-left: 0 !important; 
    transition: none; 
  }
  
  .sidebar:not(.collapsed)::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
    pointer-events: none;
  }

  .sidebar {
    z-index: 1001;
  }
}

@media screen and (max-width: 600px) {
  .navbar {
    padding: 0.5rem 0.75rem;
  }
  .navbar-content {
    display: flex;
    flex-direction: row;
  }

  .navleft {
    order: 1;
  }
  .nav-center {
    margin: 0px;
    max-width: 120px;
    order: 2;
  }
  .logo span {
    font-size: 1.5rem;
    margin-top: 25px;
  }
  
  .logo img {
    height: 40px;
  }

  .join-button, .login-button {
    padding: 0.35rem 0.8rem;
    font-size: 0.8rem;
  }
  
  .menu-button {
    margin-right: 0.5rem;
    padding: 8px;
  }
  
  .menu-button span {
    width: 22px;
    height: 2px;
  }
  
  .nav-right {
    gap: 0.5rem;
    order: 3;
  }
}

@media screen and (max-width: 480px) {
  /* Create a collapsible search bar for mobile */
  .navbar {
    padding: 0.4rem 0.5rem;
  }
  .nav-content {
    display: flex;
    flex-direction: row;
  }
  .logo span {
    font-size: 1.2rem;
    margin-top: 20px;
  }
  
  .logo img {
    height: 32px;
  }

  .logo {
    order: 1;
  }
  
  /* Hide search text input by default on mobile */
  .nav-center {
    position: relative;
    width: auto;
    order: initial;
    margin: 0;
    order: 2;
  }

  .nav-right {
  order: 3;
  }
  
  .search-form {
    position: relative;
  }
  
  /* Create a collapsible search input */
  .search-input {
    width: 32px !important;
    height: 32px;
    padding: 0;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    --placeholder-text: "";
  }

  .search-form {
    width: 32px;
    height: 32px;
  }
  
  .search-input:focus {
    width: 180px;
    border-radius: 20px;
    padding: 0.4rem 1rem 0.4rem 2.2rem;
    cursor: text;
  }
  
  .search-icon {
    left: 0.5rem;
    width: 16px;
    height: 16px;
    z-index: 1;
  }
  
  .join-button, .login-button {
    padding: 0.3rem 0.6rem;
    font-size: 0.75rem;
    border-radius: 15px;
  }

   .join-button-text::after {
    content: "";
  }
  
  .menu-button {
    padding: 6px;
  }
  
  .menu-button span {
    width: 20px;
    height: 2px;
  }
  
  .nav-right {
    gap: 0.4rem;
  }
  .sidebar:not(.collapsed) {
    width: 230px; 
  }
}

@media (max-width: 768px) {
  .hero-subtitle {
    font-size: 1.5rem;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }
   /* Login */
  .auth-left {
    display: none;
  }

  .auth-content {
    justify-content: center;
  }

  .auth-left {
    padding: 2rem 1rem;
  }

  .auth-form {
    padding: 2rem 1.5rem;
    margin-top:-5px;
  }

  .form-row {
    flex-direction: column;
    gap: 0 !important;
  }
  .form-row {
    margin: 0px !important;
  }
}

@media (max-width: 600px) {
  .form-group {
    margin-bottom: 4px !important;
  }
}

@media (max-width: 480px) {
  .auth-container {
    padding: 1rem;
  }

  .auth-tabs {
    gap: 1rem;
  }

  .auth-tab {
    font-size: 1rem;
  }
  .form-group {
    margin:0px !important;
  }
}

.auth-button {
  width: 100%;
  padding: 20px;
  border: none;
  border-radius: 25px;
  font-size: 1.2rem;
  font-weight: 600;
  background: linear-gradient(180deg, #37dae0cc 0%, #42f8ffcc 100%);
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-bottom: 1rem;
}

.auth-redirect {
  width: 95%;
  padding: 12px;
  border: 1px solid #6868684b;
  border-radius: 25px;
  font-size: 1rem;
  background: transparent;
  color: #686868;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  text-decoration: none;
  display: inline-block;
}

.terms {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 1rem;
}

.terms input[type="checkbox"] {
  margin: 0;
  appearance: none;
  width: 16px;
  height: 16px;
  border: 2px solid #e0e0e0;
  border-radius: 4px;
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
}

.auth-logo-corner {
  position: absolute;
  top: 20px;
  left: 20px;
  font-size: 1.5rem;
  font-weight: bold;
  color: #3ee7eccc;
  text-decoration: none;
}

.password-input-container {
  position: relative;
  width: 100%;
}

.password-input-container input {
  width: 100% !important;
  padding-right: 45px !important;
  margin-bottom: 0 !important;
  box-sizing: border-box;
}

.password-toggle {
  position: absolute;
  top: 0;
  bottom: 0;
  right: 12px;
  margin: auto;
  background: none !important;
  background-color: transparent !important;
  box-shadow: none !important;
  outline: none !important;
  overflow: hidden;
  border: none;
  cursor: pointer;
  width: 20px !important;
  height: 20px;
  padding: 0;
  align-items: center;
  justify-content: center;
}

svg{
 box-shadow: none;
}
.password-toggle img {
  width: 20px;
  height: 20px;
  opacity: 0.6;
}

/* Remove all animations and transitions */
.password-toggle,
.password-toggle img,
.password-toggle:hover,
.password-toggle:hover img {
  transition: none !important;
  transform: none !important;
}


.back-button {
  position: absolute;
  top: 20px;
  left: 20px;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #686868;
  font-size: 1rem;
  padding: 8px;
  transition: all 0.3s ease;
}

.back-button:hover {
  color: #37dae0;
  transform: translateX(-3px);
}

.back-button svg {
  width: 20px;
  height: 20px;
}
@media (max-width: 480px) {
  .auth-container {
    padding: 1rem;
  }

  .auth-tabs {
    gap: 1rem;
  }

  .auth-tab {
    font-size: 1rem;
  }
}

.notifications-container {
  position: relative;
}

.notifications-button {
  background: #37dae0;
  border: none;
  font-size: 1.25rem;
  cursor: pointer;
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.notification-count {
  position: absolute;
  top: -8px;
  right: -8px;
  background: #37dae0;
  color: white;
  font-size: 0.75rem;
  padding: 2px 6px;
  border-radius: 1rem;
  font-weight: 500;
}

.timer-button {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 50%;
  transition: background-color 0.2s;
}

.timer-button:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

.timer-button,
.notifications-button {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 10px;
}

.timer-button:hover {
  opacity: 0.8;
}

.notifications-button:hover {
  opacity: 0.8;
}

.profile-section {
  margin-left: 20px;
}

.profile-dropdown {
  display: flex;
  align-items: center;
  gap: 10px;
  background: white;
  padding: 8px 16px;
  border-radius: 20px;
  border: 2px solid #37dae0;
  cursor: pointer;
  transition: all 0.3s ease;
}

.profile-dropdown:hover {
  background: rgba(55, 218, 224, 0.1);
}

.profile-image {
  font-size: 24px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile-name {
  color: #333;
  font-weight: 500;
}

.dropdown-icon {
  color: #37dae0;
  font-size: 12px;
}

/* User Dashboard */
.dashboard-main {
  flex: 1 1;
  padding: 20px;
  padding-top: 120px;
}

.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.user-info {
  display: flex;
  align-items: center;
}

.welcome-text {
  margin-right: 15px;
  font-weight: 500;
}

.user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.dashboard-content {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  grid-gap: 20px;
  gap: 20px;
}

.dashboard-card {
  background-color: white;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.recents-card {
  grid-column: 1 / -1;
}

.metric-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 150px;
}

.metric-value {
  font-size: 48px;
  font-weight: 700;
  color: #37dae0;
}

.metric-label {
  font-size: 14px;
  color: #666;
  margin-top: 10px;
}
/* Updated Styles for static pages */
.page-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem;
  color: #333;
  display: grid;
  grid-template-columns: 1fr 6fr;
  grid-gap: 2rem;
  gap: 2rem;
}

.page-header {
  grid-column: 1 / -1;
  text-align: left;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid #37dae0;
  position: relative;
}

.page-header:after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100px;
  height: 2px;
  background-color: #333;
}

.page-header h1 {
  font-size: 2.8rem;
  background: linear-gradient(90deg, #37dae0cc 0%, #42f8ffcc 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin: 0;
  display: inline-block;
}

.page-sidebar {
  grid-column: 1 / 2;
  background-color: #ffffff;
  border-radius: 8px;
  padding: 1.5rem;
  height: fit-content;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.sidebar-nav {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-nav li {
  margin-bottom: 0.75rem;
  border-bottom: 1px solid #eee;
  padding-bottom: 0.75rem;
}

.sidebar-nav li:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.sidebar-nav a {
  color: #555;
  text-decoration: none;
  display: block;
  transition: all 0.2s ease;
  padding: 0.5rem;
}

.sidebar-nav a:hover {
  color: #37dae0;
  background-color: #f0f0f0;
  border-radius: 4px;
  padding-left: 1rem;
}

.page-content {
  grid-column: 2 / -1;
  line-height: 1.6;
}

.terms-section {
  margin-bottom: 2.5rem;
  background-color: white;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  position: relative;
  overflow: hidden;
}

.terms-section:before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 4px;
  background: linear-gradient(180deg, #37dae0cc 0%, #42f8ffcc 100%);
}

.terms-section h2 {
  color: #333;
  margin-bottom: 1rem;
  font-size: 1.5rem;
  padding-left: 1rem;
}

.terms-section p {
  margin-bottom: 1rem;
  padding-left: 1rem;
}

.terms-section a {
  color: #37dae0;
  text-decoration: none;
  font-weight: 500;
}

.terms-section a:hover {
  text-decoration: underline;
}

.page-footer {
  grid-column: 1 / -1;
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid #eee;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.back-link {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: linear-gradient(90deg, #37dae0cc 0%, #42f8ffcc 100%);
  color: white;
  text-decoration: none;
  border-radius: 25px;
  transition: all 0.3s ease;
}

.back-link:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(55, 218, 224, 0.3);
}

/* Contact Form Styles */
.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-gap: 1.2rem;
  gap: 1.2rem;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group:nth-child(3),
.form-group:nth-child(4) {
  grid-column: 1 / -1;
}

.form-input {
  width: 90%;
  padding: 1rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.form-input:focus {
  border-color: #37dae0;
  outline: none;
  box-shadow: 0 0 0 2px rgba(55, 218, 224, 0.2);
}

.submit-button {
  grid-column: 1 / -1;
  padding: 0.75rem 1.5rem;
  background: linear-gradient(90deg, #37dae0cc 0%, #42f8ffcc 100%);
  color: white;
  border: none;
  border-radius: 25px;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  justify-self: start;
}

.submit-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(55, 218, 224, 0.3);
}

.success-message {
  background-color: #e6f7f8;
  border-left: 4px solid #37dae0;
  padding: 1rem;
  border-radius: 4px;
}

/* FAQ Styles */
.faq-item {
  margin-bottom: 1.5rem;
}

.faq-question {
  font-weight: 600;
  color: #333;
  margin-bottom: 0.5rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-question:after {
  content: '+';
  font-size: 1.2rem;
  color: #37dae0;
}

.faq-question.active:after {
  content: '-';
}

.faq-answer {
  padding-left: 1rem;
  border-left: 2px solid #eee;
  margin-left: 0.5rem;
}

/* API Documentation Styles */
.code-block {
  background-color: #f5f5f5;
  padding: 1rem;
  border-radius: 4px;
  overflow-x: auto;
  margin: 1rem 0;
  border-left: 4px solid #37dae0;
}

code {
  font-family: monospace;
  color: #333;
}

/* Help Center Styles */
.help-card {
  background-color: #f8f9fa;
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  transition: all 0.3s ease;
  border-left: 4px solid #37dae0;
}

.help-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0,0,0,0.1);
}

.help-card h3 {
  color: #333;
  margin-bottom: 0.75rem;
}

.help-card p {
  margin-bottom: 1rem;
}

.help-card a {
  color: #37dae0;
  text-decoration: none;
  font-weight: 500;
  display: inline-block;
}

.help-card a:hover {
  text-decoration: underline;
}

/* Team Section Styles */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  grid-gap: 2rem;
  gap: 2rem;
  margin-top: 2rem;
}

.team-member {
  text-align: center;
  padding: 1.5rem;
  background-color: #f8f9fa;
  border-radius: 12px;
  transition: all 0.3s ease;
  border: 1px solid #eee;
}

.team-member:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(55, 218, 224, 0.15);
  border-color: #37dae0;
}

.team-photo-circle {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: linear-gradient(135deg, #37dae0cc 0%, #42f8ffcc 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-size: 1.5rem;
  font-weight: bold;
  color: white;
  text-shadow: 0 1px 3px rgba(0,0,0,0.3);
  transition: all 0.3s ease;
}

.team-member:hover .team-photo-circle {
  transform: scale(1.1);
  box-shadow: 0 4px 15px rgba(55, 218, 224, 0.4);
}

.team-member h4 {
  margin: 0.5rem 0;
  color: #333;
  font-size: 1.2rem;
}

.team-role {
  color: #666;
  font-style: italic;
  margin: 0;
  font-size: 0.95rem;
}

/* Search Form Styles */
.search-form {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

/* Search Results Page Styles */
.search-results-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
  min-height: calc(100vh - 80px);
}

.search-results-header {
  margin-bottom: 2rem;
  text-align: center;
}

.search-results-header h1 {
  color: #333;
  margin-bottom: 0.5rem;
}

.search-query {
  color: #666;
  font-size: 1.1rem;
}

.search-results-content {
  margin-bottom: 3rem;
}

.loading-message {
  text-align: center;
  padding: 3rem;
  color: #666;
}

.results-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.result-item {
  background: white;
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 1.5rem;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.result-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(55, 218, 224, 0.15);
  border-color: #37dae0;
}

.result-type {
  display: inline-block;
  background: linear-gradient(90deg, #37dae0cc 0%, #42f8ffcc 100%);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 500;
  margin-bottom: 0.75rem;
}

.result-title {
  margin: 0 0 0.5rem 0;
}

.result-title a {
  color: #333;
  text-decoration: none;
  font-size: 1.3rem;
  font-weight: 600;
}

.result-title a:hover {
  color: #37dae0;
}

.result-description {
  color: #666;
  margin: 0;
  line-height: 1.5;
}

.no-results {
  text-align: center;
  padding: 3rem;
}

.no-results p {
  color: #666;
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

.search-suggestions {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 1.5rem;
  text-align: left;
  max-width: 400px;
  margin: 0 auto;
}

.search-suggestions h4 {
  color: #333;
  margin-bottom: 1rem;
}

.search-suggestions ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.search-suggestions li {
  color: #666;
  padding: 0.25rem 0;
  position: relative;
  padding-left: 1rem;
}

.search-suggestions li:before {
  content: '•';
  color: #37dae0;
  position: absolute;
  left: 0;
}

.empty-search {
  text-align: center;
  padding: 3rem;
  color: #666;
  font-size: 1.1rem;
}

.search-footer {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid #eee;
}

/* Responsive Design */
@media (max-width: 768px) {
  .search-results-container {
    padding: 1rem;
  }
  
  .result-item {
    padding: 1rem;
  }
  
  .result-title a {
    font-size: 1.1rem;
  }
}

/* ========================================
   USER DASHBOARD - COMPLETE STYLES
   ======================================== */
.ud-main-content {
  margin-left: 250px;
  transition: margin-left 0.3s ease;
  padding-top: 80px; 
}

.ud-main-content.collapsed {
  margin-left: 0;
}

.ud-main-content.ud-collapsed {
  margin-left: 80px;
}

.ud-content-wrapper {
  padding: 1.5rem;
  /* background-color: #f9fafb; */
  min-height: 100vh;
}

/* Welcome Banner */
.ud-welcome-container {
  margin-bottom: 2rem;
  text-align: left;
}

.ud-welcome-banner {
  display: inline-block;
  background: linear-gradient(to right, #98E0FF, #89fdea);
  color: white;
  padding: 20px 1.5rem;
  border-radius: 15px;
  font-size: 1.125rem;
  font-weight: 600;
  margin-left: 0;
  box-shadow: 0 4px 6px rgba(152, 224, 255, 0.3);
  transition: transform 0.3s ease;
}

.ud-welcome-banner:hover {
  transform: translateY(-2px);
}

/* ========================================
   MAIN GRID LAYOUT - FIXED FOR 3 COLUMNS
   ======================================== */
.ud-main-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr; /* Force 3 equal columns */
  grid-gap: 1.5rem;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

/* ========================================
   CARD STYLES
   ======================================== */
.ud-card {
  background-color: white;
  border-radius: 30px;
  padding: 1.5rem;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.ud-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.ud-card-header {
  color: #374151;
  font-weight: 600;
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.ud-card-subheader {
  color: #6b7280;
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

/* ========================================
   TASK COMPLETION CARD (PIE CHART)
   ======================================== */
.ud-task-card {
  text-align: left;
  grid-row: span 1; /* Make it take 2 rows height */
}


.ud-pie-chart {
  width: 100%;
  height: 100%;
}

.ud-pie-segment {
  transform-origin: center;
  fill: none;
  stroke-width: 40;
  transition: all 0.3s ease;
}

.ud-pie-completed {
  stroke: #4ade80;
}

.ud-pie-pending {
  stroke: #fbbf24;
}

.ud-pie-overdue {
  stroke: #ef4444;
}

.ud-pie-bg {
  stroke: #f3f4f6;
  stroke-width: 40;
  fill: none;
}

/* Legend */
.ud-legend-container {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 0 0.5rem;
}

.ud-legend-item {
  display: flex;
  align-items: center;
  font-size: 0.875rem;
  color: #4b5563;
}

.ud-legend-color {
  width: 1rem;
  height: 1rem;
  border-radius: 4px;
  margin-right: 0.75rem;
  flex-shrink: 0;
}

.ud-legend-green {
  background-color: #4ade80;
}

.ud-legend-yellow {
  background-color: #fbbf24;
}

.ud-legend-red {
  background-color: #ef4444;
}

/* ========================================
   METRIC CARDS COLUMN
   ======================================== */
.ud-metric-column {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.ud-metric-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-align: left;
  position: relative;
  padding: 1.5rem;
  min-height: 140px;
}

.ud-metric-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
  position: relative;
}

/* Metric Icon - Fixed positioning */
.ud-metric-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.ud-metric-card:hover .ud-metric-icon {
  transform: scale(1.1) rotate(5deg);
}

/* Icon Color Variants */
.ud-icon-purple {
  background-color: #e9d5ff;
  color: #8b5cf6;
}

.ud-icon-red {
  background-color: #fee2e2;
  color: #ef4444;
}

.ud-icon-green {
  background-color: #dcfce7;
  color: #16a34a;
}

.ud-icon-yellow {
  background-color: #fef3c7;
  color: #d97706;
}

/* Metric Value */
.ud-metric-value {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  text-align: left;
  width: 100%;
  line-height: 1;
  animation: countUp 0.6s ease-out;
}

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

/* Text Color Variants */
.ud-text-purple {
  color: #8b5cf6;
}

.ud-text-red {
  color: #ef4444;
}

.ud-text-green {
  color: #16a34a;
}

.ud-text-yellow {
  color: #d97706;
}

/* Metric Description */
.ud-metric-description {
  font-size: 0.85rem;
  color: #6b7280;
  text-align: left;
  width: 100%;
  line-height: 1.4;
}

/* ========================================
   RECENT CONTENT SECTIONS
   ======================================== */
.ud-recents-card {
  margin-top: 2rem;
}

.ud-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid #f0f0f0;
}

.ud-section-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #2d3436;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.ud-section-icon {
  font-size: 1.75rem;
}

.ud-icon-teal {
  color: #14b8a6;
}

.ud-icon-purple {
  color: #8b5cf6;
}

.ud-icon-orange {
  color: #f97316;
}

/* Horizontal Scroll Container */
.ud-horizontal-scroll {
  display: flex;
  gap: 1.5rem;
  padding: 0.5rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

.ud-horizontal-scroll::-webkit-scrollbar {
  height: 6px;
}

.ud-horizontal-scroll::-webkit-scrollbar-track {
  background: #f0f0f0;
  border-radius: 3px;
}

.ud-horizontal-scroll::-webkit-scrollbar-thumb {
  background: #98E0FF;
  border-radius: 3px;
}

/* Horizontal Cards */
.ud-horizontal-card {
  flex: 0 0 300px;
  background: #F6F7FB;
  border-radius: 20px;
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(0, 0, 0, 0.05);
}



.ud-horizontal-card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.ud-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(152, 224, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  margin-top: 0.5rem;
  transition: all 0.3s ease;
}

.ud-horizontal-card:hover .ud-card-icon {
  background: #98E0FF;
  transform: scale(1.1);
}

.ud-card-content {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.ud-card-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #374151;
  margin: 0;
  line-height: 1.4;
}

.ud-card-description {
  font-size: 0.9rem;
  color: #686868;
  margin: 0;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ud-card-footer {
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 1px solid #f0f0f0;
  font-size: 0.8rem;
  color: #b2bec3;
}

/* No Content State */
.ud-no-content {
  text-align: center;
  padding: 3rem 2rem;
  color: #636e72;
  background: rgba(0, 0, 0, 0.02);
  border-radius: 12px;
  border: 2px dashed #e0e0e0;
}

.ud-no-content p {
  margin: 0 0 1.5rem;
  font-size: 1.1rem;
}

.create-btn {
  background: linear-gradient(to right, #98E0FF, #89fdea);
  color: white;
  padding: 0.75rem 2rem;
  border-radius: 8px;
  font-weight: 500;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 4px 6px rgba(152, 224, 255, 0.3);
}

.create-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(152, 224, 255, 0.4);
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */
@media (max-width: 1200px) {
  .ud-main-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  .ud-task-card {
    grid-column: 1 / -1;
    grid-row: auto;
  }
}

@media (max-width: 768px) {
  .ud-main-grid {
    grid-template-columns: 1fr;
  }
  
  .ud-metric-column {
    gap: 1rem;
  }
  
  .ud-pie-chart-container {
    width: 10rem;
    height: 10rem;
  }
  
  .ud-metric-value {
    font-size: 2rem;
  }
  
  .ud-metric-icon {
    width: 2.5rem;
    height: 2.5rem;
    font-size: 1.25rem;
  }
  
  .ud-horizontal-card {
    flex: 0 0 260px;
  }
}

@media (max-width: 480px) {
  .ud-content-wrapper {
    padding: 1rem;
  }
  
  .ud-welcome-banner {
    padding: 15px 1rem;
    font-size: 1rem;
  }
  
  .ud-card {
    padding: 1.25rem;
  }
  
  .ud-pie-chart-container {
    width: 9rem;
    height: 9rem;
  }
  
  .ud-metric-value {
    font-size: 1.75rem;
  }
  
  .ud-legend-item {
    font-size: 0.85rem;
  }
  
  .ud-horizontal-card {
    flex: 0 0 220px;
  }
}

/* ========================================
   UTILITY CLASSES
   ======================================== */
.ud-mr-1 {
  margin-right: 0.25rem;
}

/* Loading State */
.ud-loading {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 400px;
  color: #636e72;
}

/* Error State */
.ud-error {
  padding: 2rem;
  text-align: center;
  color: #ef4444;
  background: rgba(239, 68, 68, 0.05);
  border-radius: 12px;
  margin: 2rem 0;
}

.archived-note-card {
  position: relative;
  cursor: pointer;
}

.archived-note-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.unarchive-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255, 255, 255, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 1rem;
  -webkit-backdrop-filter: blur(2px);
          backdrop-filter: blur(2px);
}

.unarchive-button {
  padding: 0.75rem 1.5rem;
  background: linear-gradient(135deg, #00E0E9 0%, #86FAFF 100%);
  color: white;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-family: "Avenir Next", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-family: var(--font-family);
  font-size: 0.875rem;
  font-weight: 600;
  transition: background-color 0.2s ease, transform 0.1s ease;
  box-shadow: 0 2px 4px rgba(34, 211, 238, 0.3);
}

.unarchive-button:hover {
  background-color: #06b6d4;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(34, 211, 238, 0.4);
}

/* Notes Page Styles */
.notes-container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  font-family: "Avenir Next", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-family: var(--font-family);
  background-color: #f8f9fa;
}

.main-content {
  overflow: visible !important;
  margin-left: 240px;
  transition: margin-left 0.3s ease;
  padding-top: 0;
}

.main-content.collapsed {
  margin-left: 0;
}


/* Header Bar Styles */
.notes-header-bar {
  background-color: white;
  border-bottom: 1px solid #e5e7eb;
  padding: 1rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 10;
}

/* Add wrapper to match grid width */
.header-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  padding: 0 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 60px;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.search-container {
  position: relative;
  width: 350px;
  flex-shrink: 0;
}

.search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #9ca3af;
  font-size: 0.875rem;
}

.search-input {
  width: 100%;
  padding: 0.5rem 0.5rem 0.5rem 2.25rem;
  border: 1px solid #d1d5db;
  border-radius: 30px;
  font-family: "Avenir Next", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-family: var(--font-family);
  font-size: 0.875rem;
  font-weight: 500;
  background-color: white;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  box-sizing: border-box;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search-input:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.header-button {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.875rem; /* Slightly reduced padding */
  background-color: white;
  border: 1px solid #d1d5db;
  border-radius: 30px; /* Smaller border radius */
  cursor: pointer;
  font-family: "Avenir Next", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-family: var(--font-family);
  font-size: 0.875rem;
  font-weight: 500;
  color: #374151;
  transition: background-color 0.2s ease, border-color 0.2s ease;
  white-space: nowrap; /* Prevent text wrapping */
}

.header-button:hover {
  background-color: #f9fafb;
  border-color: #9ca3af;
}

.button-icon {
  font-size: 0.875rem;
}

.archives-button {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.875rem; /* Slightly reduced padding */
  background-color: rgb(255, 113, 113);
  border: 1px solid #d1d5db;
  border-radius: 10px; /* Smaller border radius */
  cursor: pointer;
  font-family: "Avenir Next", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-family: var(--font-family);
  font-size: 0.875rem;
  font-weight: 500;
  color: #6b7280;
  transition: background-color 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}

.archives-button:hover {
  background-color: #f9fafb;
  border-color: #9ca3af;
  color: #374151;
}

.add-note-button {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.875rem; /* Slightly reduced padding */
  background-color: #22d3ee;
  color: white;
  border: none;
  border-radius: 10px; /* Smaller border radius */
  cursor: pointer;
  font-family: "Avenir Next", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-family: var(--font-family);
  font-size: 0.875rem;
  font-weight: 500;
  transition: background-color 0.2s ease, transform 0.1s ease;
  white-space: nowrap;
}

.add-note-button:hover {
  background-color: #06b6d4;
  transform: translateY(-1px);
}

/* Content Wrapper */
.notes-content-wrapper {
  width: 100%;
}

/* Notes Grid */
.notes-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-gap: 1.5rem;
  gap: 1.5rem; /* Increased gap between cards */
  max-height: calc(100vh - 150px);
  margin-bottom: 120px;
}

/* Note Card Styles */
.note-card {
  background-color: #ffffff;
  border-radius: 18px;
  padding: 1rem;
  transition: all 0.2s ease;
  position: relative;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  cursor: pointer;
}

.note-card:hover {
  background-color: #f8f8fc;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transform: translateY(-1px);
}

.note-card.dropdown-active {
  z-index: 9999 !important;
  position: relative;
}

.note-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.5rem;
}

.note-left {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: 1 1;
}

.note-icon {
  color: #9ca3af;
  font-size: 2rem;
  background-color: #ffffff;
  border-radius: 50%;
  width: 4rem;
  height: 4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #e5e7eb;
  flex-shrink: 0;
}

.note-info {
  flex: 1 1;
  min-width: 0;
  text-align: left;
}

.note-title {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 0.25rem 0;
  color: #111827;
  font-family: "Avenir Next", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-family: var(--font-family);
  text-align: left;
}

.note-icon-img {
  width: 45px;
  height: 45px;
}

.note-description {
  font-size: 0.8125rem;
  font-weight: 500;
  color: #6b7280;
  margin: 0;
  line-height: 1.4;
  font-family: "Avenir Next", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-family: var(--font-family);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-align: left;
}

.note-footer {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  font-size: 0.8125rem;
  color: #6b7280;
  margin-top: 0.75rem;
}

.last-opened {
  font-family: "Avenir Next", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-family: var(--font-family);
  font-weight: 500;
  text-align: right;
}
.quiz-options-button,
.note-options-button {
  background: none;
  border: none;
  color: #9ca3af;
  cursor: pointer;
  padding: 0.25rem;
  border-radius: 0.25rem;
  transition: color 0.2s ease;
  flex-shrink: 0;
  font-size: 0.875rem;
}

/* Note Options Dropdown */
.quiz-options-container,
.note-options-container {
  position: relative;
}

.note-dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  background-color: white;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  width: 80px;
  z-index: 9999; /* Very high z-index to appear above everything */
}

.dropdown-item {
  display: block;
  width: 100%;
  padding: 4px 8px;
  text-align: center;
  background: none;
  border: none;
  font-family: "Avenir Next", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-family: var(--font-family);
  font-size: 0.8125rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
  color: #4b5563;
  border-bottom: 1px solid #e5e7eb;
}

.dropdown-item:last-child {
  border-bottom: none;
}

.dropdown-item:hover {
  background-color: #272727;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transform: translateY(-1px);
}

.dropdown-item:first-child {
  border-top-left-radius: 7px;
  border-top-right-radius: 7px;
}

.dropdown-item:last-child {
  border-bottom-left-radius: 7px;
  border-bottom-right-radius: 7px;
}
.quiz-options-button:hover,
.note-options-button:hover {
  color: #6b7280;
  background-color: #f3f4f6;
}

.AN-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.AN-modal {
  background: white;
  border-radius: 16px;
  padding: 32px;
  width: 90%;
  max-width: 600px;
  position: relative;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.AN-option-icon {
  font-size: 2.5rem;
  color: #4b5563;
}

.AN-modal-close-btn {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  font-size: 24px;
  font-weight: bold;
  color: #6b7280;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
}

.AN-modal-close-btn:hover {
  color: #374151;
}

.AN-modal-title {
  font-size: 18px;
  font-weight: 600;
  color: #111827;
  text-align: center;
  margin: 0 0 32px 0;
  padding-right: 24px;
}

.AN-modal-options {
  display: flex;
  gap: 24px;
  margin-bottom: 32px;
  justify-content: center;
}

.AN-modal-option {
  padding: 32px;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  background: white;
  color: #6b7280;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
  min-width: 200px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 16px;
}

.AN-modal-option:hover {
  border-color: #d1d5db;
  background: #f9fafb;
  transform: translateY(-2px);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.AN-modal-option:hover .AN-option-icon {
  color: #00E0E9;
}

.AN-modal-option.selected {
  background: #4b5563;
  color: white;
  border-color: #4b5563;
}

.AN-modal-submit-btn {
  width: 200px;
  margin: 0 auto;
  display: block;
  padding: 12px 20px;
  background: linear-gradient(135deg, #00E0E9 0%, #86FAFF 100%);
  color: white;
  border: none;
  border-radius: 24px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.AN-modal-submit-btn:hover:not(:disabled) {
  background: #06b6d4;
  transform: translateY(-1px);
}

.AN-modal-submit-btn:disabled {
  background: #d1d5db;
  color: #9ca3af;
  cursor: not-allowed;
  transform: none;
}


.NT-main-content {
  margin-left: 240px;
  transition: margin-left 0.3s ease;
  margin-top: 100px;
  padding-top: 0;
  padding-left: 1rem;
  padding-right: 1rem;
}

.NT-main-content.collapsed {
  margin-left: 0;
  padding-left: 2rem;
  padding-right: 2rem;
}

.notes-content-wrapper {
  padding: 1rem 1rem;
  max-width: 1500px;
  margin: 0 auto;
  width: 100%;
}

/* Header with title and export button */
.NT-editor-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  gap: 20px;
}

.NT-header-buttons {
  display: flex;
  gap: 10px;
}

.NT-title-input {
  width: 30%;
  padding: 0.5rem 1rem; 
  border: 1px solid #d1d5db;
  border-radius: 30px;
  font-family: "Avenir Next", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-family: var(--font-family);
  font-size: 0.875rem;
  font-weight: 500;
  background-color: white;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  box-sizing: border-box;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.NT-title-input:focus {
  border-color: #37dae0;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.NT-export-btn {
  background-color: white;
  color: #6b7280;
}

.NT-export-btn:hover {
  background-color: #f9fafb;
  color: #374151;
}

.NT-back-btn {
  background-color: #00d4dd;
  color: white;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.NT-back-btn:hover {
  background-color: #00bcc5;
  color: white;
}

.NT-header-left,
.cq-header-left,
.cf-header-left,
.cg-header-left {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: 1 1;
}

.of-back-btn {
  background-color: #00d4dd;
  color: white;
}

.of-back-btn:hover {
  background-color: #00bcc5;
  color: white;
}

/* Base button class for consistent styling */
.btn-base {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.875rem;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-family: "Avenir Next", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-family: var(--font-family);
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.2s ease;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.btn-base:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-base:active {
  transform: translateY(0);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

/* Toolbar with better spacing and layout */
.NT-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
  padding: 12px 16px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  border: 1px solid #f0f0f0;
}

/* Left side of toolbar - formatting controls */
.NT-toolbar-left {
  display: flex;
  align-items: center;
  gap: 15px;
}

.NT-toolbar-group {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 8px;
}

.NT-toolbar-group:not(:last-child) {
  border-right: 1px solid #eee;
  padding-right: 15px;
}

.NT-toolbar button {
  padding: 8px;
  border: none;
  border-radius: 6px;
  background: transparent;
  cursor: pointer;
  color: #333;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
}

.NT-toolbar button:hover {
  background: #f0f0f0;
}

.NT-toolbar button.active {
  background-color: #e2e8f0;
  color: #37dae0;
}

.NT-font-size-select {
  padding: 6px 10px;
  border-radius: 6px;
  border: 1px solid #ddd;
  font-family: "Avenir Next", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-family: var(--font-family);
  background: white;
  min-width: 60px;
}

.NT-font-family-select {
  padding: 6px 10px;
  border-radius: 6px;
  border: 1px solid #ddd;
  font-family: "Avenir Next", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-family: var(--font-family);
  background: white;
  min-width: 120px;
  margin-right: 8px;
}

/* Highlight dropdown styling */
.NT-highlight-dropdown {
  position: relative;
  display: inline-block;
}

.NT-highlight-colors {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 1000;
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  padding: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  min-width: 160px;
  margin-top: 4px;
}

.NT-highlight-color {
  width: 24px;
  height: 24px;
  border: 2px solid #ddd;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: bold;
  color: #666;
}

.NT-highlight-color:hover {
  border-color: #37dae0;
  transform: scale(1.1);
}

.NT-highlight-color:last-child {
  background: white;
  border: 2px solid #ff4444;
  color: #ff4444;
}

/* Right side of toolbar - note options */
.NT-note-options {
  display: flex;
  align-items: center;
  gap: 12px;
}

.NT-note-options-label {
  color: #888;
  font-weight: 500;
  font-size: 14px;
}

.NT-option-btn {
  background-color: #47FF7E !important;
  color: white !important;
  border-radius: 20px !important;
  font-size: 13px !important;
  padding: 8px 16px !important;
}

.NT-option-btn:hover {
  background-color: #3be072 !important;
}

.NT-option-btn.restructure {
  background-color: #47FF7E !important;
}

.NT-option-btn.ai-chatbot {
  background-color: #47FF7E !important;
}

/* Editor content area */
.NT-editor-content {
  min-height: 500px;
  padding: 24px;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  background: white;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  margin-bottom: 20px;
  font-family: "Avenir Next", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-family: var(--font-family);
  font-size: 16px;
  line-height: 1.6;
  transition: all 0.3s ease;
}

.NT-editor-content:focus {
  outline: none;
  border-color: #37dae0;
  box-shadow: 0 4px 12px rgba(55, 218, 224, 0.15);
}

/* Save button */
.NT-save-btn {
  background-color: #22d3ee;
  color: white;
  border: none;
}

.NT-save-btn:hover {
  background-color: #06b6d4;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .NT-editor-header {
    flex-direction: column;
    align-items: stretch;
    gap: 15px;
  }
  
  .NT-title-input {
    max-width: none;
  }
  
  .NT-toolbar {
    flex-direction: column;
    gap: 15px;
    align-items: stretch;
  }
  
  .NT-toolbar-left {
    justify-content: center;
  }
  
  .NT-note-options {
    justify-content: center;
  }
}

/* Restructure Modal Styles - These are the ONLY new CSS I added */

.restructure-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.restructure-modal {
  background: white;
  border-radius: 16px;
  padding: 32px;
  width: 90%;
  max-width: 480px;
  position: relative;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.modal-close-btn {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  font-size: 24px;
  font-weight: bold;
  color: #6b7280;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
}

.modal-close-btn:hover {
  color: #374151;
}

.modal-title {
  font-size: 18px;
  font-weight: 600;
  color: #111827;
  text-align: center;
  margin: 0 0 32px 0;
  padding-right: 24px;
}

.restructure-options {
  display: flex;
  gap: 16px;
  margin-bottom: 12px;
  justify-content: center;
}

.restructure-option {
  padding: 20px 32px;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  background: white;
  color: #6b7280;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
  min-width: 140px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.restructure-option:hover {
  border-color: #d1d5db;
  background: #f9fafb;
}

.restructure-option.selected {
  background: #4b5563;
  color: white;
  border-color: #4b5563;
}

.restructure-submit-btn {
  width: 200px;
  margin: 0 auto;
  display: block;
  padding: 12px 20px;
  background: linear-gradient(135deg, #00E0E9 0%, #86FAFF 100%);
  color: white;
  border: none;
  border-radius: 24px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Reduce default paragraph spacing for option descriptions inside the modal */
.restructure-modal .option-description {
  margin: 6px 0 8px;
}

.restructure-submit-btn:hover:not(:disabled) {
  background: #06b6d4;
  transform: translateY(-1px);
}

.restructure-submit-btn:disabled {
  background: #d1d5db;
  color: #9ca3af;
  cursor: not-allowed;
  transform: none;
}

/* Responsive Design */
@media (max-width: 1200px) {
  .header-wrapper {
    gap: 1rem;
  }
  
  .search-container {
    width: 250px;
  }
  
  .notes-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 1024px) {
  .header-wrapper {
    gap: 0.75rem;
  }
  
  .search-container {
    width: 220px;
  }
  
  .header-button,
  .archives-button,
  .add-note-button {
    padding: 0.5rem 0.75rem;
    font-size: 0.8125rem;
  }
}

@media (max-width: 992px) {
  .header-wrapper {
    flex-wrap: wrap;
    gap: 1rem;
  }
  
  .header-left {
    width: 100%;
    justify-content: space-between;
  }
  
  .header-right {
    width: 100%;
    justify-content: flex-end;
  }
  
  .search-container {
    width: 200px;
  }
}

@media (max-width: 768px) {
  .main-content {
    margin-left: 0;
  }
  
  .notes-header-bar {
    padding: 1rem 0;
  }
  
  .header-wrapper {
    flex-direction: column;
    align-items: stretch;
    padding: 0 1rem;
  }
  
  .header-left {
    width: 100%;
    flex-direction: column;
    gap: 0.75rem;
  }
  
  .header-right {
    width: 100%;
    justify-content: space-between;
    margin-top: 0.75rem;
  }
  
  .search-container {
    width: 100%;
  }
  
  .notes-content-wrapper {
    padding: 1rem;
  }
  
  .notes-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
    max-height: none;
  }
  
  .note-card {
    padding: 0.75rem;
  }
}
/* Responsive Styles */
@media (min-width: 768px) {
  .ud-recents-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .ud-recents-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

/* ToDoList */
.gen-main-container {
  overflow: visible !important;
  margin-top: -90px;
  padding: 50px 10% 0 10%;
  background-color: #ffffff;
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Header Controls */
.gen-header-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  gap: 20px;
}

.todo-divider {
  border: none;
  height: 1px;
  background-color: #CDCDCD;
  margin: 15px calc(-20% - 10px) 15px -30%; /* Negative margins based on container padding */
  width: auto;
  margin-top: 50px;
  margin-bottom: 50px;
}

.quiz-divider {
  border: none;
  height: 1px;
  background-color: #CDCDCD;
  margin: 15px calc(-20% - 10px) 15px -30%;
  /* Negative margins based on container padding */
  width: auto;
  margin-top: 50px;
}
.gen-search-sort-filter {
  display: flex;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
}

.gen-search-container {
  position: relative;
  display: flex;
  align-items: center;
}

.gen-search-icon {
  position: absolute;
  left: 12px;
  color: #6b7280;
  z-index: 1;
}

.gen-search-input {
  padding: 8px 12px 8px 36px;
  border-radius: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.100);
  border:none;
  background-color: white;
  font-size: 14px;
  width: 200px;
}

.gen-search-input:focus {
  outline: none;
  border-color: #d1d5db;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.todo-header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}
.archives-icon {
  width: 14px;
  height: 14px;
  margin-right: 6px;
  color: #ffffff;
}
.archives-btn,
.todo-archives-btn {
  background-color: #fd5f5f;
  color: #ffffff;
  padding: 8px 25px;
}

.todo-archives-btn:hover,
.archives-btn:hover {
  background-color: #db4f4f;
  color: #ffffff;
}

.create-btn {
  background-color: #22d3ee;
  color: white;
  padding: 8px 25px;
}

.create-btn:hover {
  background-color: #06b6d4;
}

/* Update Add Task Button */
.todo-add-task-btn {
  padding: 8px 25px;
  background-color: #22d3ee;
  border: none;
  border-radius: 10px;
  font-size: 14px;
  color: white;
  font-weight: 1000;
  cursor: pointer;
  white-space: nowrap;
}

.todo-add-task-btn:hover {
  opacity: 0.8;
}

/* Task List */
.todo-task-list {
  overflow: visible !important;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.todo-task-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 20px;
  background-color: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  border-radius: 18px;
  margin-bottom: 20px;
  min-height: 60px;
  position: relative;
  transition: all 0.2s ease;
  z-index: 1; 
  overflow: visible;
}

.todo-task-item:hover {
  background-color: #f8f8fc;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transform: translateY(-1px);
  z-index: 10; /* Higher z-index when hovered */
}

.todo-task-item.missed {
  background-color: #fef2f2;
  border-left: 6px solid #ff7676;
}

.todo-task-item.missed:hover {
  background-color: #fef2f2;
  border-left: 8px solid #f86868;
  transition: 0s;
}

.todo-task-item.due-today {
  background-color: #FFDBCE;
  border-left: 4px solid #f59e0b;
}

.todo-task-item.due-today:hover {
  background-color: #FFDBCE;
  border-left: 6px solid #f59e0b;
  transition: 0s;
}

.todo-task-item .todo-task-right {
  position: relative;
  z-index: 5;
}

.todo-task-item .todo-task-content {
  z-index: 3;
}
.todo-task-item {
  isolation: isolate;
}

.todo-task-item:has(.note-dropdown-menu) {
  z-index: 9999 !important;
}

.todo-task-content {
  display: flex;
  align-items: center;
  gap: 12px;
}

.todo-checkbox {
  width: 18px;
  height: 18px;
  border: 2px solid #d1d5db;
  border-radius: 3px;
  cursor: pointer;
}

.todo-task-title {
  font-size: 14px;
  color: #686868;
  font-weight: bold;
}

.todo-task-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.todo-due-date {
  font-size: medium;
  color: #6b7280;
}

.todo-missed-label {
  font-size: medium;
  color: #dc2626;
  font-weight: bold;
}

.todo-due-today-label {
  font-size: medium;
  color: #d97706;
  font-weight: bold;
}

.todo-more-btn {
  padding: 4px;
  background: none;
  border: none;
  color: #6b7280;
  cursor: pointer;
  border-radius: 3px;
}

.todo-more-btn:hover {
  background-color: #f3f4f6;
  color: #374151;
}

/* Calendar */
.todo-calendar-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background-color: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.103);
  border-radius: 18px;
  border: none;
  font-size: 14px;
  color: #808080;
  cursor: pointer;
  transition: all 0.2s ease;
}

.todo-calendar-btn:hover {
  background-color: #f8f8fc;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transform: translateY(-1px);
}

.todo-calendar-btn.active {
  background: linear-gradient(to right, #00E0E9, #86FAFF);
  color: white;
}

/* Calendar View Styles */
.todo-calendar-container {
  width: 100%;
  max-width: 100%;
  background: white;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  padding: 20px;
}

/* New Calendar Styles */
.calendar-view-container {
  display: flex;
  margin-top: -25px;
  margin-left: -25px;
  gap: 20px;
  width: 100%;
  background: transparent; /* Tinanggal ang white background */
  border-radius: 15px;
  padding: 25px;
  box-shadow: none; /* Tinanggal ang box shadow */
}

.calendar-main {
  flex: 1 1;
  background: white;
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  padding: 25px;
  transition: all 0.3s ease;
}

.calendar-title h2 {
  font-size: 28px;
  font-weight: 700;
  margin: 0;
  color: #333;
  background: linear-gradient(to right, #00E0E9, #86FAFF);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.calendar-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.view-mode-toggles {
  display: flex;
  margin-right: 10px;
  background-color: #f0f0f0;
  border-radius: 25px;
  padding: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.view-mode-btn {
  padding: 8px 18px;
  border: none;
  background: transparent;
  border-radius: 25px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  color: #666;
  transition: all 0.3s ease;
}

.view-mode-btn.active {
  background: linear-gradient(to right, #00E0E9, #86FAFF);
  color: white;
  box-shadow: 0 4px 8px rgba(0, 224, 233, 0.3);
}

.calendar-month-year {
  font-size: 1.5rem;
  font-weight: 600;
  color: #333;
}

.calendar-nav-buttons {
  display: flex;
  gap: 10px;
}

.calendar-nav-btn {
  background: #f0f0f0;
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Special styling for Today button */
.calendar-nav-btn.today-btn {
  border-radius: 20px;
  width: auto;
  padding: 0 15px;
  font-size: 14px;       /* Same font size as view-mode-btn */
  font-weight: 600;     
  color: #666;          
}

.calendar-nav-btn:hover {
  background-color: #f8f8fc;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transform: translateY(-1px);
}

.calendar-body {
  width: 100%;
}

.calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  margin-bottom: 15px;
  border-bottom: 1px solid #f0f0f0;
  padding-bottom: 10px;
}

.weekday-name {
  font-size: 13px;
  font-weight: 700;
  color: #555;
  padding: 10px 0;
}

.calendar-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  grid-gap: 8px;
  gap: 8px;
}

.calendar-day {
  height: 90px;
  padding: 8px;
  border-radius: 12px;
  background: #f9f9f9;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
  position: relative;
  border: 1px solid #f0f0f0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.03);
}

.calendar-day:hover {
  background: #f0f0f0;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.calendar-day.empty {
  background: transparent;
  border: none;
  box-shadow: none;
  pointer-events: none;
}

.calendar-day-number {
  align-self: flex-end;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: #555;
}

.calendar-day.today {
  background: rgba(0, 224, 233, 0.08);
  border: 2px solid #00E0E9;
}

.calendar-day.today .calendar-day-number {
  background: linear-gradient(to right, #00E0E9, #86FAFF);
  color: white;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 8px rgba(0, 224, 233, 0.3);
}

.calendar-day.has-tasks .calendar-day-number {
  font-weight: bold;
  color: #00a8b5;
}

.calendar-task-indicator {
  width: 6px;
  height: 6px;
  background: #00E0E9;
  border-radius: 50%;
  position: absolute;
  top: 8px;
  right: 8px;
}

.calendar-day-events {
  flex-grow: 1;
  overflow-y: auto;
  font-size: 0.75rem;
  scrollbar-width: thin;
  scrollbar-color: #00E0E9 #f0f0f0;
}

.calendar-day-events::-webkit-scrollbar {
  width: 4px;
}

.calendar-day-events::-webkit-scrollbar-track {
  background: #f0f0f0;
  border-radius: 10px;
}

.calendar-day-events::-webkit-scrollbar-thumb {
  background: #00E0E9;
  border-radius: 10px;
}

.calendar-event {
  background: rgba(0, 224, 233, 0.1);
  border-left: 3px solid #00E0E9;
  padding: 4px 6px;
  margin-bottom: 4px;
  border-radius: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 500;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.calendar-event:hover {
  background: rgba(0, 224, 233, 0.2);
  transform: translateX(2px);
}

.calendar-event.missed {
  background: rgba(239, 68, 68, 0.1);
  border-left: 3px solid #ef4444;
  box-shadow: 0 1px 3px rgba(239, 68, 68, 0.1);
}

.calendar-event.due-today {
  background: rgba(245, 158, 11, 0.1);
  border-left: 3px solid #f59e0b;
  box-shadow: 0 1px 3px rgba(245, 158, 11, 0.1);
}

.calendar-event.more-events {
  background: rgba(107, 114, 128, 0.1);
  border-left: 3px solid #6b7280;
  text-align: center;
  font-size: 10px;
  color: #6b7280;
  font-weight: 600;
}

/* Upcoming Events Sidebar */
.upcoming-events-container {
  width: 280px;
  background: white;
  border-radius: 15px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  padding: 25px;
  transition: all 0.3s ease;
}

.upcoming-events-title {
  font-size: 20px;
  font-weight: 700;
  margin-top: 0;
  margin-bottom: 20px;
  color: #333;
  position: relative;
  padding-bottom: 10px;
}

.upcoming-events-title:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background: linear-gradient(to right, #00E0E9, #86FAFF);
  border-radius: 10px;
}

.upcoming-event-item {
  padding: 15px;
  border-left: 4px solid #00E0E9;
  background: #f9f9f9;
  margin-bottom: 15px;
  border-radius: 8px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.upcoming-event-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.upcoming-event-title {
  font-weight: 600;
  margin-bottom: 8px;
  color: #333;
  font-size: 15px;
}

.upcoming-event-date {
  font-size: 13px;
  color: #666;
  display: flex;
  align-items: center;
  gap: 5px;
}

.upcoming-event-date:before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  background: #00E0E9;
  border-radius: 50%;
}

/* ToDoListArchives */
.todo-unarchive-overlay {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(235, 237, 245, 0.9);
  color: #FF7070;
  font-weight: 1000;
  font-size: larger;
  border-radius: 17px;
  cursor: pointer;
  z-index: 1;
}

.archived-note-card {
  position: relative;
  opacity: 0.8;
}

.todo-unarchive-overlay {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(235, 237, 245, 0.9);
  color: #FF7070;
  font-weight: bold;
  cursor: pointer;
  z-index: 1;
  transition: all 0.2s ease;
}



/*  Shop */
/* Enhanced Shop Styles with Animations */
.shop-container {
  font-family: 'Poppins', sans-serif;
  padding: 2.5rem; /* Larger spacing */
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

/* Floating particles background */
.shop-container::before {
  content: none; /* Remove decorative background */
}

@keyframes floatParticles {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: 30px 30px;
  }
}

.shop-header {
  font-size: 2.2rem; /* Bigger title */
  text-align: center;
  margin-bottom: 2rem;
  font-weight: 700;
  position: relative;
}

.shop-header span {
  background: linear-gradient(to right, #ffcc00, #ff0033);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  padding: 0.5rem 1rem;
  position: relative;
  display: inline-block;
}

@keyframes shopHeaderPulse {
  0%, 100% {
    transform: scale(1);
    text-shadow: 0 0 10px rgba(255, 204, 0, 0.3);
  }
  50% {
    transform: scale(1.03);
    text-shadow: 0 0 20px rgba(255, 204, 0, 0.5);
  }
}

.shop-header span::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 50%;
  width: 80px;
  height: 3px;
  background: linear-gradient(to right, #ffcc00, #ff0033);
  transform: translateX(-50%);
  border-radius: 3px;
}

@keyframes shopUnderlinePulse {
  0%, 100% {
    width: 80px;
    opacity: 0.8;
  }
  50% {
    width: 100px;
    opacity: 1;
  }
}

.shop-filter-tabs {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.shop-tab {
  background: white;
  border: none;
  padding: 12px 28px; /* Bigger tabs */
  font-weight: 600;
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  color: #333;
  box-shadow: 0 2px 6px rgba(255, 204, 0, 0.2);
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
  overflow: hidden;
}

.shop-tab svg {
  width: 16px;
  height: 16px;
  transition: all 0.3s ease;
}

.shop-tab::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 223, 40, 0.2), transparent);
  transition: all 0.5s ease;
}

.shop-tab:hover::before {
  left: 100%;
}

.shop-tab.active {
  background: linear-gradient(to right, #FFDF28, #FFDB89);
  color: #333;
  box-shadow: 0 4px 12px rgba(255, 204, 0, 0.3);
  transform: translateY(-2px);
}

.shop-tab:hover svg,
.shop-tab.active svg {
  transform: none; /* No playful rotation */
}

.shop-balance-container {
  display: flex;
  justify-content: flex-end;
  margin: 0 0 2rem;
  gap: 5px;
}

.shop-icon-box {
  display: flex;
  align-items: center;
  background: linear-gradient(to right, #FFDF28, #FFDB89);
  padding: 10px 18px; /* Larger pill */
  border-radius: 50px;
  box-shadow: 0 4px 12px rgba(255, 204, 0, 0.2);
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.shop-icon-box::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.8) 0%, transparent 60%);
  opacity: 0;
  transform: scale(0.5);
  transition: transform 0.5s ease, opacity 0.5s ease;
}

.shop-icon-box:hover::after {
  opacity: 0.3;
  transform: scale(1);
}

.shop-icon-box:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(255, 204, 0, 0.3);
}

.shop-coin-icon {
  width: 30px; /* Bigger icon */
  height: 30px;
  filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.08));
}

@keyframes coinSpin {
  0% {
    transform: rotateY(0deg);
  }
  50% {
    transform: rotateY(180deg);
  }
  100% {
    transform: rotateY(360deg);
  }
}

.shop-amount-box {
  display: flex;
  align-items: center;
  background-color: white;
  padding: 6px 16px;
  border-radius: 50px;
  font-weight: 700;
  color: #FFBE32;
  margin-left: 5px;
  position: relative;
  overflow: hidden;
}

.shop-token-amount {
  font-size: 18px; /* Larger amount */
  position: relative;
}

.shop-token-amount::after { display: none; }

.shop-icon-box:hover .shop-token-amount::after {
  opacity: 1;
  transform: translateY(0);
}

.shop-items-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); /* Bigger cards */
  grid-gap: 28px;
  gap: 28px;
  padding: 0 10px;
}

.shop-item {
  background: white;
  padding: 24px; /* Larger card padding */
  border-radius: 16px;
  text-align: center;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
  border: 1px solid rgba(255, 223, 40, 0.25);
  position: relative;
  overflow: hidden;
}

.shop-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(to right, #FFDF28, #FFDB89);
}

.shop-item:hover {
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.10);
  border-color: rgba(255, 223, 40, 0.5);
}

.shop-item::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.3) 0%, transparent 50%, transparent 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.shop-item:hover::after {
  opacity: 1;
}

.shop-item-name {
  font-weight: 700;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  min-height: 2.8em;
  line-height: 1.4em;
  height: 2.8em;
  text-align: center;
  padding: 0 5px;
  color: #333;
  position: relative;
}

.shop-item-name::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(to right, #FFDF28, #FFDB89);
  transform: translateX(-50%);
  transition: width 0.3s ease;
}

.shop-item:hover .shop-item-name::after {
  width: 50px;
}

.shop-item-img-container {
  width: 160px;  /* Bigger image */
  height: 160px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #FFF8E1;
  border-radius: 50%;
  overflow: hidden;
  padding: 8px;
  box-shadow: 0 4px 12px rgba(255, 204, 0, 0.12);
  position: relative;
}

.shop-item-img-container::before { content: none; }

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

.shop-item:hover .shop-item-img-container::before {
  opacity: 1;
}

.shop-item:hover .shop-item-img-container {
  box-shadow: 0 8px 20px rgba(255, 204, 0, 0.25);
}

.shop-item-preview {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
  filter: drop-shadow(0 5px 5px rgba(0, 0, 0, 0.1));
}

.shop-item:hover .shop-item-preview { transform: none; }

.shop-price-btn-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 16px;
  padding: 0 5px;
}

.shop-price {
  display: flex;
  align-items: center;
  font-weight: 700;
  margin: 0;
  color: #333;
  position: relative;
}

.shop-price-icon {
  width: 22px; /* Larger price icon */
  margin-right: 6px;
}

@keyframes priceCoinPulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

.shop-buy-btn {
  background: linear-gradient(to right, #FFDF28, #FFDB89);
  border: none;
  padding: 12px 20px; /* Bigger button */
  font-weight: 700;
  border-radius: 50px;
  cursor: pointer;
  transition: background 0.2s ease, box-shadow 0.2s ease;
  color: #333;
  box-shadow: 0 4px 8px rgba(255, 204, 0, 0.2);
  width: auto;
  min-width: 100px;
  position: relative;
  overflow: hidden;
  z-index: 10 !important;
  font-size: 0.95rem;
}

.shop-buy-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transition: all 0.5s ease;
  pointer-events: none !important;
}

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

.shop-buy-btn:hover {
  background: linear-gradient(to right, #FFE74C, #FFDB89);
  box-shadow: 0 6px 12px rgba(255, 204, 0, 0.25);
}

.shop-buy-btn.owned {
  background: #f0f0f0;
  color: #999;
  box-shadow: none;
  cursor: default;
}

.shop-no-items {
  text-align: center;
  padding: 3rem;
  color: #6b7280;
  font-size: 1.1rem;
  background: #f9fafb;
  border-radius: 16px;
  margin-top: 2rem;
  position: relative;
  overflow: hidden;
}

.shop-no-items::after {
  content: '😢';
  font-size: 2rem;
  display: block;
  margin-top: 1rem;
  animation: bounce 2s ease infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-20px);
  }
  60% {
    transform: translateY(-10px);
  }
}

/* Enhanced Inventory Styles with Animations */
.inv-container {
  font-family: 'Poppins', sans-serif;
  padding: 2.5rem; /* Larger spacing */
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

/* Floating particles background */
.inv-container::before { content: none; }

@keyframes floatParticlesInv {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: 30px 30px;
  }
}

.inv-header {
  font-size: 2.2rem; /* Bigger title */
  text-align: center;
  margin-bottom: 2rem;
  font-weight: 700;
  position: relative;
}

.inv-header span {
  background: linear-gradient(to right, #56CFD4, #0075BE);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  padding: 0.5rem 1rem;
  position: relative;
  display: inline-block;
}

@keyframes invHeaderPulse {
  0%, 100% {
    transform: scale(1);
    text-shadow: 0 0 10px rgba(86, 207, 212, 0.3);
  }
  50% {
    transform: scale(1.03);
    text-shadow: 0 0 20px rgba(86, 207, 212, 0.5);
  }
}

.inv-header span::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 50%;
  width: 80px;
  height: 3px;
  background: linear-gradient(to right, #56CFD4, #0075BE);
  transform: translateX(-50%);
  border-radius: 3px;
}

@keyframes invUnderlinePulse {
  0%, 100% {
    width: 80px;
    opacity: 0.8;
  }
  50% {
    width: 100px;
    opacity: 1;
  }
}

.inv-filter-tabs {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.inv-tab {
  background: white;
  border: none;
  padding: 12px 28px; /* Bigger tabs */
  font-weight: 600;
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  color: #333;
  box-shadow: 0 2px 6px rgba(86, 207, 212, 0.2);
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
  overflow: hidden;
}

.inv-tab svg {
  width: 16px;
  height: 16px;
  transition: all 0.3s ease;
}

.inv-tab::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(115, 255, 178, 0.2), transparent);
  transition: all 0.5s ease;
}

.inv-tab:hover::before {
  left: 100%;
}

.inv-tab.active {
  background: linear-gradient(to right, #73FFb2, #99ffc7);
  color: #065F46;
  box-shadow: 0 4px 12px rgba(115, 255, 178, 0.3);
  transform: translateY(-2px);
}

.inv-tab:hover svg,
.inv-tab.active svg {
  transform: none;
}

.inv-items-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); /* Bigger cards */
  grid-gap: 28px;
  gap: 28px;
  padding: 0 10px;
}

.inv-item {
  background: white;
  padding: 24px; /* Larger card padding */
  border-radius: 16px;
  text-align: center;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
  border: 1px solid rgba(115, 255, 178, 0.25);
  position: relative;
  overflow: hidden;
}

.inv-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(to right, #73FFb2, #99ffc7);
}

.inv-item:hover {
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.10);
  border-color: rgba(115, 255, 178, 0.5);
}

.inv-item::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.3) 0%, transparent 50%, transparent 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.inv-item:hover::after {
  opacity: 1;
}

.inv-item-name {
  font-weight: 700;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  min-height: 2.8em;
  line-height: 1.4em;
  height: 2.8em;
  text-align: center;
  padding: 0 5px;
  color: #065F46;
  position: relative;
}

.inv-item-name::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(to right, #73FFb2, #99ffc7);
  transform: translateX(-50%);
  transition: width 0.3s ease;
}

.inv-item:hover .inv-item-name::after {
  width: 50px;
}

.inv-item-img-container {
  width: 160px; /* Bigger image */
  height: 160px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #E6FFF2;
  border-radius: 50%;
  overflow: hidden;
  padding: 8px;
  box-shadow: 0 4px 12px rgba(115, 255, 178, 0.12);
  position: relative;
}

.inv-item-img-container::before { content: none; }

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

.inv-item:hover .inv-item-img-container::before {
  opacity: 1;
}

.inv-item:hover .inv-item-img-container {
  box-shadow: 0 8px 20px rgba(115, 255, 178, 0.25);
}

.inv-item-preview {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
  filter: drop-shadow(0 5px 5px rgba(0, 0, 0, 0.1));
}

.inv-item:hover .inv-item-preview { transform: none; }

.inv-btn-container {
  margin-top: 16px;
}

.inv-action-btn {
  background: linear-gradient(to right, #73FFb2, #99ffc7);
  border: none;
  padding: 12px 20px; /* Bigger button */
  font-weight: 700;
  border-radius: 50px;
  cursor: pointer;
  transition: background 0.2s ease, box-shadow 0.2s ease;
  color: #065F46;
  box-shadow: 0 4px 8px rgba(115, 255, 178, 0.2);
  width: auto;
  min-width: 110px;
  position: relative;
  overflow: hidden;
  font-size: 0.95rem;
}

.inv-action-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transition: all 0.5s ease;
}

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

.inv-action-btn:hover {
  background: linear-gradient(to right, #8AFFBE, #ADFFD0);
  box-shadow: 0 6px 12px rgba(115, 255, 178, 0.25);
}

.inv-action-btn.in-use {
  background: #f0f0f0;
  color: #999;
  box-shadow: none;
  cursor: default;
}

.inv-no-items {
  text-align: center;
  padding: 3rem;
  color: #6b7280;
  font-size: 1.1rem;
  background: #f9fafb;
  border-radius: 16px;
  margin-top: 2rem;
  position: relative;
  overflow: hidden;
}

.inv-no-items::after {
  content: '🔍';
  font-size: 2rem;
  display: block;
  margin-top: 1rem;
}

/* ... existing code ... */

/* Animation for equipping items */
.equip-effect {
  animation: equipPulse 1.5s ease-out;
}

@keyframes equipPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(115, 255, 178, 0.7);
  }
  70% {
    box-shadow: 0 0 0 20px rgba(115, 255, 178, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(115, 255, 178, 0);
  }
}

/* Animation for buying items */
.animate-coins .shop-coin-icon {
  animation: coinBounce 1.5s ease;
}

@keyframes coinBounce {
  0% {
    transform: scale(1);
  }
  20% {
    transform: scale(1.5);
  }
  40% {
    transform: scale(0.8);
  }
  60% {
    transform: scale(1.2);
  }
  80% {
    transform: scale(0.9);
  }
  100% {
    transform: scale(1);
  }
}

/* Confetti effect for successful actions */
.confetti {
  position: absolute;
  width: 10px;
  height: 10px;
  background-color: #f00;
  opacity: 0;
}

.confetti-animation {
  animation: confetti-fall 3s ease-out forwards;
}

@keyframes confetti-fall {
  0% {
    transform: translateY(0) rotate(0deg);
    opacity: 1;
  }
  100% {
    transform: translateY(200px) rotate(720deg);
    opacity: 0;
  }
}

/* Tooltip animations */
.shop-tooltip, .inv-tooltip {
  animation: none; /* Reduce motion */
}

@keyframes tooltipFadeIn {
  from {
    opacity: 0;
    transform: translate(-50%, -90%);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -100%);
  }
}

/* Hover effects for buttons */
.gen-control-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

/* ... existing code ... */
/* Assessments */
.assessment-tabs {
  display: flex;
  gap: 32px;
  border-bottom: 1px solid #e0e0e0;
}

.assessment-tab {
  padding: 12px 4px;
  background: none;
  border: none;
  color: #666;
  cursor: pointer;
  position: relative;
  font-size: 14px;
  transition: color 0.2s ease;
  text-decoration: none;
  border-bottom: 2px solid transparent;
}

.assessment-tab.active {
  color: #00bcd4;
  border-bottom: 2px solid #00bcd4;
}

.assessment-tab:hover {
  color: #00bcd4;
}

.quiz-list {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  padding: 20px;
  min-height: 100vh;
}

.quiz-list-headers {
  display: grid;
  grid-template-columns: 60px 1fr 2fr 1fr;
  padding: 16px 24px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
}

.arrow-back {
  margin-right: 5px;
  width: 14px;
  heigh: 14px;
}
.quiz-space {
  width: 60px;
}

.quiz-header-title,
.quiz-header-topic,
.quiz-header-date {
  display: flex;
  align-items: center;
}

.quiz-item-clickable, .flashcard-card-clickable {
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.quiz-item-clickable:hover, .flashcard-card-clickable:hover {
  background-color: rgba(0, 224, 233, 0.05);
}

.quiz-item.dropdown-active {
  z-index: 9999 !important;
  position: relative;
}
/* Enhanced Take Quiz Modal Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  animation: overlayFadeIn 0.2s ease-out;
}

.take-quiz-modal {
  background: white;
  border-radius: 18px;
  padding: 40px;
  max-width: 520px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  position: relative;
  animation: modalSlideIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  border: 1px solid #e5e7eb;
}

.close-btn {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  font-size: 24px;
  color: #6b7280;
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  transition: all 0.2s ease;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.close-btn:hover {
  background: #f3f4f6;
  color: #374151;
  transform: scale(1.1);
}

.take-quiz-content {
  text-align: center;
  margin-top: 8px;
}

.take-quiz-title {
  font-size: 28px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 8px;
  line-height: 1.3;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.take-quiz-topic {
  font-size: 16px;
  color: #00E0E9;
  font-weight: 500;
  margin-bottom: 32px;
  padding: 6px 16px;
  background: rgba(0, 224, 233, 0.1);
  border-radius: 20px;
  display: inline-block;
}

.take-quiz-details {
  text-align: left;
  background: #f8f9fa;
  padding: 24px;
  border-radius: 12px;
  margin-bottom: 32px;
  border: 1px solid #e5e7eb;
}

.take-quiz-details p {
  margin: 12px 0;
  font-size: 15px;
  color: #374151;
  display: flex;
  align-items: center;
  gap: 8px;
}

.take-quiz-details p:first-child {
  margin-top: 0;
}

.take-quiz-details p:last-child {
  margin-bottom: 0;
}

.take-quiz-details strong {
  font-weight: 600;
  color: #1a1a1a;
  min-width: 140px;
  display: inline-block;
}

/* Add icons to details */
.take-quiz-details p:nth-child(1)::before {
  margin-right: 8px;
  font-size: 16px;
}

.take-quiz-details p:nth-child(2)::before {
  margin-right: 8px;
  font-size: 16px;
}

.take-quiz-details p:nth-child(3)::before {
  margin-right: 8px;
  font-size: 16px;
}

.take-quiz-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-top: 8px;
}

.take-quiz-start-btn {
  background: #00E0E9;
  color: white;
  border: none;
  padding: 14px 32px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(0, 224, 233, 0.3);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  min-width: 120px;
}

.take-quiz-start-btn:hover {
  background: #00c5cc;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 224, 233, 0.4);
}

.take-quiz-start-btn:active {
  transform: translateY(0);
}

.take-quiz-cancel-btn {
  background: #f8f9fa;
  color: #6b7280;
  border: 1px solid #e5e7eb;
  padding: 14px 32px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  min-width: 120px;
}

.take-quiz-cancel-btn:hover {
  background: #f3f4f6;
  color: #374151;
  border-color: #d1d5db;
  transform: translateY(-1px);
}

.take-quiz-cancel-btn:active {
  transform: translateY(0);
}

/* Enhanced animations */
@keyframes overlayFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-40px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Responsive design */
@media (max-width: 600px) {
  .take-quiz-modal {
    padding: 24px;
    max-width: 95%;
    margin: 20px;
  }
  
  .take-quiz-title {
    font-size: 24px;
  }
  
  .take-quiz-actions {
    flex-direction: column;
    gap: 12px;
  }
  
  .take-quiz-start-btn,
  .take-quiz-cancel-btn {
    width: 100%;
    min-width: 0;
    min-width: initial;
  }
  
  .take-quiz-details {
    padding: 20px;
  }
  
  .take-quiz-details strong {
    min-width: 120px;
  }
}

.quiz-item {
  display: grid;
  grid-template-columns: 60px 1fr 2fr 1fr;
  padding: 24px;
  background-color: #ffffff;
  border-radius: 18px;
  margin-bottom: 16px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  align-items: center;
  transition: all 0.2s ease;
  position: relative; 
  cursor: pointer;
}
.archived-flashcard,
.archived-quiz-item {
  background-color: #F6F7FB;
}
.quiz-item:hover {
    background-color: #f8f8fc;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transform: translateY(-1px);
}

.quiz-icon {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 60px;
}

.quiz-title {
  display: flex;
  align-items: center;
}

.quiz-title p {
  margin: 0;
  font-size: 15px;
  font-weight: 500;
  color: #374151;
}

.quiz-type {
  display: flex;
  align-items: center;
}

.quiz-type p {
  margin: 0;
  font-size: 15px;
  color: #6b7280;
}

.quiz-info {
  width: calc(40% - 55px);
  display: flex;
  align-items: center;
  gap: 10px;
}

.quiz-info h3 {
  margin: 0;
  font-size: 1rem;
}

.quiz-info p {
  margin: 0;
  font-size: 0.9rem;
  color: #888;
}

.quiz-date-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  gap: 12px;
}

.quiz-date-text {
  font-size: 14px;
  flex: 1 1;
  text-align: left;
}

.more-btn {
  background: none;
  border: none;
  padding: 0 8px;
  font-size: 20px;
  cursor: pointer;
  position: relative;
}

.popup-menu {
  position: absolute;
  top: calc(100% + 5px);
  right: 0;
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  min-width: 120px;
  z-index: 1000;
}

.menu-options {
  display: flex;
  flex-direction: column;
  padding: 4px;
}

.dropdown-item {
  background: none;
  border: none;
  padding: 8px 16px;
  color: #333;
  cursor: pointer;
  text-align: left;
  border-radius: 4px;
  transition: background-color 0.2s;
  width: 100%;
}

.dropdown-item:hover {
  background-color: #f5f5f5;
}

.edit-btn {
  background-color: #f5f5f5;
  color: #333;
}

.more-btn {
  background: none;
  padding: 0 8px;
  font-size: 20px;
}

button:hover {
  opacity: 0.9;
}

.create-btn-container {
  position: relative;
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}


.create-popup {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  padding: 40px;
  width: 500px;
  position: relative;
  opacity: 1;
  animation: fadeIn 0.2s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.create-popup-title {
  font-size: 24px;
  font-weight: 600;
  color: #333;
}

.close-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  background: none;
  border: none;
  font-size: 24px;
  color: #666;
  cursor: pointer;
  padding: 4px 8px;
  line-height: 1;
}

.close-btn:hover {
  color: #333;
}

.create-popup h2 {
  text-align: center;
  margin-bottom: 24px;
  font-size: 16px;
  font-weight: 600;
  color: #333;
}

.create-options {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 24px;
}

.create-option {
  flex: 1 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 24px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  min-width: 80px;
}

.create-option:hover {
  border-color: #00bcd4;
  background-color: #f5fdff;
}

.understand-icon {
  width: 50px;
}

.option-icon { 
  width: 80px; 
  height: 80px; 
  border-radius: 8px; 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  font-size: 20px; 
  color: white; 
  margin-bottom: 4px; 
  position: relative; 
} 

.wand-container { 
  position: absolute; 
  top: -8px; 
  right: -8px; 
  width: 20px; 
  height: 20px; 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  background: #fff; 
  border-radius: 50%; 
  padding: 2px; 
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); 
} 

.wand-icon { 
  width: 90%; 
  height: 90%; 
}

.create-option span {
  font-size: 16px;
  font-weight: 600;
  text-align: center;
  color: #333;
}

.continue-btn {
  width: 30%;
  background-color: #00bcd4;
  color: white;
  padding: 10px;
  border-radius: 34px;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: 0px;
}

.continue-btn:hover {
  background-color: #00acc1;
}

/* CreateQuiz */
.cq-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  background-color: #f8f9fa;
  min-height: 100vh;
}

.cq-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

.cq-title {
  font-size: x-large;
  font-weight: 600;
  color: #00bcd4;
  margin: 0;
}

.cq-create-btn {
  background: linear-gradient(135deg, #00d4ff, #00b8e6);
  color: white;
  padding: 12px 30px;
  font-size: 16px;
  font-weight: 600;
}

.cq-create-btn:hover {
  background: linear-gradient(135deg, #00b8e6, #0099cc);
}

.cq-form-section {
  background: white;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  margin-bottom: 25px;
}

.cq-form-row {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
}

.cq-form-row:last-child {
  margin-bottom: 0;
}

.cq-form-group {
  flex: 1 1;
  display: flex;
  flex-direction: column;
}

.cq-topic-group {
  flex: 2 1;
}

.cq-time-group {
  flex: 0 0 200px;
}

.cq-label {
  font-size: 12px;
  font-weight: 600;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
  text-align: left;
}

.cq-input {
  padding: 12px 16px;
  border: 2px solid #e1e5e9;
  border-radius: 8px;
  font-size: 14px;
  transition: border-color 0.3s ease;
  background: #f8f9fa;
}

.cq-input:focus {
  outline: none;
  border-color: #00d4ff;
  background: white;
}

.cq-textarea {
  padding: 12px 16px;
  border: 2px solid #e1e5e9;
  border-radius: 8px;
  font-size: 14px;
  resize: vertical;
  min-height: 80px;
  font-family: inherit;
  transition: border-color 0.3s ease;
  background: #f8f9fa;
}

.cq-textarea:focus {
  outline: none;
  border-color: #00d4ff;
  background: white;
}

.cq-time-input {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cq-time-number {
  padding: 12px 16px;
  border: 2px solid #e1e5e9;
  border-radius: 8px;
  font-size: 14px;
  width: 80px;
  text-align: center;
  background: #f8f9fa;
  transition: border-color 0.3s ease;
}

.cq-time-number:focus {
  outline: none;
  border-color: #00d4ff;
  background: white;
}

.cq-time-unit {
  font-size: 14px;
  color: #666;
  font-weight: 500;
}

.cq-questions-section {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.cq-question-card {
  background: white;
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border: 1px solid #e1e5e9;
}

.cq-question-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid #e1e5e9;
}

.cq-question-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cq-drag-handle {
  color: #999;
  cursor: grab;
}

.cq-drag-handle:active {
  cursor: grabbing;
}

.cq-question-number {
  font-size: 18px;
  font-weight: 600;
  color: #333;
}

.cq-question-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cq-question-type-select {
  padding: 8px 12px;
  border: 2px solid #e1e5e9;
  border-radius: 6px;
  font-size: 14px;
  background: white;
  cursor: pointer;
  transition: border-color 0.3s ease;
}

.cq-question-type-select:focus {
  outline: none;
  border-color: #00d4ff;
}

.cq-delete-question {
  background: #ff4757;
  color: white;
  border: none;
  border-radius: 6px;
  padding: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cq-delete-question:hover {
  background: #ff3838;
  transform: scale(1.05);
}

.cq-question-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.cq-question-input-group {
  display: flex;
  flex-direction: column;
}

.cq-question-input {
  padding: 15px 18px;
  border: 2px solid #e1e5e9;
  border-radius: 8px;
  font-size: 16px;
  transition: border-color 0.3s ease;
  background: #f8f9fa;
}

.cq-question-input:focus {
  outline: none;
  border-color: #00d4ff;
  background: white;
}

/* Multiple Choice Styles */
.cq-options-section {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.cq-options-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  grid-gap: 15px;
  gap: 15px;
}

.cq-option-item {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
}

.cq-option-label {
  width: 40px;
  height: 40px;
  min-width: 40px;
  min-height: 40px;
  border-radius: 8px;
  border: 2px solid #e1e5e9;
  background: white;
  color: #666;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cq-option-label:hover {
  border-color: #00d4ff;
  background: #f0fcff;
}

.cq-option-label.cq-correct {
  background: #00d4ff;
  color: white;
  border-color: #00d4ff;
}

.cq-option-input {
  flex: 1 1;
  min-width: 0;
  padding: 12px 16px;
  border: 2px solid #e1e5e9;
  border-radius: 8px;
  font-size: 14px;
  transition: border-color 0.3s ease;
  background: #f8f9fa;
}

.cq-option-input:focus {
  outline: none;
  border-color: #00d4ff;
  background: white;
}

.cq-remove-option {
  background: #ff4757;
  color: white;
  border: none;
  border-radius: 6px;
  padding: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-left: auto;
}

.cq-remove-option:hover {
  background: #ff3838;
}

.cq-option-actions {
  display: flex;
  justify-content: flex-start;
}

.cq-add-option {
  background: #28a745;
  color: white;
  border: none;
  border-radius: 6px;
  padding: 8px 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
}

.cq-add-option:hover {
  background: #218838;
}

/* True/False Styles */
.cq-tf-options {
  display: flex;
  gap: 15px;
}

.cq-tf-option {
  padding: 15px 30px;
  border: 2px solid #e1e5e9;
  border-radius: 8px;
  background: white;
  color: #666;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.cq-tf-option:hover {
  border-color: #00d4ff;
  background: #f0fcff;
}

.cq-tf-option.cq-correct {
  background: #00d4ff;
  color: white;
  border-color: #00d4ff;
}

/* Identification Styles */
.cq-identification-answer {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cq-answer-label {
  font-size: 14px;
  font-weight: 600;
  color: #333;
}

.cq-answer-input {
  padding: 12px 16px;
  border: 2px solid #e1e5e9;
  border-radius: 8px;
  font-size: 14px;
  transition: border-color 0.3s ease;
  background: #f8f9fa;
}

.cq-answer-input:focus {
  outline: none;
  border-color: #00d4ff;
  background: white;
}

/* Matching Styles */
.cq-matching-section {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.cq-matching-headers {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  grid-gap: 15px;
  gap: 15px;
  margin-bottom: 10px;
}

.cq-matching-header {
  font-weight: 600;
  color: #333;
  font-size: 14px;
  text-align: center;
}

.cq-matching-pair {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  grid-gap: 15px;
  gap: 15px;
  align-items: center;
}

.cq-matching-input {
  padding: 12px 16px;
  border: 2px solid #e1e5e9;
  border-radius: 8px;
  font-size: 14px;
  transition: border-color 0.3s ease;
  background: #f8f9fa;
}

.cq-matching-input:focus {
  outline: none;
  border-color: #00d4ff;
  background: white;
}

.cq-remove-pair {
  background: #ff4757;
  color: white;
  border: none;
  border-radius: 6px;
  padding: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cq-remove-pair:hover {
  background: #ff3838;
}

.cq-add-pair {
  background: #28a745;
  color: white;
  border: none;
  border-radius: 6px;
  padding: 10px 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  align-self: flex-start;
}

.cq-add-pair:hover {
  background: #218838;
}

/* Enumeration Styles */
.cq-enumeration-section {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.cq-enumeration-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cq-enum-number {
  font-weight: 600;
  color: #333;
  min-width: 20px;
}

.cq-enum-input {
  flex: 1 1;
  padding: 12px 16px;
  border: 2px solid #e1e5e9;
  border-radius: 8px;
  font-size: 14px;
  transition: border-color 0.3s ease;
  background: #f8f9fa;
}

.cq-enum-input:focus {
  outline: none;
  border-color: #00d4ff;
  background: white;
}

.cq-remove-enum {
  background: #ff4757;
  color: white;
  border: none;
  border-radius: 6px;
  padding: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cq-remove-enum:hover {
  background: #ff3838;
}

.cq-add-enum {
  background: #28a745;
  color: white;
  border: none;
  border-radius: 6px;
  padding: 10px 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  align-self: flex-start;
}

.cq-add-enum:hover {
  background: #218838;
}

/* Add Question Button */
.cq-add-question {
  background: linear-gradient(135deg, #f0f0f0, #e0e0e0);
  color: #666;
  border: 2px dashed #ccc;
  border-radius: 12px;
  padding: 20px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  margin-top: 10px;
}

.cq-add-question:hover {
  background: linear-gradient(135deg, #e8f4fd, #d1ecf1);
  border-color: #00d4ff;
  color: #00d4ff;
  transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 768px) {
  .cq-container {
    padding: 15px;
  }
  
  .cq-header {
    flex-direction: column;
    gap: 15px;
    align-items: stretch;
  }
  
  .cq-title {
    font-size: 24px;
    text-align: center;
  }
  
  .cq-form-row {
    flex-direction: column;
  }
  
  .cq-time-group {
    flex: 1 1;
  }
  
  .cq-options-grid {
    grid-template-columns: 1fr;
  }
  
  .cq-tf-options {
    flex-direction: column;
  }
  
  .cq-matching-headers,
  .cq-matching-pair {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  
  .cq-matching-headers {
    display: none;
  }
  
  .cq-question-header {
    flex-direction: column;
    gap: 15px;
    align-items: stretch;
  }
  
  .cq-question-controls {
    justify-content: center;
  }
  
  .cq-question-actions {
    justify-content: space-between;
  }

  .cq-option-item {
    flex-wrap: wrap;
  }
  
  .cq-option-input {
    width: 100%;
    order: 3; /* Moves input below label and remove button */
    margin-top: 8px;
  }
  
  .cq-remove-option {
    margin-left: 0;
  }
}

/* Animation for smooth transitions */
.cq-question-card {
  animation: slideIn 0.3s ease-out;
}

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

/* Focus states for accessibility */
.cq-create-btn:focus,
.cq-question-type-select:focus,
.cq-delete-question:focus,
.cq-option-label:focus,
.cq-add-option:focus,
.cq-remove-option:focus,
.cq-tf-option:focus,
.cq-add-pair:focus,
.cq-remove-pair:focus,
.cq-add-enum:focus,
.cq-remove-enum:focus,
.cq-add-question:focus {
  outline: 2px solid #00d4ff;
  outline-offset: 2px;
}

/* Hover effects for interactive elements */
.cq-drag-handle:hover {
  color: #666;
}

.cq-question-type-select:hover {
  border-color: #00d4ff;
}

/* Loading state for create button */
.cq-create-btn:disabled {
  background: #ccc;
  cursor: not-allowed;
  transform: none;
}

/* Custom scrollbar for textarea */
.cq-textarea::-webkit-scrollbar {
  width: 8px;
}

.cq-textarea::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

.cq-textarea::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 4px;
}

.cq-textarea::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}


.flashcards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-gap: 16px;
  gap: 16px;
  margin: 20px auto 0 auto;
  max-width: 1200px;
  justify-content: center;
}

/* Individual Flashcard Card */
.flashcard-card {
  background-color: #ffffff;
  border-radius: 18px;
  padding: 16px;
  transition: all 0.2s ease;
  cursor: pointer;
  position: relative;
  display: flex;
  flex-direction: column;
  height: fit-content;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.flashcard-card:hover {
    background-color: #f8f8fc;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transform: translateY(-1px);
}

/* Flashcard Header */
.flashcard-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 4px;
}

.flashcard-title {
  font-size: 16px;
  font-weight: 500;
  color: #202124;
  margin: 0;
  line-height: 1.3;
}

.flashcard-menu-btn {
  background: none;
  border: none;
  color: #9aa0a6;
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  transition: all 0.2s ease;
  margin: -4px -4px 0 0;
}

.flashcard-menu-btn:hover {
  color: #5f6368;
  background: rgba(0, 0, 0, 0.04);
}

/* Flashcard Description */
.flashcard-description {
  color: #5f6368;
  font-size: 14px;
  margin: 0 0 12px 0;
  line-height: 1.3;
  font-weight: 400;
  text-align: left;
}

/* Flashcard Footer */
.flashcard-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0;
}

.flashcard-date {
  color: #9aa0a6;
  font-size: 12px;
  margin-bottom: -40px;
  font-weight: 400;
}

/* Cards Count */
.flashcard-count {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: white;
  border: 1px solid #dadce0;
  border-radius: 50%;
  padding: 8px;
  width: 48px;
  height: 48px;
  justify-content: center;
}

.count-number {
  font-size: 16px;
  font-weight: 600;
  color: #202124;
  line-height: 1;
  margin-bottom: 1px;
}

.count-label {
  font-size: 10px;
  color: #9aa0a6;
  font-weight: 400;
  line-height: 1;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .flashcards-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    max-width: 700px;
  }
}

@media (max-width: 768px) {
  .flashcards-grid {
    grid-template-columns: 1fr;
    gap: 12px;
    max-width: 100%;
  }
  
  .flashcard-card {
    padding: 14px;
  }
}

@media (max-width: 480px) {
  .flashcard-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  
  .flashcard-count {
    align-self: flex-end;
  }
}

/* CreateFlashcard */

/* CreateFlashcard */
.cf-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  background-color: #f8f9fa;
  min-height: 100vh;
}
.cf-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  padding: 0 20px;
}

/* Games */
.games-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    grid-gap: 20px;
    gap: 20px;
    margin-top: 20px;
}

.people {
    position: relative;
    bottom: 20px;
}

.games-card {
    background-color: #f8f9fa;
    border-radius: 18px;
      box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    position: relative;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
    height: 100%;
    margin: 0px 8px 8px 0px;
}

.games-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.games-card-header {
    background: linear-gradient(135deg, #00d4ff, #00b8e6);
    height: 60px;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    position: relative;
}

.games-card-users-icon {
    position: absolute;
    bottom: -21px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #00d4ff, #00b8e6);
    border-radius: 50%;
    width: 100%;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.games-card-content {
    padding: 24px 16px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-grow: 1;
}

.games-card-icon {
    margin-top: 10px;
    margin-bottom: 16px;
}

.games-card-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0 0 8px;
    text-align: center;
}

.games-card-description {
    font-size: 14px;
    color: #666;
    text-align: center;
    margin: 0;
}

.games-card-actions {
    position: absolute;
    top: 10px;
    right: 10px;
}

.games-card-more-btn {
    background: none;
    border: none;
    color: #333;
    font-size: 20px;
    cursor: pointer;
    padding: 5px;
}

.games-card-more-btn:hover {
    color: #000;
}

/* Games Join button styling */
.games-join-btn {
    background-color: #10b981;
    color: white;
    border: none;
    padding: 8px 20px;
    margin-left: 15px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease;
    margin-right: 10px;
}

.games-join-btn:hover {
    background-color: #059669;
    transform: translateY(-1px);
}

.games-join-btn:active {
    transform: translateY(0);
}

/* Games Join Modal specific styling */
.games-join-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    outline: none;
    transition: border-color 0.2s ease;
    text-align: center;
    letter-spacing: 2px;
    font-weight: 600;
    font-family: 'Courier New', monospace;
    box-sizing: border-box; /* Ensure consistent sizing */
}

.games-join-input:focus {
    border-color: #5EBFCB;
    box-shadow: 0 0 0 3px rgba(94, 191, 203, 0.1);
}

.games-join-input::placeholder {
    color: #9ca3af;
    font-weight: normal;
    letter-spacing: normal;
}

.games-join-button {
    width: 100%;
    padding: 12px 24px;
    background-color: #5EBFCB;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-sizing: border-box; /* Ensure consistent sizing */
}

.games-join-button:hover {
    background-color: #4a9ca6;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(94, 191, 203, 0.3);
}

.games-join-button:active {
    transform: translateY(0);
}

.games-join-button:disabled {
    background-color: #9ca3af;
    cursor: not-allowed;
    transform: none;
}

/* Games form label styling */
.games-form-label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
}
/* Create Flashcard Form Styles */
.cf-form-section {
  background: white;
  padding: 25px 25px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  margin-bottom: 25px;
  margin-left: 20px;
  margin-right: 20px;
}

.cf-form-row {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
}

.cf-form-row:last-child {
  margin-bottom: 0;
}

.cf-form-group {
  flex: 1 1;
  display: flex;
  flex-direction: column;
}

.cf-topic-group {
  margin-top: 25px;
  flex: 2 1;
}

.cf-label {
  font-size: 12px;
  font-weight: 600;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
  text-align: left;
}

.cf-input {
  padding: 12px 16px;
  border: 2px solid #e1e5e9;
  border-radius: 8px;
  font-size: 14px;
  transition: border-color 0.3s ease;
  background: #f8f9fa;
}

.cf-input:focus {
  outline: none;
  border-color: #00d4ff;
  background: white;
}

.cf-textarea {
  padding: 12px 16px;
  border: 2px solid #e1e5e9;
  border-radius: 8px;
  font-size: 14px;
  resize: vertical;
  min-height: 80px;
  font-family: inherit;
  transition: border-color 0.3s ease;
  background: #f8f9fa;
  margin-bottom: 25px;
}

.cf-textarea:focus {
  outline: none;
  border-color: #00d4ff;
  background: white;
}

.cf-title {
  font-size: x-large;
  font-weight: 600;
  color: #00bcd4;
  margin: 0;
}

.cf-create-btn {
  background: linear-gradient(135deg, #00d4ff, #00b8e6);
  color: white;
  padding: 12px 30px;
  font-size: 16px;
  font-weight: 600;
}

.cf-create-btn:hover {
  background: linear-gradient(135deg, #00b8e6, #0099cc);
}

.cf-form-section {
  padding: 0 20px;
  margin-bottom: 30px;
}

.cf-basic-info {
  background: white;
  padding: 0;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  border: 1px solid #e1e5e9;
}

.cf-title-input {
  width: 100%;
  padding: 20px 25px;
  border: none;
  border-bottom: 1px solid #e1e5e9;
  font-size: 16px;
  font-weight: 500;
  background: white;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.cf-title-input:focus {
  outline: none;
  background: #f8f9fa;
  border-bottom-color: #00d4ff;
}

.cf-title-input::placeholder {
  color: #999;
  font-weight: 400;
}

.cf-description-input {
  width: 100%;
  padding: 20px 25px;
  border: none;
  font-size: 16px;
  font-weight: 400;
  background: white;
  resize: vertical;
  min-height: 80px;
  font-family: inherit;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.cf-description-input:focus {
  outline: none;
  background: #f8f9fa;
}

.cf-description-input::placeholder {
  color: #999;
}

.cf-cards-section {
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-left: 20px;
  margin-right: 20px;
}

.cf-card-item {
  background: white;
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border: 1px solid #e1e5e9;
  animation: slideIn 0.3s ease-out;
}

.cf-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
}

.cf-card-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cf-drag-handle {
  color: #999;
  cursor: grab;
}

.cf-drag-handle:active {
  cursor: grabbing;
}

.cf-card-number {
  font-size: 24px;
  font-weight: 600;
  color: #333;
  min-width: 20px;
}

.cf-delete-card {
  background: #ff4757;
  color: white;
  border: none;
  border-radius: 6px;
  padding: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cf-delete-card:hover {
  background: #ff3838;
  transform: scale(1.05);
}

.cf-card-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-gap: 30px;
  gap: 30px;
}

.cf-card-side {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cf-side-header {
  margin-bottom: 8px;
}

.cf-side-label {
  font-size: 12px;
  font-weight: 600;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.cf-input-container {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.cf-side-input {
  padding: 15px 18px;
  border: 2px solid #e1e5e9;
  border-radius: 8px;
  font-size: 16px;
  transition: border-color 0.3s ease;
  background: #f8f9fa;
  width: 100%;
  box-sizing: border-box;
}

.cf-side-input:focus {
  outline: none;
  border-color: #00d4ff;
  background: white;
}

.cf-side-input::placeholder {
  color: #999;
}

.cf-image-upload-area {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60px;
}

.cf-image-upload-button {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border: 2px dashed #ccc;
  border-radius: 8px;
  background: #f8f9fa;
  color: #666;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
}

.cf-image-upload-button:hover {
  border-color: #00d4ff;
  background: #f0fcff;
  color: #00d4ff;
}

.cf-image-preview {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 15px;
  border: 2px solid #e1e5e9;
  border-radius: 8px;
  background: white;
  max-width: 100%;
}

.cf-preview-image {
  max-width: 150px;
  max-height: 100px;
  object-fit: cover;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.cf-remove-image {
  position: absolute;
  top: 8px;
  right: 8px;
  background: #ff4757;
  color: white;
  border: none;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.cf-remove-image:hover {
  background: #ff3838;
  transform: scale(1.1);
}

.cf-image-name {
  font-size: 12px;
  color: #666;
  text-align: center;
  max-width: 150px;
  word-break: break-all;
  line-height: 1.3;
}

.cf-add-card {
  background: linear-gradient(135deg, #f0f0f0, #e0e0e0);
  color: #666;
  border: 2px dashed #ccc;
  border-radius: 12px;
  padding: 20px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  margin-top: 10px;
}

.cf-add-card:hover {
  background: linear-gradient(135deg, #e8f4fd, #d1ecf1);
  border-color: #00d4ff;
  color: #00d4ff;
  transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 768px) {
  .cf-header {
    flex-direction: column;
    gap: 15px;
    align-items: stretch;
    padding: 0 15px;
  }
  
  .cf-title {
    font-size: 24px;
    text-align: center;
  }
  
  .cf-form-section,
  .cf-cards-section {
    padding: 0 15px;
  }
  
  .cf-card-content {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  
  .cf-card-header {
    flex-direction: column;
    gap: 15px;
    align-items: stretch;
  }
  
  .cf-card-controls {
    justify-content: center;
  }
  
  .cf-preview-image {
    max-width: 120px;
    max-height: 80px;
  }
  
  .cf-image-name {
    max-width: 120px;
  }
}

/* Animation for smooth transitions */
@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Focus states for accessibility */
.cf-create-btn:focus,
.cf-delete-card:focus,
.cf-image-upload-button:focus,
.cf-remove-image:focus,
.cf-add-card:focus {
  outline: 2px solid #00d4ff;
  outline-offset: 2px;
}

/* Hover effects for interactive elements */
.cf-drag-handle:hover {
  color: #666;
}

/* Loading state for create button */
.cf-create-btn:disabled {
  background: #ccc;
  cursor: not-allowed;
  transform: none;
}

/* Custom scrollbar for description textarea */
.cf-description-input::-webkit-scrollbar {
  width: 8px;
}

.cf-description-input::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

.cf-description-input::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 4px;
}

.cf-description-input::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}

/* Image upload input file styling */
input[type="file"] {
  display: none;
}

/* Enhanced visual feedback */
.cf-card-item:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  transform: translateY(-2px);
}

.cf-side-input:hover {
  border-color: #b3d9ff;
}

/* Prevent text selection on interactive elements */
.cf-drag-handle,
.cf-card-number,
.cf-side-label {
  -webkit-user-select: none;
          user-select: none;
}

/* Smooth transitions for all interactive elements */
* {
  transition: all 0.3s ease;
}

/* CreateGame */
.cg-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  background-color: #f8f9fa;
  min-height: 100vh;
}
.cg-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

.cg-title {
  font-size: x-large;
  font-weight: 600;
  color: #00bcd4;
  margin: 0;
}

.cg-create-btn {
  background: linear-gradient(135deg, #00d4ff, #00b8e6);
  color: white;
  padding: 12px 30px;
  font-size: 16px;
  font-weight: 600;
}

.cg-create-btn:hover {
  background: linear-gradient(135deg, #00b8e6, #0099cc);
}

.cg-form-section {
  background: white;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  margin-bottom: 25px;
}

.cg-form-row {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
}

.cg-form-row:last-child {
  margin-bottom: 0;
}

.cg-form-group {
  flex: 1 1;
  display: flex;
  flex-direction: column;
}

.cg-definition-group {
  flex: 2 1;
}

.cg-gamemode-group {
  flex: 0 0 250px;
}

.cg-label {
  font-size: 12px;
  font-weight: 600;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
  text-align: left;
}

.cg-input {
  padding: 12px 16px;
  border: 2px solid #e1e5e9;
  border-radius: 8px;
  font-size: 14px;
  transition: border-color 0.3s ease;
  background: #f8f9fa;
}

.cg-input:focus {
  outline: none;
  border-color: #00d4ff;
  background: white;
}

.cg-textarea {
  padding: 12px 16px;
  border: 2px solid #e1e5e9;
  border-radius: 8px;
  font-size: 14px;
  resize: vertical;
  min-height: 80px;
  font-family: inherit;
  transition: border-color 0.3s ease;
  background: #f8f9fa;
}

.cg-textarea:focus {
  outline: none;
  border-color: #00d4ff;
  background: white;
}

.cg-select {
  padding: 12px 16px;
  border: 2px solid #e1e5e9;
  border-radius: 8px;
  font-size: 14px;
  background: #f8f9fa;
  cursor: pointer;
  transition: border-color 0.3s ease;
}

.cg-select:focus {
  outline: none;
  border-color: #00d4ff;
  background: white;
}

/* Game Mode Settings */
.cg-mode-settings {
  background: white;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  margin-bottom: 25px;
  animation: slideIn 0.3s ease-out;
}

.cg-mode-title {
  font-size: 20px;
  font-weight: 600;
  color: #333;
  margin: 0 0 25px 0;
  padding-bottom: 15px;
  border-bottom: 2px solid #e1e5e9;
  position: relative;
}

.cg-mode-title::before {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 60px;
  height: 3px;
  background: linear-gradient(135deg, #00d4ff, #00b8e6);
  border-radius: 2px;
}

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

.cg-setting-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px;
  border: 1px solid #f0f0f0;
  border-radius: 8px;
  background: #fafbfc;
  transition: all 0.3s ease;
}

.cg-setting-group:hover {
  border-color: #e1e5e9;
  background: white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.cg-setting-label {
  font-size: 12px;
  font-weight: 600;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
  text-align: left;
}

.cg-time-input {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cg-time-number {
  padding: 12px 16px;
  border: 2px solid #e1e5e9;
  border-radius: 8px;
  font-size: 14px;
  width: 80px;
  text-align: center;
  background: #f8f9fa;
  transition: border-color 0.3s ease;
}

.cg-time-number:focus {
  outline: none;
  border-color: #00d4ff;
  background: white;
}

.cg-time-unit {
  font-size: 14px;
  color: #666;
  font-weight: 500;
  min-width: 40px;
}

/* Questions Section */
.cg-questions-section {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.cg-question-card {
  background: white;
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border: 1px solid #e1e5e9;
  animation: slideIn 0.3s ease-out;
}

.cg-question-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid #e1e5e9;
}

.cg-question-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cg-drag-handle {
  color: #999;
  cursor: grab;
}

.cg-drag-handle:active {
  cursor: grabbing;
}

.cg-question-number {
  font-size: 18px;
  font-weight: 600;
  color: #333;
}

.cg-delete-question {
  background: #ff4757;
  color: white;
  border: none;
  border-radius: 6px;
  padding: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cg-delete-question:hover {
  background: #ff3838;
  transform: scale(1.05);
}

.cg-question-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.cg-question-input {
  padding: 15px 18px;
  border: 2px solid #e1e5e9;
  border-radius: 8px;
  font-size: 16px;
  transition: border-color 0.3s ease;
  background: #f8f9fa;
}

.cg-question-input:focus {
  outline: none;
  border-color: #00d4ff;
  background: white;
}

/* Multiple Choice Options */
.cg-options-section {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.cg-options-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  grid-gap: 15px;
  gap: 15px;
}

.cg-option-item {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
}

.cg-option-label {
  width: 40px;
  height: 40px;
  min-width: 40px;
  min-height: 40px;
  border-radius: 8px;
  border: 2px solid #e1e5e9;
  background: white;
  color: #666;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cg-option-label:hover {
  border-color: #00d4ff;
  background: #f0fcff;
}

.cg-option-label.cg-correct {
  background: #00d4ff;
  color: white;
  border-color: #00d4ff;
}

.cg-option-input {
  flex: 1 1;
  min-width: 0;
  padding: 12px 16px;
  border: 2px solid #e1e5e9;
  border-radius: 8px;
  font-size: 14px;
  transition: border-color 0.3s ease;
  background: #f8f9fa;
}

.cg-option-input:focus {
  outline: none;
  border-color: #00d4ff;
  background: white;
}

.cg-remove-option {
  background: #ff4757;
  color: white;
  border: none;
  border-radius: 6px;
  padding: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-left: auto;
}

.cg-remove-option:hover {
  background: #ff3838;
}

.cg-option-actions {
  display: flex;
  justify-content: flex-start;
}

.cg-add-option {
  background: #28a745;
  color: white;
  border: none;
  border-radius: 6px;
  padding: 8px 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
}

.cg-add-option:hover {
  background: #218838;
}

.cq-add-question {
  background: linear-gradient(135deg, #f0f0f0, #e0e0e0);
  color: #666;
  border: 2px dashed #ccc;
  border-radius: 12px;
  padding: 20px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  margin-top: 10px;
}

.cg-add-question {
  background: linear-gradient(135deg, #f0f0f0, #e0e0e0);
  color: #666;
  border: 2px dashed #ccc;
  border-radius: 12px;
  padding: 20px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  margin-top: 10px;
}

.cg-add-question:hover {
  background: linear-gradient(135deg, #e8f4fd, #d1ecf1);
  border-color: #00d4ff;
  color: #00d4ff;
  transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 768px) {
  .cg-header {
    flex-direction: column;
    gap: 15px;
    align-items: stretch;
  }
  
  .cg-title {
    font-size: 24px;
    text-align: center;
  }
  
  .cg-form-row {
    flex-direction: column;
  }
  
  .cg-gamemode-group {
    flex: 1 1;
  }
  
  .cg-settings-grid {
    grid-template-columns: 1fr;
  }
  
  .cg-options-grid {
    grid-template-columns: 1fr;
  }
  
  .cg-question-header {
    flex-direction: column;
    gap: 15px;
    align-items: stretch;
  }
  
  .cg-question-controls {
    justify-content: center;
  }
}

/* Animation for smooth transitions */
@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Focus states for accessibility */
.cg-create-btn:focus,
.cg-delete-question:focus,
.cg-option-label:focus,
.cg-add-option:focus,
.cg-remove-option:focus,
.cg-add-question:focus {
  outline: 2px solid #00d4ff;
  outline-offset: 2px;
}

/* Hover effects for interactive elements */
.cg-drag-handle:hover {
  color: #666;
}

.cg-input:hover,
.cg-textarea:hover,
.cg-select:hover,
.cg-question-input:hover,
.cg-option-input:hover,
.cg-time-number:hover {
  border-color: #b3d9ff;
}

/* Loading state for create button */
.cg-create-btn:disabled {
  background: #ccc;
  cursor: not-allowed;
  transform: none;
}

/* Custom scrollbar for textarea */
.cg-textarea::-webkit-scrollbar {
  width: 8px;
}

.cg-textarea::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

.cg-textarea::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 4px;
}

.cg-textarea::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}

/* Enhanced visual feedback */
.cg-question-card:hover,
.cg-form-section:hover,
.cg-mode-settings:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  transform: translateY(-2px);
}

/* Prevent text selection on interactive elements */
.cg-drag-handle,
.cg-question-number,
.cg-label,
.cg-setting-label,
.cg-time-unit {
  -webkit-user-select: none;
          user-select: none;
}

/* Smooth transitions for all interactive elements */
* {
  transition: all 0.3s ease;
}

/* LiveLobby */
/* LiveLobby */
.ll-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 40px 20px;
  min-height: 100vh;
}

.ll-header {
  margin-bottom: 30px;
}

.ll-back-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  color: #6b7280;
  transition: background-color 0.2s, color 0.2s;
}

.ll-back-btn:hover {
  background-color: #e5e7eb;
  color: #374151;
}

.ll-content {
  background-color: white;
  border-radius: 12px;
  padding: 40px;
  box-shadow: 0 3px 5px rgba(0, 0, 0, 0.1);
  display: flex;
  justify-content: space-between;
  min-height: 500px;
  position: relative;
  border: #CCCCCC solid 1px;
}

.ll-left-section {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  flex: 1 1;
  padding-right: 40px;
}

.ll-right-section {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  width: 300px;
}

.ll-top-left {
  margin-bottom: 40px;
}

.ll-bottom-left {
  margin-top: auto;
}

.ll-top-right {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.ll-bottom-right {
  margin-top: auto;
  padding-top: 40px;
}

.ll-action-buttons {
  display: flex;
  gap: 16px;
  justify-content: flex-end;
}

.ll-share-btn {
  padding: 12px 20px;
  background-color: #f3f4f6;
  color: #374151;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 8px;
}

.ll-share-btn:hover {
  background-color: #e5e7eb;
}

/* Share Popup Styles */
.ll-share-popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  animation: llFadeIn 0.3s ease-out;
}

.ll-share-popup {
  background-color: white;
  border-radius: 12px;
  width: 90%;
  max-width: 500px;
  padding: 24px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.ll-popup-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.ll-popup-header h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #1f2937;
  margin: 0;
}

.ll-popup-close-btn {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #6b7280;
  cursor: pointer;
  padding: 0 8px;
  transition: color 0.2s;
}

.ll-popup-close-btn:hover {
  color: #1f2937;
}

.ll-popup-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

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

.ll-quiz-info {
  flex: 1 1;
}

.ll-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #5E5E5E;
  margin: 0 0 8px 0;
  line-height: 1.2;
  text-align: left;
}

.ll-topic {
  font-size: 1.5rem;
  font-weight: 400;
  color: #5E5E5E;
  margin: 0 0 24px 0;
  text-align: left;
}

.ll-instruction {
  font-size: 1rem;
  color: #5E5E5E;
  margin: 0 0 40px 0;
  line-height: 1.5;
  text-align: left;
}

.ll-details {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 40px;
}

.ll-detail-item {
  background-color: #f3f4f6;
  padding: 20px 24px;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 300px;
}

.ll-detail-label {
  font-size: 0.875rem;
  color: #6b7280;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.ll-detail-value {
  font-size: 1.5rem;
  color: #5E5E5E;
  font-weight: 600;
}

.ll-section-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: #1f2937;
}

.ll-quiz-link-section {
  margin-bottom: 40px;
}

.ll-link-container {
  display: flex;
  gap: 8px;
  align-items: center;
}

.ll-link-input {
  flex: 1 1;
  padding: 12px 16px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 0.875rem;
  color: #374151;
  background-color: #f9fafb;
}

.ll-copy-btn {
  padding: 12px;
  background-color: #00bcd4;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ll-copy-btn:hover {
  background-color: #0891b2;
}

.ll-copy-btn.copied {
  background-color: #10b981;
}

.ll-qr-section {
  margin-bottom: 40px;
}

.ll-qr-container {
  display: flex;
  justify-content: center;
  align-items: center;
}

.ll-qr-code {
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.ll-lobby-actions {
  display: flex;
  flex-direction: column;
  gap: 40px;
  min-width: 300px;
}

.ll-start-section {
  display: flex;
  justify-content: center;
}

.ll-start-quiz-btn {
  padding: 12px 32px;
  background-color: #00E0E9;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1.125rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.ll-start-quiz-btn:hover {
  background-color: #05c494;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(6, 214, 160, 0.3);
}

.ll-players-section {
  background-color: #f9fafb;
  padding: 24px;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  max-height: 400px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.ll-players-list {
  flex: 1 1;
  overflow-y: auto;
}

.ll-player-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
}

.ll-player-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
  font-size: 0.875rem;
}

.ll-player-name {
  font-size: 0.875rem;
  color: #374151;
  font-weight: 500;
}

.ll-waiting-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 0;
  border-top: 1px solid #e5e7eb;
  color: #6b7280;
  font-size: 0.875rem;
}

.ll-pulse-dot {
  width: 8px;
  height: 8px;
  background-color: #3b82f6;
  border-radius: 50%;
  animation: llPulse 2s infinite;
}

@keyframes llPulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(1.2);
  }
}

/* Scrollbar styling for players list */
.ll-players-list::-webkit-scrollbar {
  width: 4px;
}

.ll-players-list::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 4px;
}

.ll-players-list::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

.ll-players-list::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* PIN Display */
.ll-pin-display {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background-color: #f3f4f6;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 0.875rem;
  color: #6b7280;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.ll-pin-number {
  font-size: 0.875rem;
  color: #00E0E9;
  font-weight: 700;
  letter-spacing: 0.1em;
}

/* Host Badge */
.ll-host-badge {
  display: inline-block;
  background-color: #00E0E9;
  color: white;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Host and You Indicators in Player List */
.ll-host-indicator {
  color: #00E0E9;
  font-size: 0.75rem;
  font-weight: 600;
  margin-left: 4px;
}

.ll-you-indicator {
  color: #6b7280;
  font-size: 0.75rem;
  font-weight: 500;
  margin-left: 4px;
}

.ll-player-info {
  display: flex;
  flex-direction: column;
}

/* Share Popup Additional Styles */
.ll-pin-display-large {
  font-size: 3rem;
  font-weight: 700;
  color: #00E0E9;
  letter-spacing: 8px;
  text-align: center;
  padding: 24px;
  background-color: #f9fafb;
  border-radius: 12px;
  border: 2px dashed #e5e7eb;
  margin: 16px 0;
}

.ll-pin-instruction {
  text-align: center;
  color: #6b7280;
  font-size: 0.875rem;
  margin-top: 8px;
}

.ll-qr-instruction {
  text-align: center;
  color: #6b7280;
  font-size: 0.875rem;
  margin-top: 12px;
}

.ll-quiz-pin-section {
  margin-bottom: 24px;
}

.ll-pin-container {
  margin-top: 12px;
}

/* Ready Indicator */
.ll-ready-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 0;
  border-top: 1px solid #e5e7eb;
  color: #10b981;
  font-size: 0.875rem;
  font-weight: 500;
}

.ll-ready-dot {
  width: 8px;
  height: 8px;
  background-color: #10b981;
  border-radius: 50%;
  animation: llPulse 2s infinite;
}

/* Starting Indicator */
.ll-starting-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 0;
  border-top: 1px solid #e5e7eb;
  color: #00E0E9;
  font-size: 0.875rem;
  font-weight: 500;
}

/* Leave Button */
.ll-leave-btn {
  padding: 12px 32px;
  background-color: #ef4444;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1.125rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.ll-leave-btn:hover {
  background-color: #dc2626;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

/* Start Quiz Button States */
.ll-start-quiz-btn.disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.ll-start-quiz-btn.loading {
  position: relative;
}

.ll-start-quiz-btn.loading::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  top: 50%;
  left: 50%;
  margin-left: -8px;
  margin-top: -8px;
  border: 2px solid #ffffff;
  border-top: 2px solid transparent;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

/* Responsive Design */
@media (max-width: 768px) {
  .ll-content {
    flex-direction: column;
    gap: 30px;
  }

  .ll-left-section, 
  .ll-right-section {
    width: 100%;
    padding-right: 0;
  }

  .ll-action-buttons {
    justify-content: center;
  }
  
  .ll-title {
    font-size: 2rem;
  }
  
  .ll-topic {
    font-size: 1.25rem;
  }
  
  .ll-lobby-actions {
    width: 100%;
    min-width: 0;
    min-width: initial;
  }
  
  .ll-link-container {
    flex-direction: column;
    align-items: stretch;
  }
  
  .ll-copy-btn {
    align-self: flex-end;
    width: fit-content;
  }
  
  .ll-qr-container {
    justify-content: center;
  }

  .ll-start-quiz-btn {
    width: 100%;
  }
  
  .ll-share-btn {
    width: 100%;
    justify-content: center;
  }

  .ll-pin-display {
    justify-content: center;
    width: 100%;
  }
  
  .ll-host-badge {
    text-align: center;
    width: fit-content;
  }
  
  .ll-pin-display-large {
    font-size: 2.5rem;
    letter-spacing: 6px;
    padding: 20px;
  }
}

@media (max-width: 480px) {
  .ll-container {
    padding: 20px 10px;
  }
  
  .ll-content {
    padding: 20px 15px;
  }
  
  .ll-details {
    gap: 16px;
  }
  
  .ll-detail-item {
    padding: 16px 20px;
  }

  .ll-pin-number {
    font-size: 1.25rem;
  }
  
  .ll-pin-display-large {
    font-size: 2rem;
    letter-spacing: 4px;
    padding: 16px;
  }
}

/* QuizConfirmation */
/* Updated CSS for QuizConfirmation component */

.qc-container {
  max-width: 900px; /* Slightly wider to accommodate progress section */
  margin: 0 auto;
  padding: 40px 20px;
  min-height: 100vh;
  position: relative;
}

.qc-header-container {
  position: relative;
  width: 100%;
}

.qc-header {
  position: absolute;
  top: 40px;
  right: 20px;
  z-index: 1;
}

.qc-back-btn {
  background: none;
  border: none;
  cursor: pointer;
  border-radius: 8px;
  color: #6b7280;
  transition: background-color 0.2s, color 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
}

.qc-back-btn:hover {
  background-color: #e5e7eb;
  color: #374151;
}

.qc-content {
  background-color: white;
  border-radius: 12px;
  padding: 40px;
  box-shadow: 0 3px 5px rgba(0, 0, 0, 0.1);
  display: flex;
  justify-content: space-between;
  min-height: 400px;
  position: relative;
  border: #CCCCCC solid 1px;
}

.qc-left-section {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  width: 60%; /* Adjusted width */
}

.qc-right-section {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  width: 35%; /* Adjusted width */
}

.qc-top-left {
  margin-bottom: 40px;
}

.qc-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #5E5E5E;
  margin: 0 0 8px 0;
  line-height: 1.2;
  text-align: left;
}

.qc-topic {
  font-size: 1.5rem;
  font-weight: 400;
  color: #5E5E5E;
  margin: 0 0 24px 0;
  text-align: left;
}

.qc-instruction {
  font-size: 1rem;
  color: #5E5E5E;
  margin: 0 0 24px 0; /* Reduced margin */
  line-height: 1.5;
  text-align: left;
}

/* Enhanced Progress Section */
.qc-progress-section {
  margin-top: 40px;
  background-color: white;
  border-radius: 12px;
  padding: 32px;
  box-shadow: 0 3px 5px rgba(0, 0, 0, 0.1);
  border: 1px solid #CCCCCC;
  display: flex;
  gap: 32px;
  width: 750px;
}

.qc-progress-left {
  flex: 1 1;
}

.qc-progress-right {
  flex: 1 1;
}

.qc-progress-title {
  color: #5E5E5E;
  font-size: 1.5rem;
  margin-bottom: 24px;
  font-weight: 600;
  line-height: 1.2;
}

.qc-progress-title::before {
  content: none;
}

.qc-progress-items {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.qc-progress-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background-color: #f3f4f6;
  border-radius: 6px;
  border: 1px solid #E5E7EB;
}

.qc-progress-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.qc-progress-item.completed {
  background: #f3f4f6;
  color: #5E5E5E;
  border: 1px solid #E5E7EB;
}

.qc-progress-item.pending {
  color: #6B7280;
}

.qc-progress-icon {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 14px;
  flex-shrink: 0;
  background: white;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.qc-progress-item.completed .qc-progress-icon {
  background: linear-gradient(135deg, #00E0E9, #44B7B8);
  color: white;
}

.qc-progress-item.pending .qc-progress-icon {
  color: #9CA3AF;
}

.qc-progress-text {
  font-size: 0.875rem;
  font-weight: 500;
  color: #4B5563;
}

.qc-progress-score {
  font-size: 0.875rem;
  font-weight: 600;
  color: #00B8C4;
  background: white;
  padding: 4px 8px;
  border-radius: 4px;
  min-width: 40px;
  text-align: center;
}

.qc-improvement {
  margin-top: 24px;
  padding: 20px;
  background-color: #f3f4f6;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid #E5E7EB;
}

.qc-improvement-text {
  color: #5E5E5E;
  font-size: 1rem;
  font-weight: 500;
}

.qc-improvement-text::before {
  content: none;
}

.qc-improvement-value {
  font-weight: 600;
  font-size: 0.9375rem;
  padding: 6px 12px;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.qc-improvement-value:hover {
  transform: translateY(-2px);
}

.qc-improvement-value.positive {
  background: linear-gradient(135deg, #00E0E9, #44B7B8);
  color: white;
  box-shadow: 0 4px 6px rgba(0, 224, 233, 0.2);
}

.qc-improvement-value.negative {
  background: linear-gradient(135deg, #FF6B6B, #FF8E8E);
  color: white;
  box-shadow: 0 4px 6px rgba(255, 107, 107, 0.2);
}

.qc-improvement-value.neutral {
  background: linear-gradient(135deg, #9CA3AF, #6B7280);
  color: white;
  box-shadow: 0 4px 6px rgba(156, 163, 175, 0.2);
}

.qc-details {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.qc-detail-item {
  background-color: #f3f4f6;
  padding: 16px 20px;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.qc-detail-label {
  font-size: 0.875rem;
  color: #6b7280;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.qc-detail-value {
  font-size: 1.5rem;
  color: #1f2937;
  font-weight: 600;
}

.qc-button-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

.qc-prepost-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  margin-bottom: 20px;
}

.qc-pretest-btn,
.qc-posttest-btn {
  padding: 14px 24px;
  border-radius: 8px;
  border: none;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
  position: relative;
  overflow: hidden;
}

.qc-pretest-btn {
  background: linear-gradient(135deg, #FF6B6B, #FF8E8E);
  color: white;
  box-shadow: 0 4px 6px rgba(255, 107, 107, 0.2);
}

.qc-pretest-btn:hover:not(:disabled) {
  background: linear-gradient(135deg, #FF5252, #FF7A7A);
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(255, 107, 107, 0.3);
}

.qc-pretest-btn.completed {
  background: #4CAF50;
  cursor: not-allowed;
  box-shadow: 0 4px 6px rgba(76, 175, 80, 0.2);
}

.qc-pretest-btn:disabled {
  cursor: not-allowed;
}

.qc-posttest-btn {
  background: linear-gradient(135deg, #4ECDC4, #44B7B8);
  color: white;
  box-shadow: 0 4px 6px rgba(78, 205, 196, 0.2);
}

.qc-posttest-btn:hover:not(:disabled) {
  background: linear-gradient(135deg, #3CBCB3, #38A8A8);
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(78, 205, 196, 0.3);
}

.qc-posttest-btn.disabled {
  background: #ccc;
  color: #666;
  cursor: not-allowed;
  box-shadow: none;
}

.qc-posttest-btn.completed {
  background: #4CAF50;
  cursor: not-allowed;
  box-shadow: 0 4px 6px rgba(76, 175, 80, 0.2);
}

.qc-posttest-btn:disabled {
  cursor: not-allowed;
}

.qc-button-divider {
  text-align: center;
  margin-bottom: 20px;
  position: relative;
  color: #718096;
  font-size: 14px;
}

.qc-button-divider::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: #e2e8f0;
}

.qc-button-divider span {
  background: white;
  padding: 0 15px;
  position: relative;
}

.qc-quiz-buttons-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  margin-top: 32px;
}

.qc-quiz-buttons {
  display: flex;
  gap: 24px;
  justify-content: center;
  width: 100%;
  perspective: 1000px;
}

.qc-quiz-btn {
  width: 160px;
  padding: 16px 24px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
  position: relative;
  overflow: hidden;
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  transform-style: preserve-3d;
}

.qc-quiz-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    45deg,
    rgba(255, 255, 255, 0.1) 0%,
    rgba(255, 255, 255, 0.2) 50%,
    rgba(255, 255, 255, 0.1) 100%
  );
  transform: translateX(-100%);
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.qc-quiz-btn:hover:not(:disabled)::before {
  transform: translateX(100%);
}

.qc-quiz-btn::after {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, 
    rgba(255, 255, 255, 0.2),
    rgba(255, 255, 255, 0.05)
  );
  border-radius: 16px;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.qc-quiz-btn:hover:not(:disabled) {
  transform: translateY(-4px) scale(1.02);
}

.qc-quiz-btn:hover:not(:disabled)::after {
  opacity: 1;
}

.qc-quiz-btn:active:not(:disabled) {
  transform: translateY(2px) scale(0.98);
}

.qc-solo-quiz-btn {
  background: linear-gradient(135deg, #00E0E9, #44B7B8);
  box-shadow: 
    0 4px 15px rgba(0, 224, 233, 0.2),
    0 1px 2px rgba(0, 224, 233, 0.1),
    inset 0 -2px 0 rgba(0, 0, 0, 0.1);
}

.qc-solo-quiz-btn:hover:not(:disabled) {
  box-shadow: 
    0 8px 25px rgba(0, 224, 233, 0.3),
    0 3px 6px rgba(0, 224, 233, 0.2),
    inset 0 -2px 0 rgba(0, 0, 0, 0.1);
}

.qc-live-quiz-btn:not(.disabled) {
  background: linear-gradient(135deg, 
    #FF4B82,
    #FF1744
  );
  box-shadow: 
    0 4px 15px rgba(255, 23, 68, 0.2),
    0 1px 2px rgba(255, 23, 68, 0.1),
    inset 0 -2px 0 rgba(0, 0, 0, 0.1);
}

.qc-live-quiz-btn:not(.disabled):hover {
  box-shadow: 
    0 8px 25px rgba(255, 23, 68, 0.3),
    0 3px 6px rgba(255, 23, 68, 0.2),
    inset 0 -2px 0 rgba(0, 0, 0, 0.1);
}

.qc-live-quiz-btn.disabled {
  background: linear-gradient(135deg,
    #E0E0E0,
    #BDBDBD
  );
  color: rgba(255, 255, 255, 0.8);
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.qc-live-quiz-btn.loading {
  opacity: 0.8;
  cursor: wait;
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
  0% { opacity: 0.8; }
  50% { opacity: 0.6; }
  100% { opacity: 0.8; }
}

.qc-quiz-warning {
  margin-top: 16px;
  font-size: 13px;
  color: #FF1744;
  text-align: center;
  background: rgba(255, 23, 68, 0.08);
  padding: 12px 20px;
  border-radius: 12px;
  max-width: 320px;
  -webkit-backdrop-filter: blur(8px);
          backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 23, 68, 0.1);
  box-shadow: 0 2px 6px rgba(255, 23, 68, 0.08);
}

/* Loading and error states */
.loading-container, .error-container, .no-quiz-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px;
  text-align: center;
}

.back-btn {
  margin-top: 20px;
  padding: 10px 20px;
  background-color: #00E0E9;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
}

.qc-back-btn .svg-inline--fa {
  width: 24px; /* Icon size */
  height: 24px;
}

.back-btn:hover {
  background-color: #00B8C4;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .qc-content {
    flex-direction: column;
    padding: 30px 20px;
  }
  
  .qc-left-section, .qc-right-section {
    width: 100%;
  }
  
  .qc-right-section {
    margin-top: 30px;
  }
  
  .qc-title {
    font-size: 2rem;
  }
  
  .qc-topic {
    font-size: 1.25rem;
  }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .qc-content {
    flex-direction: column;
    gap: 30px;
  }
  
  .qc-left-section {
    width: 100%;
  }
  
  .qc-right-section {
    width: 100%;
  }
  
  .qc-button-container {
    width: 100%;
  }
  
  .qc-prepost-buttons {
    width: 100%;
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .qc-content {
    flex-direction: column;
    gap: 30px;
    padding: 30px 20px;
    min-height: 0;
    min-height: initial;
  }
  
  .qc-title {
    font-size: 2rem;
  }
  
  .qc-topic {
    font-size: 1.25rem;
  }
  
  .qc-right-section {
    width: 100%;
    align-items: center;
  }
  
  .qc-button-container {
    width: 100%;
    max-width: 300px;
  }
  
  .qc-warning-tooltip {
    white-space: normal;
    width: 200px;
    text-align: center;
  }
}

/* GuestLiveLobby */
.gll-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 40px 20px;
  min-height: 100vh;
}

.gll-content {
  background-color: white;
  border-radius: 12px;
  padding: 40px;
  box-shadow: 0 3px 5px rgba(0, 0, 0, 0.1);
  display: flex;
  justify-content: space-between;
  min-height: 500px;
  position: relative;
  border: #CCCCCC solid 1px;
}

.gll-left-section {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  flex: 1 1;
  padding-right: 40px;
}

.gll-right-section {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  width: 300px;
}

.gll-top-left {
  margin-bottom: 40px;
}

.gll-bottom-left {
  margin-top: auto;
}

.gll-bottom-right {
  margin-top: auto;
  padding-top: 40px;
}

.gll-action-buttons {
  display: flex;
  gap: 16px;
  justify-content: flex-end;
}

.gll-share-btn {
  padding: 12px 20px;
  background-color: #f3f4f6;
  color: #374151;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 8px;
}

.gll-share-btn:hover {
  background-color: #e5e7eb;
}

.gll-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #5E5E5E;
  margin: 0 0 8px 0;
  line-height: 1.2;
  text-align: left;
}

.gll-topic {
  font-size: 1.5rem;
  font-weight: 400;
  color: #5E5E5E;
  margin: 0 0 24px 0;
  text-align: left;
}

.gll-instruction {
  font-size: 1rem;
  color: #5E5E5E;
  margin: 0 0 40px 0;
  line-height: 1.5;
  text-align: left;
}

.gll-details {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 40px;
}

.gll-detail-item {
  background-color: #f3f4f6;
  padding: 20px 24px;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 300px;
}

.gll-detail-label {
  font-size: 0.875rem;
  color: #6b7280;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.gll-detail-value {
  font-size: 1.5rem;
  color: #5E5E5E;
  font-weight: 600;
}

.gll-section-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: #1f2937;
}

.gll-players-section {
  background-color: #f9fafb;
  padding: 24px;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  max-height: 400px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.gll-players-list {
  flex: 1 1;
  overflow-y: auto;
}

.gll-player-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
}

.gll-player-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
  font-size: 0.875rem;
}

.gll-player-name {
  font-size: 0.875rem;
  color: #374151;
  font-weight: 500;
}

.gll-waiting-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 0;
  border-top: 1px solid #e5e7eb;
  color: #6b7280;
  font-size: 0.875rem;
}

.gll-pulse-dot {
  width: 8px;
  height: 8px;
  background-color: #3b82f6;
  border-radius: 50%;
  animation: gll-pulse 2s infinite;
}

@keyframes gll-pulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(1.2);
  }
}

.gll-players-list::-webkit-scrollbar {
  width: 4px;
}

.gll-players-list::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 4px;
}

.gll-players-list::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

.gll-players-list::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

.gll-start-quiz-btn {
  padding: 12px 32px;
  background-color: #e5e7eb;
  color: #6b7280;
  border: none;
  border-radius: 8px;
  font-size: 1.125rem;
  font-weight: 600;
  cursor: not-allowed;
  white-space: nowrap; /* Prevent text wrapping */
  overflow: hidden; /* Hide overflow */
  text-overflow: ellipsis; /* Add ellipsis if text is too long */
  min-width: 320px; /* Set a minimum width to accommodate the text */
  text-align: center; /* Center the text */
}


/* Share Popup Styles */
.gll-share-popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  animation: fadeIn 0.3s ease-out;
}

.gll-share-popup {
  background-color: white;
  border-radius: 12px;
  width: 90%;
  max-width: 500px;
  padding: 24px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.gll-popup-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.gll-popup-header h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #1f2937;
  margin: 0;
}

.gll-popup-close-btn {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #6b7280;
  cursor: pointer;
  padding: 0 8px;
  transition: color 0.2s;
}

.gll-popup-close-btn:hover {
  color: #1f2937;
}

.gll-popup-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.gll-quiz-link-section {
  margin-bottom: 40px;
}

.gll-link-container {
  display: flex;
  gap: 8px;
  align-items: center;
}

.gll-link-input {
  flex: 1 1;
  padding: 12px 16px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 0.875rem;
  color: #374151;
  background-color: #f9fafb;
}

.gll-copy-btn {
  padding: 12px;
  background-color: #00bcd4;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gll-copy-btn:hover {
  background-color: #0891b2;
}

.gll-copy-btn.copied {
  background-color: #10b981;
}

.gll-qr-section {
  margin-bottom: 40px;
}

.gll-qr-container {
  display: flex;
  justify-content: center;
  align-items: center;
}

.gll-qr-code {
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.sort-container, .filter-container { 
  position: relative; 
} 

.dropdown-menu { 
  position: absolute; 
  top: 100%; 
  left: 0; 
  z-index: 10; 
  background-color: white; 
  border: 1px solid #e0e0e0; 
  border-radius: 10px; 
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); 
  min-width: 150px; 
  margin-top: 5px; 
} 

.dropdown-item { 
  padding: 8px 12px; 
  cursor: pointer; 
  transition: background-color 0.2s; 
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  font-family: "Avenir Next", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-family: var(--font-family);
} 

.dropdown-item:hover { 
  background-color: #f8f8fc;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transform: translateY(-1px);
} 

.dropdown-item.active { 
  background-color: #f3f4f6; 
  color: #333; 
  font-weight: 500; 
} 


/* Animations */
@keyframes pulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.8;
    transform: scale(1.05);
  }
}

@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes ping {
  75%, 100% {
    transform: scale(2);
    opacity: 0;
  }
}

/* Animations */
@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

@keyframes ping {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  75%, 100% {
    transform: scale(2);
    opacity: 0;
  }
}

@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
    animation-timing-function: cubic-bezier(0.8, 0, 1, 1);
  }
  50% {
    transform: translateY(-25%);
    animation-timing-function: cubic-bezier(0, 0, 0.2, 1);
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .profile-content {
    flex-direction: column;
    gap: 2rem;
    text-align: center;
  }
  
  .profile-left {
    flex-direction: column;
    gap: 1rem;
  }
  
  .profile-name {
    font-size: 2rem;
  }
  
  .badges-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  
  .nav-btn {
    padding: 0.5rem 1.5rem;
    font-size: 0.75rem;
  }
}

@media (max-width: 480px) {
  .profile-header {
    margin: 0 1rem 1.5rem 1rem;
    padding: 1.5rem;
  }
  
  .badges-section, .history-section {
    margin: 0 1rem 1.5rem 1rem;
    padding: 1.5rem;
  }
  
  .profile-name {
    font-size: 1.5rem;
  }
  
  .badges-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}


@media (max-width: 768px) {
  .gll-content {
    flex-direction: column;
    gap: 30px;
  }

  .gll-left-section, 
  .gll-right-section {
    width: 100%;
    padding-right: 0;
  }

  .gll-action-buttons {
    justify-content: center;
  }
  
  .gll-title {
    font-size: 2rem;
  }
  
  .gll-topic {
    font-size: 1.25rem;
  }
  
  .gll-link-container {
    flex-direction: column;
    align-items: stretch;
  }
  
  .gll-copy-btn {
    align-self: flex-end;
    width: fit-content;
  }
  
  .gll-qr-container {
    justify-content: center;
  }

  .gll-start-quiz-btn {
    width: 100%;
    min-width: 0;
    min-width: initial; /* Remove min-width on mobile */
  }
  
  .gll-share-btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .gll-container {
    padding: 20px 10px;
  }
  
  .gll-content {
    padding: 20px 15px;
  }
  
  .gll-details {
    gap: 16px;
  }
  
  .gll-detail-item {
    padding: 16px 20px;
  }
}

/* QuizTaking */
.quiz-taking-container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow: hidden;
}

.quiz-main-content {
  margin-left: 250px;
  margin-top: 60px;
  transition: margin-left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  width: calc(100% - 250px);
  padding: 0;
  overflow: hidden;
}

.quiz-main-content.collapsed {
  margin-left: 70px;
  width: calc(100% - 70px);
}

/* Add these CSS rules to your QuizTaking.css file */

/* Live Quiz Header */
.qt-live-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 12px;
  margin-bottom: 20px;
  color: white;
}

.qt-quiz-info {
  display: flex;
  align-items: center;
  gap: 15px;
}

.qt-pin {
  font-weight: bold;
  font-size: 14px;
  background: rgba(255, 255, 255, 0.2);
  padding: 5px 10px;
  border-radius: 15px;
}

.qt-live-indicator {
  display: flex;
  align-items: center;
  gap: 5px;
  font-weight: bold;
  font-size: 12px;
}

.qt-live-dot {
  width: 8px;
  height: 8px;
  background: #ff4757;
  border-radius: 50%;
  animation: pulse 1.5s ease-in-out infinite;
}

.qt-progress-info {
  font-size: 14px;
  opacity: 0.9;
}

/* Waiting for Next Question */
.qt-waiting-next {
  text-align: center;
  padding: 40px 20px;
}

.qt-results-summary {
  background: #f8f9fa;
  padding: 20px;
  border-radius: 12px;
  margin: 20px 0;
}

.qt-correct-answer {
  font-size: 18px;
  font-weight: bold;
  color: #28a745;
  margin-bottom: 15px;
}

.qt-player-results {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.qt-result-item {
  padding: 8px 12px;
  border-radius: 8px;
  font-weight: 500;
}

.qt-result-item.correct {
  background: #d4edda;
  color: #155724;
}

.qt-result-item.incorrect {
  background: #f8d7da;
  color: #721c24;
}

.qt-waiting-message {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 16px;
  color: #6c757d;
}

.qt-pulse-dot {
  width: 10px;
  height: 10px;
  background: #007bff;
  border-radius: 50%;
  animation: pulse 1.5s ease-in-out infinite;
}

/* Live Leaderboard Sidebar */
.qt-leaderboard-sidebar {
  position: fixed;
  top: 120px;
  left: 20px;
  width: 280px;
  background: white;
  border-radius: 15px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  padding: 20px;
  max-height: 400px;
  overflow-y: auto;
  z-index: 999;
}

.qt-leaderboard-title {
  font-size: 16px;
  font-weight: bold;
  color: #333;
  margin-bottom: 15px;
  text-align: center;
}

.qt-leaderboard-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.qt-leaderboard-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: 10px;
  background: #f8f9fa;
  transition: all 0.3s ease;
}

.qt-leaderboard-item.current-player {
  background: linear-gradient(135deg, #00e0e9, #00c5ce);
  color: white;
}

.qt-leaderboard-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.qt-player-rank {
  font-weight: bold;
  font-size: 16px;
  min-width: 20px;
  text-align: center;
}

.qt-player-avatar {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: white;
  font-weight: bold;
}

.qt-player-info {
  flex: 1 1;
}

.qt-player-name {
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 2px;
}

.qt-player-score {
  font-size: 12px;
  opacity: 0.8;
}

/* Answer Feedback */
.qt-answer-feedback {
  text-align: center;
  margin-top: 20px;
}

.qt-feedback {
  padding: 15px 25px;
  border-radius: 25px;
  font-weight: bold;
  font-size: 16px;
  display: inline-block;
  animation: feedbackPop 0.5s ease-out;
}

.qt-feedback-correct {
  background: linear-gradient(135deg, #28a745, #20c997);
  color: white;
}

.qt-feedback-wrong {
  background: linear-gradient(135deg, #dc3545, #fd7e14);
  color: white;
}

.qt-feedback-timeout {
  background: linear-gradient(135deg, #ffc107, #fd7e14);
  color: white;
}

/* Choice styling for live quiz */
.qt-choice-letter {
  display: inline-block;
  width: 30px;
  height: 30px;
  background: #00e0e9;
  color: white;
  border-radius: 50%;
  font-weight: bold;
  font-size: 14px;
  text-align: center;
  line-height: 30px;
  margin-right: 15px;
  flex-shrink: 0;
}

.qt-choice-text {
  flex: 1 1;
  font-size: 16px;
}

.qt-choice {
  display: flex;
  align-items: center;
  padding: 15px 20px;
  margin: 10px 0;
  background: white;
  border: 2px solid #e9ecef;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
}

.qt-choice:hover {
  border-color: #00e0e9;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 224, 233, 0.2);
}

.qt-choice-correct {
  background: linear-gradient(135deg, #d4edda, #c3e6cb);
  border-color: #28a745;
  color: #155724;
}

.qt-choice-correct .qt-choice-letter {
  background: #28a745;
}

.qt-choice-wrong {
  background: linear-gradient(135deg, #f8d7da, #f5c6cb);
  border-color: #dc3545;
  color: #721c24;
}

.qt-choice-wrong .qt-choice-letter {
  background: #dc3545;
}

.qt-choice-faded {
  opacity: 0.5;
  cursor: not-allowed;
}

.qt-choice-timeout {
  background: linear-gradient(135deg, #fff3cd, #ffeaa7);
  border-color: #ffc107;
  color: #856404;
}

.qt-choice-timeout .qt-choice-letter {
  background: #ffc107;
}

/* Timer urgent state */
.qt-timer-progress.urgent {
  background: linear-gradient(90deg, #ff4757, #ff3838);
  animation: pulse 0.5s ease-in-out infinite;
}

/* Animations */
@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.7;
  }
}

@keyframes feedbackPop {
  0% {
    transform: scale(0.8);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .qt-leaderboard-sidebar {
    position: static;
    width: 100%;
    margin-bottom: 20px;
    max-height: 200px;
  }
  
  .qt-live-header {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
  
  .qt-quiz-info {
    justify-content: center;
  }
}



/* Mobile Responsive Design */
@media (max-width: 768px) {
  .qt-test-type-indicator {
    top: 80px;
    right: 10px;
    padding: 6px 12px;
  }

  .qt-test-type-label {
    font-size: 12px;
  }

  .qt-test-type-description {
    font-size: 10px;
  }

  .qt-question-counter {
    font-size: 16px;
  }

  .qt-score {
    font-size: 16px;
  }

  .qt-matching-columns {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .qt-identification-container,
  .qt-enumeration-container,
  .qt-matching-container {
    padding: 0 10px;
  }

  .qt-identification-input,
  .qt-enum-input {
    font-size: 16px;
  }

  .qt-submit-btn {
    font-size: 16px;
    padding: 12px 24px;
    min-width: 150px;
  }
}

/* Responsive Design */
@media (max-width: 1024px) {
  .qt-question {
    font-size: 36px;
    margin-top: 20px;
  }
  
  .qt-choices-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  
  .qt-choice {
    padding: 40px 20px;
    font-size: 20px;
    min-height: 100px;
  }
}


@media (max-width: 768px) {
    .quiz-main-content:not(.collapsed) {
    margin-left: 0;
    width: 100%;
  }
  
  .quiz-main-content.collapsed {
    margin-left: 0;
    width: 100%;
  }
  
  .qt-question {
    font-size: 28px;
    margin-top: 250px;
  }
  
  .qt-choices-container {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .qt-choice {
    padding: 30px 20px;
    font-size: 18px;
    min-height: 80px;
  }
  
  .qt-timer-slider {
    height: 50px;
  }
  
  .qt-timer-text {
    font-size: 20px;
  }
}

@media (max-width: 480px) {
  .qt-question {
    font-size: 24px;
  }
  
  .qt-choice {
    padding: 25px 15px;
    font-size: 16px;
    border-radius: 15px;
  }
  
  .qt-timer-slider {
    height: 40px;
    border-radius: 20px;
  }
  
  .qt-timer-text {
    font-size: 18px;
  }
}

/* Animation for when choices are selected */
@keyframes fadeOut {
  from {
    opacity: 1;
    transform: scale(1);
  }
  to {
    opacity: 0;
    transform: scale(0.8);
  }
}

@keyframes highlight {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.05);
  }
}

/* Additional responsive grid adjustments */
@media (min-width: 1200px) {
  .qt-choices-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }
}

@media (min-width: 1400px) {
  .qt-choices-container {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* LiveLeaderboard */

.llb-container * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.llb-container {
    font-family: 'Rajdhani', sans-serif;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #16213e 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.llb-leaderboard-container {
    width: 90%;
    max-width: 600px;
    position: relative;
    padding: 40px 20px;
}

.llb-header {
    text-align: center;
    margin-bottom: 40px;
}

.llb-live-indicator {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(45deg, #00E0E9, #00b8c4);
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    color: #000;
    margin-bottom: 10px;
    box-shadow: 0 0 20px rgba(0, 224, 233, 0.3);
    animation: llb-pulse 2s infinite;
}

.llb-live-dot {
    width: 8px;
    height: 8px;
    background: #ff0000;
    border-radius: 50%;
    animation: llb-blink 1s infinite;
}

@keyframes llb-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes llb-blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.llb-title {
    font-family: 'Orbitron', monospace;
    font-size: 36px;
    font-weight: 900;
    color: #00E0E9;
    text-shadow: 0 0 20px rgba(0, 224, 233, 0.5);
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.llb-participants {
    color: #888;
    font-size: 16px;
    font-weight: 400;
}

.llb-leaderboard {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.llb-rank-item {
    position: relative;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(0, 224, 233, 0.2);
    border-radius: 15px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.3s ease;
    -webkit-backdrop-filter: blur(10px);
            backdrop-filter: blur(10px);
    overflow: hidden;
}

.llb-rank-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #00E0E9, transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.llb-rank-item:hover::before {
    opacity: 1;
}

.llb-rank-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 224, 233, 0.2);
    border-color: #00E0E9;
}

.llb-rank-item.llb-champion {
    background: linear-gradient(135deg, rgba(0, 224, 233, 0.1), rgba(0, 184, 196, 0.1));
    border: 2px solid #00E0E9;
    box-shadow: 0 0 30px rgba(0, 224, 233, 0.3);
}

.llb-rank-item.llb-champion::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #00E0E9, #00b8c4, #00E0E9);
    border-radius: 15px;
    z-index: -1;
    animation: llb-rotate 3s linear infinite;
}

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

.llb-rank-number {
    font-family: 'Orbitron', monospace;
    font-size: 24px;
    font-weight: 700;
    color: #00E0E9;
    min-width: 40px;
    text-align: center;
    text-shadow: 0 0 10px rgba(0, 224, 233, 0.5);
}

.llb-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.llb-avatar::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid #00E0E9;
    animation: llb-spin 4s linear infinite;
}

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

.llb-avatar.llb-champion-avatar {
    background: linear-gradient(45deg, #ffd700, #ffed4e);
}

.llb-avatar.llb-second-avatar {
    background: linear-gradient(45deg, #c0c0c0, #e5e5e5);
}

.llb-avatar.llb-third-avatar {
    background: linear-gradient(45deg, #cd7f32, #daa520);
}

.llb-avatar.llb-default-avatar {
    background: linear-gradient(45deg, #00E0E9, #00b8c4);
}

.llb-player-info {
    flex: 1 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.llb-player-name {
    font-size: 20px;
    font-weight: 600;
    color: #fff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.llb-player-rank {
    font-size: 14px;
    color: #888;
    display: flex;
    align-items: center;
    gap: 8px;
}

.llb-rank-badge {
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.llb-rank-badge.llb-champion {
    background: linear-gradient(45deg, #ffd700, #ffed4e);
    color: #000;
}

.llb-rank-badge.llb-second {
    background: linear-gradient(45deg, #c0c0c0, #e5e5e5);
    color: #000;
}

.llb-rank-badge.llb-third {
    background: linear-gradient(45deg, #cd7f32, #daa520);
    color: #fff;
}

.llb-points {
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 5px;
}

.llb-points-value {
    font-family: 'Orbitron', monospace;
    font-size: 24px;
    font-weight: 700;
    color: #00E0E9;
    text-shadow: 0 0 10px rgba(0, 224, 233, 0.5);
}

.llb-points-label {
    font-size: 12px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.llb-update-indicator {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #888;
    background: rgba(0, 0, 0, 0.3);
    padding: 8px 16px;
    border-radius: 20px;
    -webkit-backdrop-filter: blur(10px);
            backdrop-filter: blur(10px);
}

.llb-update-dot {
    width: 6px;
    height: 6px;
    background: #00E0E9;
    border-radius: 50%;
    animation: llb-pulse 2s infinite;
}

.llb-floating-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.llb-particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: #00E0E9;
    border-radius: 50%;
    animation: llb-float 8s linear infinite;
}

@keyframes llb-float {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) rotate(360deg);
        opacity: 0;
    }
}

/* LeaderboardResults */
/* App.css */
.lbr * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.lbr-body {
    font-family: 'Rajdhani', sans-serif;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #16213e 100%);
    min-height: 100vh;
    color: #fff;
    overflow-x: hidden;
}

.lbr-confetti-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 100;
}

.lbr-confetti {
    position: absolute;
    width: 10px;
    height: 10px;
    background: #00E0E9;
    animation: lbr-confetti-fall 3s linear infinite;
}

.lbr-confetti:nth-child(2n) { background: #ffd700; }
.lbr-confetti:nth-child(3n) { background: #ff6b6b; }
.lbr-confetti:nth-child(4n) { background: #4ecdc4; }
.lbr-confetti:nth-child(5n) { background: #45b7d1; }

@keyframes lbr-confetti-fall {
    0% {
        transform: translateY(-100vh) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(720deg);
        opacity: 0;
    }
}

.lbr-results-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.lbr-results-header {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}

.lbr-quiz-complete {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(45deg, #00E0E9, #00b8c4);
    color: #000;
    padding: 12px 30px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
    box-shadow: 0 0 30px rgba(0, 224, 233, 0.4);
    animation: lbr-glow 2s ease-in-out infinite alternate;
}

@keyframes lbr-glow {
    from { box-shadow: 0 0 30px rgba(0, 224, 233, 0.4); }
    to { box-shadow: 0 0 50px rgba(0, 224, 233, 0.6); }
}

.lbr-results-title {
    font-family: 'Orbitron', monospace;
    font-size: 48px;
    font-weight: 900;
    color: #00E0E9;
    text-shadow: 0 0 30px rgba(0, 224, 233, 0.6);
    letter-spacing: 3px;
    margin-bottom: 15px;
    background: linear-gradient(45deg, #00E0E9, #00b8c4, #00E0E9);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: lbr-gradient-text 3s ease-in-out infinite;
}

@keyframes lbr-gradient-text {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.lbr-quiz-info {
    color: #888;
    font-size: 18px;
    margin-bottom: 10px;
}

.lbr-total-participants {
    color: #00E0E9;
    font-size: 20px;
    font-weight: 600;
}

.lbr-podium-section {
    display: flex;
    justify-content: center;
    align-items: end;
    gap: 40px;
    margin-bottom: 60px;
    padding: 0 20px;
}

.lbr-podium-place {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.lbr-podium-place.lbr-first {
    order: 2;
}

.lbr-podium-place.lbr-second {
    order: 1;
}

.lbr-podium-place.lbr-third {
    order: 3;
}

.lbr-podium-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    margin-bottom: 15px;
    position: relative;
    overflow: hidden;
}

.lbr-podium-avatar.lbr-first {
    background: linear-gradient(45deg, #ffd700, #ffed4e);
    width: 100px;
    height: 100px;
    font-size: 50px;
    animation: lbr-champion-pulse 2s ease-in-out infinite;
}

.lbr-podium-avatar.lbr-second {
    background: linear-gradient(45deg, #c0c0c0, #e5e5e5);
}

.lbr-podium-avatar.lbr-third {
    background: linear-gradient(45deg, #cd7f32, #daa520);
}

@keyframes lbr-champion-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.lbr-podium-avatar::before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    background: linear-gradient(45deg, #00E0E9, #00b8c4, #00E0E9);
    animation: lbr-rotate 3s linear infinite;
    z-index: -1;
}

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

.lbr-podium-name {
    font-size: 20px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 10px;
    color: #fff;
}

.lbr-podium-score {
    font-family: 'Orbitron', monospace;
    font-size: 24px;
    font-weight: 700;
    color: #00E0E9;
    text-shadow: 0 0 15px rgba(0, 224, 233, 0.5);
    margin-bottom: 15px;
}

.lbr-podium-base {
    width: 120px;
    background: linear-gradient(135deg, rgba(0, 224, 233, 0.2), rgba(0, 184, 196, 0.1));
    border: 2px solid rgba(0, 224, 233, 0.3);
    border-radius: 10px 10px 0 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-family: 'Orbitron', monospace;
    font-weight: 700;
    color: #00E0E9;
    position: relative;
    -webkit-backdrop-filter: blur(10px);
            backdrop-filter: blur(10px);
}

.lbr-podium-base.lbr-first {
    height: 100px;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(255, 237, 78, 0.1));
    border-color: rgba(255, 215, 0, 0.5);
}

.lbr-podium-base.lbr-second {
    height: 80px;
    background: linear-gradient(135deg, rgba(192, 192, 192, 0.2), rgba(229, 229, 229, 0.1));
    border-color: rgba(192, 192, 192, 0.5);
}

.lbr-podium-base.lbr-third {
    height: 60px;
    background: linear-gradient(135deg, rgba(205, 127, 50, 0.2), rgba(218, 165, 32, 0.1));
    border-color: rgba(205, 127, 50, 0.5);
}

.lbr-podium-rank {
    font-size: 36px;
    margin-bottom: 5px;
}

.lbr-podium-points {
    font-size: 14px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.lbr-all-results {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(0, 224, 233, 0.2);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 40px;
    -webkit-backdrop-filter: blur(10px);
            backdrop-filter: blur(10px);
}

.lbr-all-results-title {
    font-family: 'Orbitron', monospace;
    font-size: 28px;
    font-weight: 700;
    color: #00E0E9;
    text-align: center;
    margin-bottom: 30px;
    text-shadow: 0 0 20px rgba(0, 224, 233, 0.5);
}

.lbr-results-grid {
    display: grid;
    grid-gap: 20px;
    gap: 20px;
}

.lbr-result-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(0, 224, 233, 0.1);
    border-radius: 15px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.lbr-result-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 224, 233, 0.1);
    border-color: rgba(0, 224, 233, 0.3);
}

.lbr-result-rank {
    font-family: 'Orbitron', monospace;
    font-size: 20px;
    font-weight: 700;
    color: #00E0E9;
    min-width: 40px;
    text-align: center;
}

.lbr-result-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    background: linear-gradient(45deg, #00E0E9, #00b8c4);
    border: 2px solid rgba(0, 224, 233, 0.3);
}

.lbr-result-info {
    flex: 1 1;
}

.lbr-result-name {
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 5px;
}

.lbr-result-stats {
    display: flex;
    gap: 20px;
    font-size: 14px;
    color: #888;
}

.lbr-result-score {
    font-family: 'Orbitron', monospace;
    font-size: 22px;
    font-weight: 700;
    color: #00E0E9;
    text-shadow: 0 0 10px rgba(0, 224, 233, 0.5);
}

.lbr-quiz-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    grid-gap: 30px;
    gap: 30px;
    margin-bottom: 40px;
}

.lbr-summary-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(0, 224, 233, 0.2);
    border-radius: 20px;
    padding: 25px;
    text-align: center;
    -webkit-backdrop-filter: blur(10px);
            backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.lbr-summary-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 224, 233, 0.2);
    border-color: #00E0E9;
}

.lbr-summary-icon {
    font-size: 40px;
    margin-bottom: 15px;
}

.lbr-summary-value {
    font-family: 'Orbitron', monospace;
    font-size: 32px;
    font-weight: 700;
    color: #00E0E9;
    text-shadow: 0 0 20px rgba(0, 224, 233, 0.5);
    margin-bottom: 10px;
}

.lbr-summary-label {
    font-size: 16px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.lbr-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

.lbr-action-btn {
    padding: 15px 35px;
    border: none;
    border-radius: 25px;
    font-family: 'Rajdhani', sans-serif;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.lbr-action-btn.lbr-primary {
    background: linear-gradient(45deg, #00E0E9, #00b8c4);
    color: #000;
    box-shadow: 0 0 30px rgba(0, 224, 233, 0.3);
}

.lbr-action-btn.lbr-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 40px rgba(0, 224, 233, 0.4);
}

.lbr-action-btn.lbr-secondary {
    background: transparent;
    border: 2px solid rgba(0, 224, 233, 0.5);
    color: #00E0E9;
}

.lbr-action-btn.lbr-secondary:hover {
    background: rgba(0, 224, 233, 0.1);
    border-color: #00E0E9;
}

@media (max-width: 768px) {
    .lbr-podium-section {
        flex-direction: column;
        gap: 20px;
    }
    
    .lbr-podium-place {
        order: initial !important;
    }
    
    .lbr-podium-base {
        width: 100%;
        max-width: 300px;
        height: 80px !important;
    }
    
    .lbr-results-title {
        font-size: 32px;
    }
    
    .lbr-actions {
        flex-direction: column;
        align-items: center;
    }
}

/* QuizPostResults */
/* Additional CSS for QuizPostResults detailed review */

/* Learning Progress Card Styles - Add these to your main CSS file */

.qpr-progress-card {
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 12px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  margin: 0 auto;
  max-width: 400px;
}

.qpr-score-comparison {
  display: flex;
  align-items: center;
  gap: 24px;
  width: 100%;
  justify-content: center;
}

.qpr-score-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.qpr-score-label {
  font-size: 12px;
  font-weight: 600;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.qpr-score-value {
  font-size: 28px;
  font-weight: 700;
  color: #374151;
  line-height: 1;
}

.qpr-arrow {
  font-size: 24px;
  color: #9ca3af;
  font-weight: 600;
}

.qpr-improvement-badge {
  padding: 12px 20px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 16px;
  color: white;
  text-align: center;
  min-width: 140px;
}

.qpr-improvement-badge.positive {
  background-color: #10b981;
}

.qpr-improvement-badge.negative {
  background-color: #ef4444;
}

.qpr-improvement-percentage {
  display: block;
  font-size: 14px;
  font-weight: 500;
  opacity: 0.9;
  margin-top: 2px;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
  .qpr-progress-card {
    padding: 20px 16px;
    max-width: 100%;
  }
  
  .qpr-score-comparison {
    gap: 16px;
  }
  
  .qpr-score-value {
    font-size: 24px;
  }
  
  .qpr-arrow {
    font-size: 20px;
  }
  
  .qpr-improvement-badge {
    font-size: 14px;
    padding: 10px 16px;
    min-width: 120px;
  }
}

.qpr-completion-info {
  text-align: center;
  margin-top: 10px;
  color: #666;
  font-size: 14px;
}

.qpr-completion-info p {
  margin: 2px 0;
}

.qpr-detailed-results {
  margin-top: 40px;
  width: 100%;
}

.qpr-section-title {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 20px;
  color: #333;
  text-align: center;
}

/* Removed conflicting QPR styles - now handled in QuizPostResults.css */

.qpr-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qpr-content {
  background-color: white;
  border-radius: 12px;
  padding: 40px 30px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  text-align: center;
  width: 100%;
  max-width: 600px;
  box-shadow: 0 3px 5px rgba(0, 0, 0, 0.1);
  border: #CCCCCC solid 1px;
}

.qpr-header {
  margin-bottom: 40px;
}

.qpr-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #5E5E5E;
  margin: 0 0 8px 0;
  line-height: 1.2;
  word-break: break-word;
  text-align: left;
}

.qpr-topic {
  font-size: 1.5rem;
  font-weight: 400;
  color: #5E5E5E;
  margin: 0;
  word-break: break-word;
  text-align: left;
}

.qpr-results-section {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-bottom: 40px;
}

.qpr-chart-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  min-width: 120px;
  flex: 1 1;
}

.qpr-circular-progress {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 120px;
  height: 120px;
}

.qpr-progress-ring {
  transform: rotate(-90deg);
}

.qpr-progress-circle {
  transition: stroke-dashoffset 1s ease-in-out;
}

.qpr-percentage-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 1.5rem;
  font-weight: 700;
  color: #5E5E5E;
}

.qpr-chart-label {
  font-size: 0.875rem;
  color: #808080;
  font-weight: 1000;
  text-align: center;
  width: 100%;
}

.qpr-metric-card {
  background-color: #f9fafb;
  border: 3px solid #B3B3B3;
  border-radius: 12px;
  padding: 40px 20px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  box-sizing: border-box;
}

.qpr-metric-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: #5E5E5E;
  line-height: 1;
  word-break: break-word;
}

.qpr-metric-label {
  font-size: 0.875rem;
  color: #808080;
  font-weight: 1000;
  text-align: center;
  width: 100%;
}

.qpr-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-end;
  margin-top: 40px;
}

.qpr-try-again-btn,
.qpr-back-to-quizzes-btn {
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  min-width: 200px;
  text-align: center;
}

.qpr-try-again-btn {
  background-color: #e5e7eb;
  color: #6b7280;
  border: #CCCCCC solid 2px;
}

.qpr-try-again-btn:hover {
  background-color: #e5e7eb;
  color: #1f2937;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.qpr-back-to-quizzes-btn {
  background-color: #00E0E9;
  color: white;
}

.qpr-back-to-quizzes-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(6, 214, 160, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
  .qpr-container {
    padding: 20px 10px;
  }
  
  .qpr-content {
    padding: 30px 20px;
  }
  
  .qpr-title {
    font-size: 1.75rem;
  }
  
  .qpr-topic {
    font-size: 1.1rem;
  }
  
  .qpr-results-section {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 15px;
  }
  
  .qpr-chart-container {
    min-width: 100px;
    flex-grow: 1;
    flex-shrink: 1;
    flex-basis: calc(33% - 15px);
  }
  
  .qpr-circular-progress {
    width: 100px;
    height: 100px;
  }
  
  .qpr-percentage-text {
    font-size: 1.25rem;
  }
  
  .qpr-metric-card {
    padding: 16px;
  }
  
  .qpr-metric-value {
    font-size: 1.25rem;
  }
  
  .qpr-actions {
    margin-top: 30px;
  }
  
  .qpr-try-again-btn,
  .qpr-back-to-quizzes-btn {
    min-width: 160px;
    padding: 10px 16px;
  }
}

@media (max-width: 480px) {
  .qpr-content {
    padding: 25px 15px;
  }
  
  .qpr-header {
    margin-bottom: 30px;
  }
  
  .qpr-title {
    font-size: 1.5rem;
  }
  
  .qpr-topic {
    font-size: 1rem;
  }
  
  .qpr-results-section {
    flex-direction: column;
    gap: 20px;
  }
  
  .qpr-chart-container {
    width: 100%;
    flex: 1 1 auto;
  }
  
  .qpr-circular-progress {
    width: 100px;
    height: 100px;
  }
  
  .qpr-metric-card {
    max-width: 200px;
    width: 100%;
    margin: 0 auto;
  }
  
  .qpr-actions {
    align-items: stretch;
    margin-top: 25px;
  }
  
  .qpr-try-again-btn,
  .qpr-back-to-quizzes-btn {
    width: 100%;
    min-width: auto;
  }
}

/* OpenFlashcards */
.of-header {
  text-align: center;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto 30px;
  position: relative;
  display: grid;
  grid-template-columns: 1fr 800px 1fr;
  align-items: center;
  transform: translateX(-100px);
}

.of-header-navigation {
  margin-bottom: 1rem;
  grid-column: 1;
  justify-self: start;
}

.of-back-btn {
  background: none;
  border: none;
  color: #007bff;
  cursor: pointer;
  font-size: 14px;
}

.of-study-stats {
  display: flex;
  gap: 2rem;
  margin-top: 2rem;
  justify-content: center;
}

.of-stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.error-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.of-description {
  color: #6c757d;
  font-size: 16px;
  max-width: 800px;
  margin: 0 auto;
  grid-column: 2;
}

.of-title {
  font-size: x-large;
  color: #00d4dd;
  margin-bottom: 8px;
  grid-column: 2;
}

.of-centered-wrapper {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.of-flashcard-area {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  width: 100%;
  margin-bottom: 30px;
}

.of-flashcard-container {
  width: 800px;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-right: 0;
}

.of-flashcard {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  width: 800px;
  height: 520px;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.6s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.of-flashcard:hover {
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.12);
}

.of-flashcard.flipped {
  transform: rotateY(180deg);
}

.of-card-front, .of-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  display: flex;
  flex-direction: column;
  padding: 20px;
  box-sizing: border-box;
}

.of-card-back {
  transform: rotateY(180deg);
}

.of-question-content, .of-answer-content {
  flex: 1 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow-y: auto;
  text-align: center;
  line-height: 1.6;
  font-size: 20px;
  padding: 0;
  margin: 0;
  width: 100%;
  word-wrap: break-word;
  -webkit-hyphens: auto;
          hyphens: auto;
  min-height: 0;
}

.of-question-content {
  font-weight: 500;
  color: #495057;
}

.of-answer-content {
  font-weight: 600;
  color: #495057;
}

/* Card image sizing */
.of-card-image-wrapper {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 12px;
}

.of-card-image {
  max-width: 50%;
  max-height: 180px;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
}

.of-flip-btn-container {
  padding-top: 15px;
  border-top: 1px solid #f0f0f0;
  margin-top: auto;
  flex-shrink: 0;
}

.of-flip-btn {
  background: #00d4dd;
  color: white;
  border: none;
  border-radius: 25px;
  padding: 12px 40px;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s;
  width: 150px;
  margin: 0 auto;
  display: block;
}

.of-flip-btn:hover {
  background-color: #00bcc4;
}

.of-filters-side {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-width: 140px;
}



.of-filter-label {
  font-size: 14px;
  font-weight: 600;
  color: #6c757d;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.of-filter-buttons {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.of-filter-btn {
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 20px;
  padding: 8px 16px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
  min-width: 80px;
  text-align: center;
}

.of-filter-btn:hover {
  background-color: #e9ecef;
}

.of-filter-btn.active {
  background-color: #00d4dd;
  color: white;
  border-color: #00d4dd;
}

.of-all-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  width: 800px;
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
  transform: translateX(-60px);
}

.of-main-controls {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  background: white;
  border-radius: 50px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  width: fit-content;
}

.of-control-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: bold;
  transition: all 0.2s;
}

.of-control-btn.of-shuffle-btn {
  background-color: #f8f9fa;
  color: #6c757d;
  border: 2px solid #e9ecef;
}

.of-control-btn.of-shuffle-btn:hover {
  background-color: #6c757d;
  color: white;
  border-color: #6c757d;
}

.of-hard-btn {
  background-color: #f8f9fa;
  color: #dc3545;
  border: 2px solid #e9ecef;
}

.of-hard-btn:hover {
  background-color: #dc3545;
  color: white;
  border-color: #dc3545;
}

.of-nav-btn {
  background-color: #00d4dd;
  color: white;
}

.of-nav-btn:hover {
  background-color: #00bcc4;
  transform: scale(1.05);
}

.of-card-counter {
  font-size: 16px;
  font-weight: 600;
  color: #495057;
  min-width: 50px;
  text-align: center;
}

.of-easy-btn {
  background-color: #f8f9fa;
  color: #28a745;
  border: 2px solid #e9ecef;
}

.of-easy-btn:hover {
  background-color: #28a745;
  color: white;
  border-color: #28a745;
}

.of-shuffle-container {
  display: flex;
  align-items: center;
  padding: 20px;
  background: white;
  border-radius: 50px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.of-shuffle-btn {
  background-color: #f8f9fa;
  color: #6c757d;
  border: 2px solid #e9ecef;
}

.of-shuffle-btn:hover {
  background-color: #6c757d;
  color: white;
  border-color: #6c757d;
}

.of-shuffle-btn.active {
  background-color: #6c757d;
  color: white;
  border-color: #6c757d;
}

.of-no-cards {
  text-align: center;
  color: #6c757d;
  font-size: 16px;
  padding: 20px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .of-flashcard {
    width: 90%;
    max-width: 400px;
  }
  
  .of-control-btn {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }
}



/* VersusAnswerDuel */
.vad-timer-container {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
  display: flex;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  width: 100%;
  box-sizing: border-box;
}

.vad-timer-controls {
  display: flex;
  flex-direction: column;
  gap: 15px;
  width: 100%;
  max-width: 500px;
}

.vad-time-penalties {
  display: flex;
  justify-content: center;
  gap: 30px;
  align-items: center;
}

.vad-penalty-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
}

.vad-penalty-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: bold;
}

.vad-penalty-icon.vad-incorrect {
  background-color: #ff6b6b;
  color: white;
}

.vad-penalty-icon.vad-correct {
  background-color: #51cf66;
  color: white;
}

.vad-penalty-text {
  color: #5E5E5E;
  font-size: large;
  font-weight: 1000;
}

.vad-timer-bar-container {
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
  width: 100%;
}

.vad-timer-bar {
  flex: 1 1;
  height: 30px;
  background-color: #FFE5AA;
  border-radius: 15px;
  position: relative;
  overflow: hidden;
}

.vad-timer-progress {
  height: 100%;
  background: linear-gradient(90deg, #FEC74C, #fab005);
  border-radius: 15px;
  transition: width 0.3s ease;
}

.vad-timer-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-weight: bold;
  font-size: 14px;
  color: #333;
}

.vad-scores-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 10px;
}

.vad-score {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 15px;
  border-radius: 20px;
  font-weight: bold;
  font-size: 12px;
  min-width: 80px;
  text-align: center;
}

.vad-score.vad-player1 {
  background: linear-gradient(135deg, #00E0E9, #86FAFF);
  color: white;
}

.vad-score.vad-player2 {
  background: linear-gradient(135deg, #ff6b6b, #ff8e8e);
  color: white;
}

.vad-score-label {
  font-size: 10px;
  margin-bottom: 2px;
  opacity: 0.9;
}

.vad-score-value {
  font-size: 16px;
  font-weight: bold;
}

.vad-score-divider {
  font-weight: bold;
  font-size: 14px;
  color: #666;
  padding: 0 10px;
}

.vad-question-container {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  width: 100%;
  box-sizing: border-box;
}

.vad-question {
  text-align: center;
  font-size: 24px;
  font-weight: 600;
  color: #333;
  margin-bottom: 30px;
  margin-top: 0;
}

.vad-answers-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  margin-bottom: 40px;
}

.vad-answer-option {
  background: #f8f9fa;
  border: 2px solid #e9ecef;
  border-radius: 8px;
  padding: 15px 20px;
  font-size: large;
  font-weight: 1000;
  cursor: pointer;
  transition: all 0.3s ease;
  color: #495057;
  min-width: 120px;
  flex: 1 1;
  max-width: 200px;
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-sizing: border-box;
}

.vad-answer-option:hover {
  border-color: #17a2b8;
  background: #f1f9ff;
}

.vad-answer-option.vad-selected {
  border-color: #51cf66;
  background: #d3f9d8;
  color: #2f9e44;
}

.vad-answer-option.vad-correct-answer {
  border-color: #51cf66;
  background: #d3f9d8;
  color: #2f9e44;
}

.vad-answer-option.vad-incorrect-answer {
  border-color: #ff6b6b;
  background: #ffe3e3;
  color: #c92a2a;
}

.vad-feedback {
  text-align: center;
  font-size: 18px;
  font-weight: bold;
  color: #51cf66;
  margin-top: 15px;
}

/* iPhone 15 Pro Portrait (375px) */
@media only screen and (max-width: 428px) and (orientation: portrait) {
  .vad-timer-container,
  .vad-question-container {
    padding: 15px;
  }
  
  .vad-question {
    font-size: 22px;
    margin-bottom: 25px;
  }
  
  .vad-answers-grid {
    gap: 20px;
  }
  
  .vad-answer-option {
    min-width: calc(50% - 15px);
    min-height: 160px;
    font-size: 16px;
    padding: 15px;
  }
  
  .vad-time-penalties {
    gap: 20px;
  }
  
  .vad-penalty-text {
    font-size: 16px;
  }
  
  .vad-scores-container {
    gap: 15px;
  }
  
  .vad-score {
    min-width: 70px;
    padding: 6px 12px;
  }
  
  .vad-score-value {
    font-size: 14px;
  }
}

/* iPhone 15 Pro Landscape (812px) */
@media only screen and (max-width: 932px) and (orientation: landscape) {
  .vad-answers-grid {
    gap: 15px;
  }
  
  .vad-answer-option {
    min-height: 150px;
    min-width: calc(25% - 15px);
    max-width: calc(25% - 15px);
  }
  
  .vad-timer-container {
    padding: 15px;
  }
  
  .vad-question {
    font-size: 22px;
    margin-bottom: 20px;
  }
}

/* Smaller iPhones Portrait */
@media only screen and (max-width: 375px) and (orientation: portrait) {
  .vad-answer-option {
    min-width: calc(50% - 10px);
    min-height: 140px;
    font-size: 15px;
  }
  
  .vad-question {
    font-size: 20px;
  }
  
  .vad-penalty-text {
    font-size: 15px;
  }
  
  .vad-scores-container {
    gap: 10px;
  }
  
  .vad-score {
    min-width: 60px;
    padding: 5px 10px;
  }
  
  .vad-score-value {
    font-size: 13px;
  }
  
  .vad-score-divider {
    font-size: 12px;
  }
}

/* General Mobile Adjustments */
@media only screen and (max-width: 768px) {
  .vad-timer-bar {
    height: 25px;
  }
  
  .vad-timer-text {
    font-size: 13px;
  }
  
  .vad-score {
    padding: 6px 12px;
  }
  
  .vad-score-value {
    font-size: 14px;
  }
  
  .vad-feedback {
    font-size: 16px;
  }
}

/* PartyBattleRoyale */
.pbr-timer-container {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
  display: flex;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  width: 100%;
  box-sizing: border-box;
}

.pbr-timer-controls {
  display: flex;
  flex-direction: column;
  gap: 15px;
  width: 100%;
  max-width: 800px;
}

.pbr-time-penalties {
  display: flex;
  justify-content: center;
  gap: 30px;
  align-items: center;
}

.pbr-penalty-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
}

.pbr-penalty-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: bold;
}

.pbr-penalty-icon.pbr-incorrect {
  background-color: #ff6b6b;
  color: white;
}

.pbr-penalty-icon.pbr-correct {
  background-color: #51cf66;
  color: white;
}

.pbr-penalty-text {
  color: #5E5E5E;
  font-size: 14px;
  font-weight: 600;
}

.pbr-timer-bar-container {
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
  width: 100%;
}

.pbr-timer-bar {
  flex: 1 1;
  height: 30px;
  background-color: #FFE5AA;
  border-radius: 15px;
  position: relative;
  overflow: hidden;
}

.pbr-timer-progress {
  height: 100%;
  background: linear-gradient(90deg, #FEC74C, #fab005);
  border-radius: 15px;
  transition: width 0.3s ease;
}

.pbr-timer-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-weight: bold;
  font-size: 14px;
  color: #333;
}

.pbr-players-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  margin-top: 10px;
}

.pbr-player-card {
  background: rgba(255, 255, 255, 0.95);
  border: 2px solid #e9ecef;
  border-radius: 12px;
  padding: 12px;
  min-width: 120px;
  flex: 1 1;
  max-width: 180px;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.pbr-player-card.pbr-current-player {
  border-width: 3px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transform: scale(1.02);
}

.pbr-player-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  margin-bottom: 8px;
}

.pbr-player-name {
  font-size: 12px;
  font-weight: bold;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.pbr-player-hearts {
  display: flex;
  gap: 2px;
}

.pbr-heart {
  font-size: 12px;
  transition: all 0.3s ease;
}

.pbr-heart.pbr-heart-full {
  opacity: 1;
  filter: grayscale(0%);
}

.pbr-heart.pbr-heart-empty {
  opacity: 0.3;
  filter: grayscale(100%);
}

.pbr-player-score {
  color: white;
  padding: 6px 12px;
  border-radius: 15px;
  font-weight: bold;
  font-size: 16px;
  min-width: 40px;
  text-align: center;
}

.pbr-question-container {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  width: 100%;
  box-sizing: border-box;
}

.pbr-question {
  text-align: center;
  font-size: 24px;
  font-weight: 600;
  color: #333;
  margin-bottom: 30px;
  margin-top: 0;
}

.pbr-answers-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  margin-bottom: 40px;
}

.pbr-answer-option {
  background: #f8f9fa;
  border: 2px solid #e9ecef;
  border-radius: 8px;
  padding: 15px 20px;
  font-size: large;
  font-weight: 1000;
  cursor: pointer;
  transition: all 0.3s ease;
  color: #495057;
  min-width: 120px;
  flex: 1 1;
  max-width: 200px;
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-sizing: border-box;
}

.pbr-answer-option:hover {
  border-color: #17a2b8;
  background: #f1f9ff;
}

.pbr-answer-option.pbr-selected {
  border-color: #51cf66;
  background: #d3f9d8;
  color: #2f9e44;
}

.pbr-answer-option.pbr-correct-answer {
  border-color: #51cf66;
  background: #d3f9d8;
  color: #2f9e44;
}

.pbr-feedback {
  text-align: center;
  font-size: 18px;
  font-weight: bold;
  color: #51cf66;
  margin-top: 15px;
}

/* iPhone 15 Pro Portrait (375px) */
@media only screen and (max-width: 428px) and (orientation: portrait) {
  .pbr-timer-container,
  .pbr-question-container {
    padding: 15px;
  }
  
  .pbr-question {
    font-size: 22px;
    margin-bottom: 25px;
  }
  
  .pbr-answers-grid {
    gap: 20px;
  }
  
  .pbr-answer-option {
    min-width: calc(50% - 15px);
    min-height: 160px;
    font-size: 16px;
    padding: 15px;
  }
  
  .pbr-time-penalties {
    gap: 15px;
  }
  
  .pbr-penalty-text {
    font-size: 12px;
  }
  
  .pbr-players-container {
    gap: 10px;
  }
  
  .pbr-player-card {
    min-width: calc(50% - 10px);
    max-width: calc(50% - 10px);
    padding: 8px;
  }
  
  .pbr-player-name {
    font-size: 10px;
  }
  
  .pbr-player-score {
    font-size: 14px;
    padding: 4px 8px;
  }
  
  .pbr-heart {
    font-size: 10px;
  }
}

/* iPhone 15 Pro Landscape (812px) */
@media only screen and (max-width: 932px) and (orientation: landscape) {
  .pbr-answers-grid {
    gap: 15px;
  }
  
  .pbr-answer-option {
    min-height: 150px;
    min-width: calc(25% - 15px);
    max-width: calc(25% - 15px);
  }
  
  .pbr-timer-container {
    padding: 15px;
  }
  
  .pbr-question {
    font-size: 22px;
    margin-bottom: 20px;
  }
  
  .pbr-players-container {
    gap: 10px;
  }
  
  .pbr-player-card {
    max-width: calc(25% - 10px);
  }
}

/* Smaller iPhones Portrait */
@media only screen and (max-width: 375px) and (orientation: portrait) {
  .pbr-answer-option {
    min-width: calc(50% - 10px);
    min-height: 140px;
    font-size: 15px;
  }
  
  .pbr-question {
    font-size: 20px;
  }
  
  .pbr-penalty-text {
    font-size: 11px;
  }
  
  .pbr-player-card {
    padding: 6px;
  }
  
  .pbr-player-name {
    font-size: 9px;
  }
  
  .pbr-player-score {
    font-size: 12px;
  }
}

/* General Mobile Adjustments */
@media only screen and (max-width: 768px) {
  .pbr-timer-bar {
    height: 25px;
  }
  
  .pbr-timer-text {
    font-size: 13px;
  }
  
  .pbr-feedback {
    font-size: 16px;
  }
}

/* Tablet and larger screens - arrange players in a single row */
@media only screen and (min-width: 768px) {
  .pbr-players-container {
    flex-wrap: nowrap;
    justify-content: space-around;
  }
  
  .pbr-player-card {
    flex: 1 1;
    max-width: 150px;
  }
}

/* GamesLiveLobby */
.gmll-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 40px 20px;
  min-height: 100vh;
}

.gmll-header {
  margin-bottom: 30px;
}

.gmll-back-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  color: #6b7280;
  transition: background-color 0.2s, color 0.2s;
}

.gmll-back-btn:hover {
  background-color: #e5e7eb;
  color: #374151;
}

.gmll-content {
  background-color: white;
  border-radius: 12px;
  padding: 40px;
  box-shadow: 0 3px 5px rgba(0, 0, 0, 0.1);
  display: flex;
  justify-content: space-between;
  min-height: 500px;
  position: relative;
  border: #CCCCCC solid 1px;
}

.gmll-left-section {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  flex: 1 1;
  padding-right: 40px;
}

.gmll-right-section {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  width: 300px;
}

.gmll-top-left {
  margin-bottom: 40px;
}

.gmll-bottom-left {
  margin-top: auto;
}

.gmll-top-right {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.gmll-bottom-right {
  margin-top: auto;
  padding-top: 40px;
}

.gmll-action-buttons {
  display: flex;
  gap: 16px;
  justify-content: flex-end;
}

.gmll-share-btn {
  padding: 12px 20px;
  background-color: #f3f4f6;
  color: #374151;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 8px;
}

.gmll-share-btn:hover {
  background-color: #e5e7eb;
}

/* Share Popup Styles */
.gmll-share-popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  animation: gmllFadeIn 0.3s ease-out;
}

.gmll-share-popup {
  background-color: white;
  border-radius: 12px;
  width: 90%;
  max-width: 500px;
  padding: 24px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.gmll-popup-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.gmll-popup-header h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #1f2937;
  margin: 0;
}

.gmll-popup-close-btn {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #6b7280;
  cursor: pointer;
  padding: 0 8px;
  transition: color 0.2s;
}

.gmll-popup-close-btn:hover {
  color: #1f2937;
}

.gmll-popup-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

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

.gmll-game-info {
  flex: 1 1;
}

.gmll-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #5E5E5E;
  margin: 0 0 8px 0;
  line-height: 1.2;
  text-align: left;
}

.gmll-topic {
  font-size: 1.5rem;
  font-weight: 400;
  color: #5E5E5E;
  margin: 0 0 24px 0;
  text-align: left;
}

.gmll-instruction {
  font-size: 1rem;
  color: #5E5E5E;
  margin: 0 0 40px 0;
  line-height: 1.5;
  text-align: left;
}

.gmll-details {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 40px;
}

.gmll-detail-item {
  background-color: #f3f4f6;
  padding: 20px 24px;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 300px;
}

.gmll-detail-label {
  font-size: 0.875rem;
  color: #6b7280;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.gmll-detail-value {
  font-size: 1.5rem;
  color: #5E5E5E;
  font-weight: 600;
}

.gmll-section-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: #1f2937;
}

.gmll-game-link-section {
  margin-bottom: 40px;
}

.gmll-link-container {
  display: flex;
  gap: 8px;
  align-items: center;
}

.gmll-link-input {
  flex: 1 1;
  padding: 12px 16px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 0.875rem;
  color: #374151;
  background-color: #f9fafb;
}

.gmll-copy-btn {
  padding: 12px;
  background-color: #00bcd4;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gmll-copy-btn:hover {
  background-color: #0891b2;
}

.gmll-copy-btn.copied {
  background-color: #10b981;
}

.gmll-qr-section {
  margin-bottom: 40px;
}

.gmll-qr-container {
  display: flex;
  justify-content: center;
  align-items: center;
}

.gmll-qr-code {
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.gmll-lobby-actions {
  display: flex;
  flex-direction: column;
  gap: 40px;
  min-width: 300px;
}

.gmll-start-section {
  display: flex;
  justify-content: center;
}

.gmll-start-game-btn {
  padding: 12px 32px;
  background-color: #00E0E9;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1.125rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.gmll-start-game-btn:hover {
  background-color: #05c494;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(6, 214, 160, 0.3);
}

.gmll-players-section {
  background-color: #f9fafb;
  padding: 24px;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  max-height: 400px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.gmll-players-list {
  flex: 1 1;
  overflow-y: auto;
}

.gmll-player-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
}

.gmll-player-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
  font-size: 0.875rem;
}

.gmll-player-name {
  font-size: 0.875rem;
  color: #374151;
  font-weight: 500;
}

.gmll-waiting-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 0;
  border-top: 1px solid #e5e7eb;
  color: #6b7280;
  font-size: 0.875rem;
}

.gmll-pulse-dot {
  width: 8px;
  height: 8px;
  background-color: #3b82f6;
  border-radius: 50%;
  animation: gmllPulse 2s infinite;
}

@keyframes gmllPulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(1.2);
  }
}

/* Scrollbar styling for players list */
.gmll-players-list::-webkit-scrollbar {
  width: 4px;
}

.gmll-players-list::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 4px;
}

.gmll-players-list::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

.gmll-players-list::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Responsive Design */
@media (max-width: 768px) {
  .gmll-content {
    flex-direction: column;
    gap: 30px;
  }

  .gmll-left-section, 
  .gmll-right-section {
    width: 100%;
    padding-right: 0;
  }

  .gmll-action-buttons {
    justify-content: center;
  }
  
  .gmll-title {
    font-size: 2rem;
  }
  
  .gmll-topic {
    font-size: 1.25rem;
  }
  
  .gmll-lobby-actions {
    width: 100%;
    min-width: 0;
    min-width: initial;
  }
  
  .gmll-link-container {
    flex-direction: column;
    align-items: stretch;
  }
  
  .gmll-copy-btn {
    align-self: flex-end;
    width: fit-content;
  }
  
  .gmll-qr-container {
    justify-content: center;
  }

  .gmll-start-game-btn {
    width: 100%;
  }
  
  .gmll-share-btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .gmll-container {
    padding: 20px 10px;
  }
  
  .gmll-content {
    padding: 20px 15px;
  }
  
  .gmll-details {
    gap: 16px;
  }
  
  .gmll-detail-item {
    padding: 16px 20px;
  }
}

/* GamesGuestLiveLobby */
.ggll-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 40px 20px;
  min-height: 100vh;
}

.ggll-content {
  background-color: white;
  border-radius: 12px;
  padding: 40px;
  box-shadow: 0 3px 5px rgba(0, 0, 0, 0.1);
  display: flex;
  justify-content: space-between;
  min-height: 500px;
  position: relative;
  border: #CCCCCC solid 1px;
}

.ggll-left-section {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  flex: 1 1;
  padding-right: 40px;
}

.ggll-right-section {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  width: 300px;
}

.ggll-top-left {
  margin-bottom: 40px;
}

.ggll-bottom-left {
  margin-top: auto;
}

.ggll-bottom-right {
  margin-top: auto;
  padding-top: 40px;
}

.ggll-action-buttons {
  display: flex;
  gap: 16px;
  justify-content: flex-end;
}

.ggll-share-btn {
  padding: 12px 20px;
  background-color: #f3f4f6;
  color: #374151;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 8px;
}

.ggll-share-btn:hover {
  background-color: #e5e7eb;
}

.ggll-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #5E5E5E;
  margin: 0 0 8px 0;
  line-height: 1.2;
  text-align: left;
}

.ggll-topic {
  font-size: 1.5rem;
  font-weight: 400;
  color: #5E5E5E;
  margin: 0 0 24px 0;
  text-align: left;
}

.ggll-instruction {
  font-size: 1rem;
  color: #5E5E5E;
  margin: 0 0 40px 0;
  line-height: 1.5;
  text-align: left;
}

.ggll-details {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 40px;
}

.ggll-detail-item {
  background-color: #f3f4f6;
  padding: 20px 24px;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 300px;
}

.ggll-detail-label {
  font-size: 0.875rem;
  color: #6b7280;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.ggll-detail-value {
  font-size: 1.5rem;
  color: #5E5E5E;
  font-weight: 600;
}

.ggll-section-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: #1f2937;
}

.ggll-players-section {
  background-color: #f9fafb;
  padding: 24px;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  max-height: 400px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.ggll-players-list {
  flex: 1 1;
  overflow-y: auto;
}

.ggll-player-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
}

.ggll-player-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
  font-size: 0.875rem;
}

.ggll-player-name {
  font-size: 0.875rem;
  color: #374151;
  font-weight: 500;
}

.ggll-waiting-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 0;
  border-top: 1px solid #e5e7eb;
  color: #6b7280;
  font-size: 0.875rem;
}

.ggll-pulse-dot {
  width: 8px;
  height: 8px;
  background-color: #3b82f6;
  border-radius: 50%;
  animation: ggll-pulse 2s infinite;
}

@keyframes ggll-pulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(1.2);
  }
}

.ggll-players-list::-webkit-scrollbar {
  width: 4px;
}

.ggll-players-list::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 4px;
}

.ggll-players-list::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

.ggll-players-list::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

.ggll-start-game-btn {
  padding: 12px 32px;
  background-color: #e5e7eb;
  color: #6b7280;
  border: none;
  border-radius: 8px;
  font-size: 1.125rem;
  font-weight: 600;
  cursor: not-allowed;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 320px;
  text-align: center;
}

/* Share Popup Styles */
.ggll-share-popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  animation: fadeIn 0.3s ease-out;
}

.ggll-share-popup {
  background-color: white;
  border-radius: 12px;
  width: 90%;
  max-width: 500px;
  padding: 24px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.ggll-popup-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.ggll-popup-header h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #1f2937;
  margin: 0;
}

.ggll-popup-close-btn {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #6b7280;
  cursor: pointer;
  padding: 0 8px;
  transition: color 0.2s;
}

.ggll-popup-close-btn:hover {
  color: #1f2937;
}

.ggll-popup-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.ggll-game-link-section {
  margin-bottom: 40px;
}

.ggll-link-container {
  display: flex;
  gap: 8px;
  align-items: center;
}

.ggll-link-input {
  flex: 1 1;
  padding: 12px 16px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 0.875rem;
  color: #374151;
  background-color: #f9fafb;
}

.ggll-copy-btn {
  padding: 12px;
  background-color: #00bcd4;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ggll-copy-btn:hover {
  background-color: #0891b2;
}

.ggll-copy-btn.copied {
  background-color: #10b981;
}

.ggll-qr-section {
  margin-bottom: 40px;
}

.ggll-qr-container {
  display: flex;
  justify-content: center;
  align-items: center;
}

.ggll-qr-code {
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Home page specific styles */
.hero-section {
  padding: 4rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.hero-section.animate-in {
  opacity: 1;
  transform: translateY(0);
}

.hero-content {
  text-align: center;
  z-index: 2;
  max-width: 800px;
}

.hero-buttons {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  margin-top: 2rem;
}

.demo-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  font-size: 1.2rem;
  background: transparent;
  color: #37dae0;
  border: 2px solid #37dae0;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

.demo-button:hover {
  background: rgba(55, 218, 224, 0.1);
  transform: translateY(-2px);
}

.icon-right {
  transition: transform 0.3s ease;
}

.demo-button:hover .icon-right {
  transform: translateX(5px);
}

.hero-animation {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: 1;
  pointer-events: none;
}

.floating-card {
  position: absolute;
  padding: 2rem 2rem;
  background: white;
  border-radius: 18px;
  font-size: 1.4rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  font-weight: 600;
  color: #37dae0;
  animation: float 6s infinite ease-in-out;
}

.card-1 {
  top: 20%;
  left: 9%;
  animation-delay: 0s;
}

.card-2 {
  top: 50%;
  right: 13%;
  animation-delay: 2s;
}

.card-3 {
  bottom: -17%;
  left: 30%;
  animation-delay: 4s;
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(2deg); }
}

/* Import section */
.import-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
  gap: 2rem;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.import-section.animate-in {
  opacity: 1;
  transform: translateY(0);
}

.import-content {
  flex: 1 1;
  max-width: 600px;
}

.section-title {
  font-size: 2.5rem;
  color: #333;
  margin-bottom: 1.5rem;
  text-align: left;
}

.section-description {
  font-size: 1.2rem;
  color: #555;
  margin-bottom: 2rem;
  text-align: left;
  line-height: 1.6;
}

.import-features {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.import-feature {
  flex: 1 1;
  text-align: center;
}

.feature-icon {
  font-size: 2rem;
  color: #37dae0;
  margin-bottom: 1rem;
}

.import-feature h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: #333;
}

.import-feature p {
  font-size: 0.9rem;
  color: #666;
}

.import-image {
  flex: 1 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.import-illustration {
  max-width: 100%;
  height: auto;
  max-height: 400px;
}
@media (max-width: 768px) {
  .import-section {
    flex-direction: column; 
    text-align: center; 
  }

  .section-title,
  .section-description {
    text-align: center; 
  }

  .import-features {
    flex-direction: column; 
    gap: 1rem;
  }

  .import-image {
    order: 2; 
    margin-top: 1.5rem;
  }

  .import-content {
    order: 1;
  }
}

/* Features section */
.features-section {
  padding: 8rem 1rem;
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.feature-card{
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.feature-card.animate-in {
  opacity: 1;
  transform: translateY(0);
}

.feature-content {
  color: white;
  text-align: left;
}

.feature-content p {
  font-size: 1rem;
}

.flashcard-demo, .quiz-demo, .game-demo, .achievements-demo {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  padding: 1rem;
  margin-top: 1rem;
}

.flashcard-front, .flashcard-back {
  padding: 1rem;
  background: white;
  color: #333;
  border-radius: 8px;
  margin-bottom: 0.5rem;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.flashcard-back {
  background: #f8f8f8;
}

.quiz-question {
  padding: 1rem;
  background: white;
  color: #333;
  border-radius: 8px 8px 0 0;
  margin-bottom: 0.5rem;
  text-align: center;
}

.quiz-options {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.quiz-option {
  padding: 0.75rem;
  background: white;
  color: #333;
  border-radius: 8px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.quiz-option.correct {
  background: rgba(73, 186, 67, 0.2);
  border: 1px solid #49BA43;
}

.game-player, .achievement {
  padding: 0.75rem;
  background: white;
  color: #333;
  border-radius: 8px;
  margin-bottom: 0.5rem;
  text-align: center;
}

/* Testimonials section */
.testimonials-section {
  padding: 4rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.testimonials-carousel {
  display: flex;
  gap: 2rem;
  overflow-x: auto;
  padding: 2rem 0;
  scrollbar-width: none; /* Firefox */
}

.testimonials-carousel::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Edge */
}

.testimonial {
  flex: 0 0 auto;
  width: 300px;
  background: white;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  text-align: left;
}

.testimonial-text {
  font-size: 1rem;
  color: #333;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.testimonial-author {
  font-size: 0.9rem;
  color: #666;
  font-style: italic;
}

/* CTA section */
.cta-section {
  padding: 6rem 2rem;
  background: linear-gradient(135deg, rgba(55, 218, 224, 0.1) 0%, rgba(66, 248, 255, 0.1) 100%);
  text-align: center;
}

.cta-content {
  max-width: 800px;
  margin: 0 auto;
}

.cta-title {
  font-size: 2.5rem;
  color: #333;
  margin-bottom: 1.5rem;
}

.cta-description {
  font-size: 1.2rem;
  color: #555;
  margin-bottom: 2.5rem;
}

.cta-button {
  display: inline-block;
  padding: 1.2rem 3rem;
  font-size: 1.2rem;
  background: linear-gradient(180deg, #37dae0cc 0%, #42f8ffcc 100%);
  color: white;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(55, 218, 224, 0.3);
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(55, 218, 224, 0.4);
}

.cta-button.pulse {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(55, 218, 224, 0.4); }
  70% { box-shadow: 0 0 0 15px rgba(55, 218, 224, 0); }
  100% { box-shadow: 0 0 0 0 rgba(55, 218, 224, 0); }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .hero-title {
    font-size: 4rem;
  }
  
  .import-section {
    flex-direction: column;
  }
  
  .import-features {
    flex-direction: column;
  }
  
  .floating-card {
    display: none;
  }
}

.hero-title {
  position: relative;
  display: inline-block;
  font-size: 8rem;
  background: linear-gradient(180deg, #37dae0cc 0%, #42f8ffcc 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 1rem;
  margin-top: -0.5rem;
  animation: glow 4s ease-in-out infinite alternate;
}

@keyframes glow {
  0% {
    text-shadow: 0 0 5px rgba(55, 218, 224, 0.1), 0 0 10px rgba(55, 218, 224, 0);
    transform: scale(1);
  }
  100% {
    text-shadow: 0 0 8px rgba(55, 218, 224, 0.2), 0 0 15px rgba(55, 218, 224, 0.1);
    transform: scale(1.01); /* Reduced scale from 1.03 to 1.01 */
  }
}

/* Enhanced hover animation for feature cards */
.feature-card {
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.1);
  z-index: -1;
  transform: translateY(100%);
  transition: transform 0.4s ease-out;
}

.feature-card:hover {
  transform: translateY(-15px) scale(1.03);
  box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

.feature-card:hover::before {
  transform: translateY(0);
}

.feature-card:hover .feature-icon {
  transform: scale(1.2) rotate(10deg);
}

.feature-icon {
  transition: transform 0.4s ease;
}

/* Footer styles */
.footer {
  background: linear-gradient(180deg, #f5f5f5 0%, #ffffff 100%);
  padding: 4rem 2rem 2rem;
  margin-top: 2rem;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  grid-gap: 3rem;
  gap: 3rem;
}

.footer-column h3 {
  color: #333;
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  position: relative;
}

.footer-column h3::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 40px;
  height: 2px;
  background: linear-gradient(90deg, #37dae0 0%, #42f8ff 100%);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.footer-link {
  color: #555;
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 0.9rem;
}

.footer-link:hover {
  color: #37dae0;
  transform: translateX(5px);
}

.footer-bottom {
  max-width: 1200px;
  margin: 3rem auto 0;
  padding-top: 2rem;
  border-top: 1px solid #eee;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.footer-logo span {
  font-size: 1.5rem;
  font-weight: bold;
  background: linear-gradient(180deg, #37dae0cc 0%, #42f8ffcc 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.footer-logo img {
  height: 40px;
}

.footer-copyright {
  color: #777;
  font-size: 0.9rem;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-link {
  color: #555;
  font-size: 1.2rem;
  transition: all 0.3s ease;
}

.social-link:hover {
  color: #37dae0;
  transform: translateY(-3px);
}

@media (max-width: 768px) {
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
  
  .social-links {
    margin-top: 1rem;
  }
}
/* Verification Actions Styles */
.verification-actions {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.resend-code-button {
  background: linear-gradient(135deg, #37dae0 0%, #42f8ff 100%);
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  align-self: flex-start;
}

.resend-code-button:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(55, 218, 224, 0.3);
}

.resend-code-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.verification-help {
  font-size: 0.85rem;
  color: #666;
  line-height: 1.4;
}

/* Authentication Pages Styles */
.auth-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 2rem;
  background: linear-gradient(135deg, #F8FFFE 0%, #F0FDFF 50%, #F5FFFF 100%);
}

.auth-content {
  display: flex;
  background: rgba(255, 255, 255, 0.95);
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  border-radius: 24px;
  overflow: hidden;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  box-shadow: 
    0 20px 40px rgba(55, 218, 224, 0.08),
    0 8px 16px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}

.auth-content:hover {
  transform: translateY(-2px);
  box-shadow: 
    0 25px 50px rgba(55, 218, 224, 0.12),
    0 12px 24px rgba(0, 0, 0, 0.06);
}

.auth-left {
  flex: 1 1;
  padding: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f8fffe 0%, rgba(127, 251, 255, 0.1) 100%);
}

.auth-left img {
  max-width: 100%;
  height: auto;
  filter: drop-shadow(0 8px 16px rgba(55, 218, 224, 0.15));
  transition: transform 0.3s ease;
}

.auth-left img:hover {
  transform: scale(1.02);
}

.auth-form {
  flex: 1 1;
  padding: 3rem;
  max-width: 500px;
  background: linear-gradient(135deg, rgba(248, 255, 255, 0.5) 0%, rgba(252, 252, 255, 0.7) 100%);
}

.auth-header {
  display: flex;
  justify-content: center;
  margin-bottom: 3rem;
  width: 100%;
}

.auth-header .logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: transform 0.3s ease;
}

.auth-header .logo:hover {
  transform: scale(1.05);
}

.auth-header .logo img {
  height: 100px;
}

.auth-header .logo span {
  font-size: 4rem;
  font-weight: 700;
  background: linear-gradient(45deg, #37dae0 0%, #42f8ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-top: 55px;
}

.auth-tabs {
  display: flex;
  gap: 2rem;
  margin-bottom: 2rem;
}

.auth-tab {
  font-size: 1.5rem;
  font-weight: 700;
  color: #686868;
  text-decoration: none;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  transition: all 0.3s ease;
}

.auth-tab:hover {
  background: rgba(55, 218, 224, 0.05);
  transform: translateY(-1px);
}

.auth-tab.active {
  background: linear-gradient(135deg, #37dae0 0%, #42f8ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  background-color: rgba(55, 218, 224, 0.08);
}

/* Form Styles */
.form-group {
  margin-bottom: 0.3rem;
}

.signup-form .form-group {
  margin-top: 0;
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: #686868;
  text-align: left;
  font-weight: 600;
  font-size: 1rem;
  transition: color 0.3s ease;
}

.form-input {
  width: 100%;
  padding: 14px 16px;
  margin-bottom: 0.5rem;
  border: 2px solid transparent;
  border-radius: 12px;
  font-size: 1rem;
  background: white;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
}

.form-input::placeholder {
  color: #b0b0b0;
}

.signup-form .form-input {
  margin-top: 0;
  margin-bottom: 0;
}

.form-input:focus {
  outline: none;
  border-color: #37dae0;
  box-shadow: 
    0 6px 16px rgba(55, 218, 224, 0.15),
    0 0 0 3px rgba(55, 218, 224, 0.1);
  transform: translateY(-1px);
}

.form-input:focus::placeholder {
  color: #37dae0;
}

.form-row {
  display: flex;
  gap: 2rem;
  margin-bottom: 0.25rem;
}

/* Checkbox Styles */
.form-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.remember-me {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 8px;
  transition: background-color 0.2s ease;
}

.remember-me:hover {
  background-color: rgba(55, 218, 224, 0.05);
}

.remember-me input[type="checkbox"] {
  appearance: none;
  width: 22px;
  height: 22px;
  border: 2px solid #d1d5db;
  border-radius: 6px;
  cursor: pointer;
  position: relative;
  margin: 0;
  background: white;
  transition: all 0.3s ease;
}

.remember-me input[type="checkbox"]:hover {
  border-color: #37dae0;
}

.remember-me input[type="checkbox"]:checked {
  background: linear-gradient(135deg, #37dae0 0%, #42f8ff 100%);
  border-color: #37dae0;
}

.remember-me input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  left: 12px;
  top: 8px;
  width: 4px;
  height: 12px;
  border: solid white;
  border-width: 0 3px 3px 0;
  transform: rotate(45deg);
}

.remember-me label {
  font-size: 0.9rem;
  color: #686868;
  margin: 0;
  cursor: pointer;
}

.terms {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 8px;
  transition: background-color 0.2s ease;
}

.terms:hover {
  background-color: rgba(55, 218, 224, 0.05);
}

.terms input[type="checkbox"] {
  appearance: none;
  width: 18px;
  height: 18px;
  border: 2px solid #d1d5db;
  border-radius: 6px;
  cursor: pointer;
  position: relative;
  margin: 0;
  background: white;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.terms input[type="checkbox"]:hover {
  border-color: #37dae0;
}

.terms input[type="checkbox"]:checked {
  background: linear-gradient(135deg, #37dae0 0%, #42f8ff 100%);
  border-color: #37dae0;
}

.terms input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  left: 12px;
  top: 8px;
  width: 4px;
  height: 12px;
  border: solid white;
  border-width: 0 3px 3px 0;
  transform: rotate(45deg);
}

.terms label {
  font-size: 0.9rem;
  color: #686868;
  cursor: pointer;
  line-height: 1.4;
}

.terms-link {
  color: #37dae0;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}

.terms-link:hover {
  color: #2ec4ca;
}

.forgot-password {
  color: #37dae0;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  padding: 0.5rem;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.forgot-password:hover {
  background-color: rgba(55, 218, 224, 0.05);
  color: #2ec4ca;
}

.auth-button {
  width: 100%;
  padding: 16px 24px;
  background: linear-gradient(135deg, #37dae0 0%, #42f8ff 100%);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 1rem;
  box-shadow: 0 4px 12px rgba(55, 218, 224, 0.3);
}

.auth-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(55, 218, 224, 0.4);
}

.auth-button:active {
  transform: translateY(0);
  box-shadow: 0 4px 12px rgba(55, 218, 224, 0.3);
}

.auth-button:disabled {
  background: #cccccc;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.auth-redirect {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 0.95rem;
  color: #686868;
  line-height: 1.5;
}

.auth-link {
  color: #37dae0;
  font-weight: 600;
  text-decoration: none;
  margin-left: 0.25rem;
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.auth-link:hover {
  background-color: rgba(55, 218, 224, 0.05);
  color: #2ec4ca;
}

/* Google Auth Button */
.google-auth-button {
  width: 100%;
  padding: 14px 20px;
  background: white;
  color: #444;
  border: 1px solid #ddd;
  border-radius: 12px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  margin-top: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.google-auth-button:active {
  background-color: #f8f8f8;
}

.google-icon {
  width: 20px;
  height: 20px;
}

/* Auth Separator */
.auth-separator {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 1.5rem 0;
  color: #888;
}

.auth-separator::before,
.auth-separator::after {
  content: '';
  flex: 1 1;
  border-bottom: 1px solid #ddd;
}

.auth-separator span {
  padding: 0 10px;
  font-size: 0.9rem;
  font-weight: 500;
}

/* Add these styles to the end of your Auth.css file */

.error-message {
  color: #e74c3c;
  font-size: 0.85rem;
  margin-top: 0.25rem;
  font-weight: 500;
  text-align: left;
  animation: fadeIn 0.3s ease;
}

.terms-error {
  margin-top: 0.5rem;
  margin-left: 1.75rem;
}

.input-error {
  border-color: #e74c3c !important;
  box-shadow: 0 4px 12px rgba(231, 76, 60, 0.1) !important;
}

.input-error:focus {
  box-shadow: 0 6px 16px rgba(231, 76, 60, 0.15), 0 0 0 3px rgba(231, 76, 60, 0.1) !important;
}

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

.password-requirements {
  font-size: 0.75rem;
  color: #666;
  margin-top: 5px;
}

.auth-error {
  background-color: #fdecea;
  color: #e74c3c;
  padding: 10px;
  border-radius: 4px;
  margin-bottom: 15px;
  text-align: center;
}

.auth-error {
  background: linear-gradient(135deg, #ffebee, #fce4ec);
  color: #d32f2f;
  padding: 1rem 1.25rem;
  border-radius: 12px;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  text-align: center;
  border: 1px solid rgba(244, 67, 54, 0.2);
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .auth-content {
    max-width: 900px;
  }
}

@media (max-width: 768px) {
  .auth-left {
    display: none;
  }
  
  .auth-content {
    justify-content: center;
    margin: 1rem;
    border-radius: 20px;
  }
  
  .auth-form {
    padding: 2rem 1.5rem;
    margin-top: -5px;
  }
  
  .form-row {
    flex-direction: column;
    gap: 0 !important;
    margin: 0px !important;
  }
  
  .auth-button {
    padding: 16px 20px;
    font-size: 1.1rem;
  }
}

@media (max-width: 480px) {
  .auth-container {
    padding: 1rem;
  }
  
  .auth-content {
    margin: 0;
    border-radius: 16px;
  }
  
  .auth-form {
    padding: 1.5rem 1rem;
  }
  
  .auth-header .logo img {
    height: 80px;
  }
  
  .auth-header .logo span {
    font-size: 3rem;
    margin-top: 45px;
  }
  
  .auth-tabs {
    gap: 1rem;
    justify-content: center;
  }
  
  .auth-tab {
    font-size: 1.2rem;
    padding: 0.5rem 0.75rem;
  }
  
  .form-input {
    padding: 12px 14px;
    font-size: 0.95rem;
  }
  
  .auth-button {
    padding: 14px 18px;
    font-size: 1rem;
  }
}
.user-navbar {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  padding: 0.75rem 1.5rem;
  background-color: white;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: 60px;
}

.user-menu-button {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: transparent;
  border: none;
  cursor: pointer;
  margin-right: 0.75rem;
  margin-left: -5px;
  padding: 12px;
  border-radius: 50%;
  transition: background 0.3s ease;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
}

.user-menu-button:hover {
  background: rgba(206, 208, 212, 0.5);
}

.user-menu-button span {
  display: block;
  width: 24px;
  height: 2px;
  background: linear-gradient(180deg, #37dae0cc 0%, #42f8ffcc 100%);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.user-menu-button:hover span {
  transform: scaleX(1.1);
}

.user-nav-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px;
  width: 100%;
}

.user-logo {
  display: flex;
  align-items: flex-end;
  gap: 0.5rem;
  text-decoration: none;
  height: 40px;
  position: relative;
}

.user-logo img {
  height: 40px;
  align-self: center;
}

.user-logo span {
  font-size: 2.5rem;
  font-weight: bold;
  color: #3ee7eccc;
  line-height: 1;
  position: relative;
  top: 3px;
}

.user-nav-right {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.user-tokens-display {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: #f5f5f5;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.user-tokens-display:hover {
  background: #eeeeee;
}

.token-icon {
  width: 28px;
  height: 28px;
}

.token-count {
  font-weight: 600;
  font-size: 1.1rem;
}

.token-info-popup {
  position: absolute;
  top: 45px;
  left: -140px;
  width: 320px;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(55, 218, 224, 0.15);
  z-index: 1000;
}

.token-info-popup::before {
  content: '';
  position: absolute;
  top: -8px;
  right: 120px;
  width: 16px;
  height: 16px;
  background: #ffffff;
  transform: rotate(45deg);
}

.token-info-header {
  padding: 16px 20px;
  border-bottom: 2px solid rgba(55, 218, 224, 0.2);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #ffffff;
  border-radius: 14px 14px 0 0;
}

.token-info-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #222222;
  letter-spacing: 0.5px;
}

.token-info-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #222222;
  background: transparent;
  border: none;
  cursor: pointer;
}


.token-info-content {
  padding: 20px;
}

.token-info-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  margin-bottom: 12px;
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid rgba(55, 218, 224, 0.2);
  transition: all 0.2s ease;
}

.token-info-item:hover {
  border-color: #37dae0;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(55, 218, 224, 0.1);
}

.token-info-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: #24e0ee;
  background: transparent;
  border-radius: 10px;
  transition: transform 0.2s ease;
}

.token-info-item:hover .token-info-icon {
  transform: scale(1.1);
}

.token-info-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #222222;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.token-info-close:hover {
  transform: rotate(90deg);
  color: #37dae0;
}

.token-info-text {
  flex: 1 1;
}

.token-info-text h4 {
  color: rgb(54, 54, 54);
  margin: 0 0 4px;
  font-size: 0.95rem;
}

.token-info-text p {
  color: #999999;
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.4;
}

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

.user-notifications-container {
  position: relative;
}

.user-notifications-button {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.user-timer-button:hover {
  transform: translateY(-1px);
}

.user-timer-button img {
  width: 24px;
  height: 24px;
  filter: brightness(0) saturate(100%) invert(80%) sepia(72%) saturate(456%) hue-rotate(140deg) brightness(95%) contrast(98%);
  transition: all 0.3s ease;
}

.user-timer-button:hover img {
  filter: brightness(0) saturate(100%) invert(89%) sepia(54%) saturate(776%) hue-rotate(140deg) brightness(103%) contrast(98%);
  color: #37dae0;
  transition: all 0.3s ease;
}

.user-notifications-button:hover {
  transform: translateY(-1px);
  color: #42f8ff;
}

.user-notification-count {
  position: absolute;
  top: -8px;
  right: -8px;
  background: #37dae0;
  color: white;
  font-size: 0.65rem;
  padding: 1px 5px;
  border-radius: 1rem;
  font-weight: 500;
}

.user-timer-button {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.user-timer-button:hover,
.user-notifications-button:hover {
  opacity: 0.8;
}

.user-profile-section {
  margin-left: 10px;
}

.user-profile-dropdown {
  display: flex;
  align-items: center;
  gap: 8px;
  background: white;
  padding: 12px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.user-profile-dropdown:hover {
  background: rgba(55, 218, 224, 0.1);
}

.profile-avatar-container {
  position: relative;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.user-profile-image {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  position: relative;
  z-index: 1;
}

.profile-border-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 150%;
  height: 150%;
  object-fit: contain;
  pointer-events: none;
  z-index: 2;
}

.user-profile-name {
  color: #333;
  font-weight: 500;
  font-size: 0.9rem;
}

.user-dropdown-icon {
  color: #37dae0;
  font-size: 10px;
}

/* ====================== */
/* User Dropdown Menu     */
/* ====================== */
.user-dropdown-menu {
  position: absolute;
  right: 10px;
  top: calc(100% + -10px);
  width: 220px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 1001;
  overflow: hidden;
  animation: fadeIn 0.2s ease-out;
}

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

.dropdown-header {
  padding: 12px 16px;
  border-bottom: 1px solid #f0f0f0;
  display: flex;
}

.dropdown-username {
  font-weight: 600;
  color: #333;
}

.dropdown-item {
  display: flex;
  text-decoration: none;
  align-items: center;
  padding: 12px 16px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.dropdown-item:hover {
  background-color: #f8f8f8;
}

.dropdown-icon {
  width: 20px;
  margin-right: 12px;
  color: #37dae0;
  font-size: 0.9rem;
}

.dropdown-text {
  text-decoration: none;
  display: flex;
  width: 100%;
  justify-content: space-between;
  font-size: medium;
}

.token-icon {
  width: 16px;
  height: 16px;
  margin-right: 6px;
  vertical-align: middle;
}

.token-count {
  font-weight: 600;
  color: #FFBE32;
  display: flex;
  align-items: center;
}

.dropdown-divider {
  height: 1px;
  background-color: #f0f0f0;
  margin: 4px 0;
}


/* ====================== */
/* Sidebar Styles         */
/* ====================== */
.sidebar {
  width: 230px;
  background-color: white;
  display: flex;
  flex-direction: column;
  height: calc(100vh - 60px);
  position: fixed;
  margin-left: -30px;
  left: 0;
  top: 60px;
  padding: 20px 10px 40px 40px;
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 999;
  overflow-x: hidden;
}

.sidebar.collapsed {
  width: 50px;
}

.sidebar-menu {
  flex: 1 1;
  padding: 10px 0;
}

.sidebar-item {
  display: flex;
  align-items: center;
  padding: 23px 26px;
  text-decoration: none;
  color: var(--text-color);
  transition: padding 0.3s ease, background-color 0.3s ease;
  margin: 0 8px 4px 0px;
  font-size: 1.1rem;
  margin-left: -5px;
  white-space: nowrap;
  overflow: hidden;
  position: relative;
  border-radius: 8px;
  justify-content: flex-start;
}

.sidebar-item:hover {
  background-color: rgba(55, 218, 224, 0.1);
  border-radius: 16px;
}

.sidebar-item.active {
  background-color: rgba(83, 185, 234, 0.1);
  color: #53B9EA;
  width: 190px;
  font-weight: 600;
}

.sidebar-item.active::before {
  content: "";
  position: absolute;
  left: -10px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 14px;
  background-color: #53B9EA;
  border-radius: 0 8px 8px 0;
  box-shadow: 0 0 8px 2px rgba(83, 185, 234, 0.7);
}

.sidebar-icon {
  min-width: 24px;
  width: 24px;
  height: 24px;
  margin-right: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  left: 16px;
  transition: none;
  flex-shrink: 0;
}

.sidebar-item span {
  opacity: 1;
  padding-left: 50px;
  transition: opacity 0.2s cubic-bezier(0.4, 0, 0.2, 1),
              visibility 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  visibility: visible;
}

.sidebar-footer {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}

.sidebar-button {
  display: flex;
  align-items: center;
  padding: 12px;
  border-radius: 12px;
  text-decoration: none;
  color: white;
  font-weight: 700;
  transition: all 0.3s ease;
  font-size: 1.2rem;
  margin: 0 8px;
  white-space: nowrap;
  overflow: hidden;
  width: 40px; 
  height: 30px; 
}

/* Expanded state */
.sidebar:not(.collapsed) .sidebar-button {
  width: 160px;
  padding: 12px 20px;
  margin: 15px;
  justify-content: flex-start;
}


/* Expanded state */
.sidebar:not(.collapsed) .sidebar-button {
  width: 165px;
  padding: 12px 20px;
  margin: 10px;
  justify-content: flex-start;
}

.shop-button {
  background-color: #FFDF28;
}

.shop-button:hover {
  transform: scale(1.05);
  transition: 0.3s;
}

.inventory-button {
  background-color: #73FFB2;
}

.inventory-button:hover {
  transform: scale(1.05);
  transition: 0.3s;
}

.shop-icon, 
.inventory-icon {
  margin-right: 8px;
}

/* Collapsed Sidebar States */
.sidebar.collapsed .sidebar-item,
.sidebar.collapsed .sidebar-button {
  padding: 15px 16px;
}

.sidebar.collapsed .sidebar-item span,
.sidebar.collapsed .sidebar-button span {
  opacity: 0;
  visibility: hidden;
  transition-delay: 0s;
}

.sidebar.collapsed .sidebar-icon {
  left: 18px;
}

.sidebar.collapsed .sidebar-footer {
  align-items: center;
}

.sidebar.collapsed .sidebar-button {
  width: 30px;
  height: 30px;
  justify-content: center;
  padding: 8px;
  margin: 0 0 10px 0;
}

.sidebar.collapsed .sidebar-item:hover span,
.sidebar.collapsed .sidebar-button:hover span {
  opacity: 1;
  visibility: visible;
  transition-delay: 0.3s;
}

/* Collapsed sidebar hover background */
.sidebar.collapsed .sidebar-item:hover {
  background-color: rgba(55, 218, 224, 0.1);
  border-radius: 8px;
  width: 34px;
}

.sidebar.collapsed .sidebar-button:hover {
  background-color: rgba(55, 218, 224, 0.1);
  border-radius: 8px;
}

/* Remove right margin when collapsed to center icons */
.sidebar.collapsed .shop-icon,
.sidebar.collapsed .inventory-icon {
  margin-right: 0;
}

/* Hide text when collapsed */
.sidebar.collapsed .sidebar-button span {
  display: none;
}

/* Sidebar Toggle */
.sidebar-toggle {
  position: fixed;
  left: 200px;
  top: 20px;
  z-index: 100;
  background-color: #37dae0;
  color: white;
  border: none;
  border-radius: 0 4px 4px 0;
  padding: 8px 12px;
  cursor: pointer;
  transition: left 0.3s ease;
}

.collapsed + .dashboard-main .sidebar-toggle {
  left: 60px;
}

/* Main Content */
.main-content {
  margin-left: 250px;
  margin-top: 60px; /* Add margin-top to account for fixed navbar */
  transition: margin-left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar.collapsed ~ .main-content {
  margin-left: 70px;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-100%);
  }
  
  .sidebar.open {
    transform: translateX(0);
  }

  .main-content,
  .ud-main-content {
    margin-left: 0;
    margin-top: 60px; /* Keep margin-top for mobile */
  }
}

.pomodoro-container {
  position: fixed;
  top: 20px;
  right: 310px;
  z-index: 1000;
  width: 320px;
}

.pomodoro-close-btn {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(255, 255, 255, 0.95);
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #4a5568;
  font-size: 16px;
  transition: all 0.3s ease;
  z-index: 1001;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.pomodoro-close-btn:hover {
  background: #ffffff;
  color: #e53e3e;
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.pomodoro-timer {
    background: linear-gradient(145deg, #4DD0E1 0%, #80DEEA 100%);
    border-radius: 16px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    position: relative;
    box-shadow: 0 4px 16px rgba(77, 208, 225, 0.15);
    -webkit-backdrop-filter: blur(5px);
            backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.timer-display {
  background: rgba(255, 255, 255, 0.95);
  padding: 12px 24px;
  border-radius: 25px;
  font-size: 28px;
  font-weight: bold;
  color: #2d3748;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  min-width: 120px;
  text-align: center;
  font-family: 'Courier New', monospace;
}

.timer-button {
  background: linear-gradient(145deg, #FFB800, #FFA000);
  border: none;
  border-radius: 10px;
  padding: 0.5rem 0.875rem;
  font-weight: bold;
  width: 100px;
  color: white;
  margin: 0 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(255, 184, 0, 0.2);
}

.timer-button:hover {
  background: linear-gradient(145deg, #FFC107, #FFB300);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 184, 0, 0.3);
}

.timer-button:active {
  background: linear-gradient(145deg, #FF9800, #FF8F00);
  transform: translateY(0);
  box-shadow: 0 1px 4px rgba(255, 184, 0, 0.2);
}

.timer-reset-btn {
  background: linear-gradient(145deg, #FF6B6B, #FF5252) !important;
  width: 80px !important;
  border-radius: 10px !important;
  padding: 0.5rem 0.875rem !important;
  box-shadow: 0 2px 8px rgba(255, 107, 107, 0.2) !important;
}

.timer-reset-btn:hover {
  background: linear-gradient(145deg, #FF8A80, #FF6B6B) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 12px rgba(255, 107, 107, 0.3) !important;
}

.settings-icon {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(255, 255, 255, 0.25);
  border: none;
  cursor: pointer;
  color: white;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  -webkit-backdrop-filter: blur(5px);
          backdrop-filter: blur(5px);
}

.settings-icon:hover {
  background: rgba(255, 255, 255, 0.4);
}

.settings-view {
  gap: 5px;
  background: linear-gradient(145deg, #4DD0E1 0%, #80DEEA 100%);
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 4px 16px rgba(77, 208, 225, 0.15);
  -webkit-backdrop-filter: blur(5px);
          backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.cbox-group-gap {
  margin-bottom: 10px;
}
.timer-input-group {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 2px;
}

.timer-input-group label {
  color: white;
  font-weight: 600;
  font-size: 13px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  margin-right: 8px;
}

.timer-input-group input {
  width: 40px;
  padding: 6px 8px;
  border: none;
  border-radius: 8px;
  text-align: center;
  -moz-appearance: textfield;
  background: rgba(255, 255, 255, 0.95);
  color: #2d3748;
  font-weight: 600;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

.timer-input-group input:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 1);
}

.timer-input-group input::-webkit-outer-spin-button,
.timer-input-group input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.timer-input-group input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: #FFB800;
  border-radius: 4px;
}

.timer-input-group label {
  font-size: 13px;
  white-space: nowrap;
  font-weight: 600;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.settings-view {
  padding: 20px;
}

.start-button {
  background: linear-gradient(145deg, #FFB800, #FFA000);
  border: none;
  border-radius: 12px;
  padding: 10px 16px;
  cursor: pointer;
  font-weight: bold;
  color: white;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(255, 184, 0, 0.3);
}

.start-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 184, 0, 0.4);
}

/* Session status styling */
.timer-session-status {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.9);
  text-align: center;
  margin-bottom: 8px;
  font-weight: 500;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  background: rgba(255, 255, 255, 0.1);
  padding: 4px 12px;
  border-radius: 12px;
  -webkit-backdrop-filter: blur(5px);
          backdrop-filter: blur(5px);
}

.timer-controls {
  display: flex;
  flex-direction: column;
  gap: 8px; 
  align-items: center;
  margin-top: 12px; 
}

.settings-button {
  position: absolute;
  top: 18px; 
  right: 18px;
  background: transparent;
  border: none;
  color: #333;
  padding: 0;
  width: auto;
}

.timer-settings {
  background: white;
  border-radius: 15px;
  padding: 18px; 
  margin-top: 12px; 
}

.setting-group {
  margin-bottom: 12px; 
}

.setting-group label {
  display: block;
  text-align: left;
  margin-bottom: 5px;
  color: #333;
}

.setting-group input {
  width: 100%;
  padding: 7px; 
  border: 1px solid #ddd;
  border-radius: 50px;
  text-align: center;
}

.settings-buttons {
  display: flex;
  gap: 8px; 
  margin-top: 12px; 
}

.settings-buttons button {
  flex: 1 1;
  padding: 7px; 
  border: none;
  border-radius: 50px;
  cursor: pointer;
  background-color: #FFDF28;
  color: #333;
}

.notifications-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  width: 350px;
  max-height: 480px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  z-index: 1002;
  overflow: hidden;
  border: 1px solid #e5e7eb;
}

.notifications-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid #f0f0f0;
  background: #fafafa;
}

.notifications-header h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: #333;
}

.close-notifications {
  background: none;
  border: none;
  cursor: pointer;
  color: #6b7280;
  padding: 6px;
  border-radius: 4px;
  transition: background-color 0.2s ease;
}

.close-notifications:hover {
  background: #f3f4f6;
  color: #374151;
}

.notifications-content {
  max-height: 350px;
  overflow-y: auto;
}

.notification-loading {
  padding: 40px 20px;
  text-align: center;
  color: #6b7280;
  font-size: 0.9rem;
}

.no-notifications {
  padding: 40px 20px;
  text-align: center;
}

.no-notifications p {
  margin: 0;
  color: #6b7280;
  font-size: 0.9rem;
}

.notifications-list {
  padding: 8px 0;
}

.notification-item {
  display: flex;
  align-items: flex-start;
  padding: 12px 20px;
  border-left: 3px solid transparent;
  cursor: pointer;
  transition: background-color 0.2s ease;
  text-decoration: none;
}

.notification-item:hover {
  background: #e6f7ff;
  border-left-width: 5px;
}

.notification-item.overdue {
  border-left-color: #ef4444;
}

.notification-item.due-today {
  border-left-color: #f59e0b;
}

.notification-item.completed {
  border-left-color: #10b981;
  opacity: 0.85;
}

.notification-item.upcoming {
  border-left-color: #3b82f6;
}

.notification-icon {
  margin-right: 12px;
  margin-top: 2px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
}

.notification-content {
  flex: 1 1;
  min-width: 0;
}

.notification-title {
  font-weight: 500;
  color: #374151;
  font-size: 0.9rem;
  line-height: 1.4;
  margin-bottom: 4px;
  word-wrap: break-word;
}

.notification-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.notification-date {
  font-size: 0.8rem;
  color: #6b7280;
}

.notification-status {
  font-size: 0.75rem;
  font-weight: 500;
  padding: 2px 8px;
  border-radius: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.notification-status.overdue {
  background: #fef2f2;
  color: #dc2626;
}

.notification-status.due-today {
  background: #fffbeb;
  color: #d97706;
}

.notification-status.upcoming {
  background: #f0f9ff;
  color: #0369a1;
}

.notification-status.completed {
  background: #f0fdf4;
  color: #059669;
}

.notifications-footer {
  padding: 12px 20px;
  border-top: 1px solid #f0f0f0;
  background: #fafafa;
}

.view-all-tasks {
  display: block;
  text-align: center;
  color: #37dae0;
  text-decoration: none;
  font-size: 0.9rem;
  padding: 8px;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.view-all-tasks:hover {
  background: rgba(55, 218, 224, 0.1);
  color: #2dd4da;
}

.notifications-content::-webkit-scrollbar {
  width: 6px;
}

.notifications-content::-webkit-scrollbar-track {
  background: #f1f1f1;
}

.notifications-content::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 3px;
}

.notifications-content::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}

/* Profile.css - Professional Design */
.prf-container {
  max-width: 80rem;
  margin: 0 auto;
  background: transparent;
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Inter', sans-serif;
  padding-bottom: 3rem;
}

/* Top Navigation */
.prf-top-nav {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  padding: 1.5rem;
  margin-bottom: 1rem;
}

/* Feature Buttons */
.prf-feature-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  border-radius: 0.5rem;
  font-weight: 500;
  font-size: 0.875rem;
  border: 1px solid #e5e7eb;
  cursor: pointer;
  transition: all 0.2s ease;
  background: white;
  color: #6b7280;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.prf-feature-btn:hover {
  background: #f9fafb;
  border-color: #d1d5db;
  color: #374151;
}

.prf-feature-btn-active {
  background: linear-gradient(135deg, #00E0E9 0%, #86FAFF 100%);
  color: white;
  border-color: transparent;
  box-shadow: 0 1px 3px rgba(0, 224, 233, 0.2);
  font-weight: 600;
}

.prf-feature-btn-active:hover {
  box-shadow: 0 2px 4px rgba(0, 224, 233, 0.25);
}

/* Profile Header - Professional Design */
.prf-header {
  margin: 0 1.5rem 2rem 1.5rem;
  background: linear-gradient(135deg, #00E0E9 0%, #86FAFF 100%);
  border-radius: 1rem;
  padding: 2.5rem 2rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* Animated Wave Background */
.prf-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 200%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.15),
    transparent
  );
  animation: prf-wave 3s infinite ease-in-out;
  pointer-events: none;
}

@keyframes prf-wave {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

/* Background Elements - Subtle */
.prf-bg-circles {
  position: absolute;
  inset: 0;
  opacity: 0.08;
  pointer-events: none;
}

.prf-bg-circle {
  position: absolute;
  border: 1px solid white;
  border-radius: 50%;
}

.prf-bg-circle-1 {
  top: -2rem;
  right: 2rem;
  width: 12rem;
  height: 12rem;
}

.prf-bg-circle-2 {
  bottom: -3rem;
  left: 1rem;
  width: 10rem;
  height: 10rem;
}

.prf-bg-circle-3 {
  top: 40%;
  right: 25%;
  width: 6rem;
  height: 6rem;
}

/* Floating Particles - Most Visible and Animated */
.prf-particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}

.prf-particle {
  position: absolute;
  width: 8px;
  height: 8px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  animation: prf-float 12s infinite ease-in-out;
  box-shadow: 
    0 0 15px rgba(255, 255, 255, 0.8),
    0 0 30px rgba(255, 255, 255, 0.4);
  filter: blur(0.5px);
}

/* Main floating animation */
@keyframes prf-float {
  0%, 100% {
    transform: translateY(0px) translateX(0px) scale(1) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 0.8;
  }
  50% {
    transform: translateY(-60px) translateX(30px) scale(1.3) rotate(180deg);
    opacity: 1;
  }
  90% {
    opacity: 0.8;
  }
}

/* Variety in animations */
.prf-particle:nth-child(3n) {
  animation-name: prf-float-2;
  width: 6px;
  height: 6px;
}

@keyframes prf-float-2 {
  0%, 100% {
    transform: translateY(0px) translateX(0px) scale(1);
    opacity: 0;
  }
  15% {
    opacity: 0.7;
  }
  60% {
    transform: translateY(-50px) translateX(-25px) scale(1.4);
    opacity: 1;
  }
  85% {
    opacity: 0.7;
  }
}

.prf-particle:nth-child(5n) {
  animation-name: prf-float-3;
  width: 10px;
  height: 10px;
}

@keyframes prf-float-3 {
  0%, 100% {
    transform: translateY(0px) translateX(0px) scale(1);
    opacity: 0;
  }
  20% {
    opacity: 0.6;
  }
  70% {
    transform: translateY(-70px) translateX(40px) scale(1.5);
    opacity: 1;
  }
  80% {
    opacity: 0.6;
  }
}

/* Random delays and durations */
.prf-particle:nth-child(odd) {
  animation-delay: calc(0 * 0.5s);
  animation-delay: calc(var(--i, 0) * 0.5s);
}

.prf-particle:nth-child(even) {
  animation-duration: calc(10s + (0 * 2s));
  animation-duration: calc(10s + (var(--i, 0) * 2s));
}

/* Profile Content - Improved Layout */
.prf-content {
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-gap: 2.5rem;
  gap: 2.5rem;
  align-items: center;
  position: relative;
  z-index: 10;
}

/* Profile Picture Section */
.prf-avatar-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.prf-picture-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

/* Recommended Final Version */
.prf-picture-container {
  position: relative;
  width: 104px; /* Slightly larger to accommodate gap */
  height: 104px; /* Slightly larger to accommodate gap */
  border-radius: 50%;
  overflow: visible;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
}

.prf-border-overlay {
  position: absolute;
  width: 128px; /* 104px container + 12px border on each side */
  height: 128px;
  border-radius: 50%;
  object-fit: contain;
  z-index: 2;
  pointer-events: none;
  background: transparent;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* Ensure the picture container maintains proper sizing with border */
.prf-picture-container.with-border {
  border: none; /* Remove the default border when custom border is applied */
}

.prf-picture-container:hover {
  transform: scale(1.02);
  border-color: white;
}

.prf-picture {
  width: 70px; /* Original avatar size */
  height: 70px; /* Original avatar size */
  object-fit: cover;
  border-radius: 50%;
  position: relative;
  z-index: 1;
  /* The 2px gap is created automatically by the container being 104px and avatar 100px */
}

.prf-picture-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.prf-picture-container:hover .prf-picture-overlay {
  opacity: 1;
}

.prf-edit-picture-btn {
  background: white;
  padding: 10px;
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  color: #374151;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.prf-edit-picture-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.prf-edit-picture-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.prf-upload-controls {
  position: absolute;
  bottom: -60px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 0.75rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  white-space: nowrap;
  min-width: 200px;
}

.prf-selected-file {
  font-size: 0.75rem;
  color: #374151;
  font-weight: 500;
  max-width: 180px;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}

.prf-upload-buttons {
  display: flex;
  gap: 0.5rem;
}

.prf-upload-btn {
  padding: 0.4rem 0.9rem;
  border: none;
  border-radius: 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  background: linear-gradient(135deg, #00E0E9 0%, #86FAFF 100%);
  color: #1f2937;
}

.prf-upload-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 224, 233, 0.3);
}

.prf-upload-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Name and Status Section */
.prf-name-status-section {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.prf-name-field {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.prf-name {
  font-size: 2.25rem;
  font-weight: 700;
  color: white;
  margin: 0;
  letter-spacing: -0.02em;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.prf-title-container1 {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.prf-title-container2 {
  padding: 0.375rem 0.875rem;
  border-radius: 0.375rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.prf-title {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  color: white;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.prf-title-badge {
  background: rgba(255, 255, 255, 0.25);
  color: white;
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Edit Profile Button */
.prf-edit-profile-btn {
  background: linear-gradient(135deg, #FD9D30 0%, #FFDF29 100%);
  color: #ffffff;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 600;
  font-size: 0.9375rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: none;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(253, 157, 48, 0.2);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.prf-edit-profile-btn:hover {
  background: linear-gradient(135deg, #FFB04D 0%, #FFE34D 100%);
  box-shadow: 0 3px 6px rgba(253, 157, 48, 0.25);
}

.prf-edit-profile-btn:active {
  transform: translateY(1px);
}

/* Profile Info Section */
.prf-info-sections-container {
  margin: 0 1.5rem 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.prf-info-section {
  margin: 0 1.5rem 2rem 1.5rem;
  background: white;
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  border: 1px solid #e5e7eb;
}

.prf-info-section-box {
  background: white;
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  border: 1px solid #e5e7eb;
}

.prf-section-title {
  font-size: 1.75rem; /* Increased from 1.5rem */
  font-weight: 700; /* Made bolder */
  color: #111827;
  margin-bottom: 2rem; /* Increased spacing */
  display: flex;
  align-items: center;
  gap: 0.75rem;
  letter-spacing: -0.01em;
}

.prf-title-bar {
  width: 0.25rem;
  height: 1.5rem;
  background: linear-gradient(180deg, #00E0E9 0%, #86FAFF 100%);
  border-radius: 0.125rem;
}

/* Info Items */
.prf-info-section-inner h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: #111827;
  margin-bottom: 1.25rem;
}

.prf-info-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 1.25rem 0; /* Increased padding */
  border-bottom: 1px solid #f3f4f6;
  transition: all 0.15s ease;
  position: relative;
  gap: 0.5rem; /* Increased gap */
}

.prf-info-item:last-child {
  border-bottom: none;
}

.prf-info-item:hover {
  padding-left: 0.5rem;
}

.prf-info-label {
  font-weight: 600; /* Made bolder */
  color: #4b5563; /* Darker color for better readability */
  font-size: 1.125rem; /* Increased from 0.9375rem */
  margin-bottom: 0.5rem; /* Increased spacing */
}

.prf-info-value {
  font-weight: 600; /* Made bolder */
  color: #111827;
  font-size: 1.25rem; /* Increased from 0.9375rem */
  order: 2;
  line-height: 1.4; /* Better line height */
}

.prf-edit-placeholder {
  position: absolute;
  right: 0;
  top: 1.25rem; /* Adjusted position */
  font-weight: 600; /* Made bolder */
  color: #00E0E9;
  font-size: 1.2rem; /* Increased from 0.875rem */
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 0.5rem 0.75rem; /* Increased padding */
  border-radius: 0.375rem;
}
.prf-edit-placeholder:hover {
  background-color: #f0fdff;
  color: #00b8c4;
}

/* Inline Editing */
.prf-edit-field, .prf-display-field {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.prf-edit-field.prf-inline, .prf-display-field.prf-inline {
  display: inline-flex;
}

.prf-edit-input {
  padding: 0.6rem 0.9rem;
  border: 2px solid #e5e7eb;
  border-radius: 0.5rem;
  font-size: 0.95rem;
  transition: all 0.2s ease;
  background: white;
}

.prf-edit-input:focus {
  outline: none;
  border-color: #00E0E9;
  box-shadow: 0 0 0 3px rgba(0, 224, 233, 0.1);
}

.prf-edit-textarea {
  width: 100%;
  min-height: 140px;
  padding: 1rem 1.2rem;
  border-radius: 0.9rem;
  border: 2px solid #e5e7eb;
  background: #f9fafb;
  font-size: 1rem;
  color: #1f2937;
  resize: vertical;
  transition: all 0.2s ease;
  font-family: inherit;
  line-height: 1.6;
}

.prf-edit-textarea:focus {
  outline: none;
  border-color: #00E0E9;
  background: white;
  box-shadow: 0 0 0 3px rgba(0, 224, 233, 0.2);
}

.prf-edit-buttons {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
}

.prf-edit-field-btn {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  background: rgba(107, 114, 128, 0.1);
  color: #6b7280;
  border: 1px solid rgba(107, 114, 128, 0.2);
}

.prf-edit-field-btn:hover {
  background: rgba(107, 114, 128, 0.2);
  color: #374151;
  transform: translateY(-2px);
}

/* Action Buttons */
.prf-save-btn {
  background: linear-gradient(135deg, #10b981 0%, #34d399 100%);
  color: #ffffff;
  padding: 0.65rem 1.3rem;
  border-radius: 0.65rem;
  font-weight: 600;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 8px rgba(16, 185, 129, 0.2);
  transition: all 0.2s ease;
}

.prf-save-btn:hover:not(:disabled) {
  background: linear-gradient(135deg, #059669 0%, #10b981 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(16, 185, 129, 0.3);
}

.prf-save-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.prf-cancel-btn {
  background: linear-gradient(135deg, #ef4444 0%, #f87171 100%);
  color: #ffffff;
  padding: 0.65rem 1.3rem;
  border-radius: 0.65rem;
  font-weight: 600;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 8px rgba(239, 68, 68, 0.2);
}

.prf-cancel-btn:hover:not(:disabled) {
  background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(239, 68, 68, 0.3);
}

.prf-cancel-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Bio Display */
.prf-bio-display {
  background: #f9fafb;
  border-radius: 0.5rem;
  padding: 1.25rem;
  border: 1px solid #f3f4f6;
}

.prf-bio-display p {
  color: #4b5563;
  line-height: 1.6;
  margin: 0;
  font-size: 0.9375rem;
}

.prf-edit-form-grid {
  display: grid;
  grid-gap: 1.5rem;
  gap: 1.5rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .prf-content {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }
  
  .prf-name-status-section {
    align-items: center;
  }
  
  .prf-edit-profile-btn {
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .prf-header {
    padding: 2rem 1.5rem;
  }
  
  .prf-name {
    font-size: 2rem;
  }
  
  .prf-picture-container {
    width: 100px;
    height: 100px;
  }
  
  .prf-info-section {
    padding: 1.5rem;
  }
  
  .prf-info-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  
  .prf-top-nav {
    justify-content: center;
  }

  .prf-info-item {
    padding: 0.75rem 0;
  }
  
  .prf-edit-placeholder {
    position: relative;
    top: auto;
    right: auto;
    align-self: flex-end;
    margin-top: 0.25rem;
    margin-bottom: 0.25rem;
    order: 1;
  }
  
  .prf-info-value {
    order: 3;
    width: 100%;
  }
}

@media (max-width: 480px) {
  .prf-name {
    font-size: 1.75rem;
  }
  
  .prf-status-badges {
    justify-content: center;
  }
  
  .prf-edit-buttons {
    flex-direction: column;
    width: 100%;
  }
  
  .prf-save-btn, .prf-cancel-btn {
    width: 100%;
  }
}
/* Danger Zone Section - Subtle */
.prf-danger-zone {
  padding: 2rem;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 1rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.prf-danger-zone-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.prf-danger-zone-text {
  flex: 1 1;
  min-width: 300px;
}

.prf-danger-zone-text h5 {
  color: #111827;
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.prf-danger-zone-text p {
  color: #6b7280;
  font-size: 1rem;
  line-height: 1.5;
  margin: 0;
  font-weight: 400;
}

.prf-deactivate-btn {
  padding: 0.75rem 1.5rem;
  background: #ef4444;
  color: white;
  border: none;
  border-radius: 0.5rem;
  font-weight: 600;
  font-size: 0.9375rem;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.prf-deactivate-btn:hover {
  background: #dc2626;
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.prf-deactivate-btn:active {
  transform: translateY(0);
}

/* Responsive Design for Danger Zone */
@media (max-width: 768px) {
  .prf-danger-zone {
    padding: 1.5rem;
    margin-top: 2.5rem;
  }

  .prf-danger-zone-content {
    flex-direction: column;
    align-items: stretch;
    gap: 1.5rem;
  }

  .prf-danger-zone-text {
    min-width: auto;
  }

  .prf-deactivate-btn {
    width: 100%;
  }
}

/* Avatars Section */
.prf-avatars-section {
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid #e5e7eb;
}

.prf-avatars-description {
  color: #6b7280;
  font-size: 1rem;
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

.prf-avatars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  grid-gap: 1.5rem;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.prf-avatar-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  border-radius: 0.75rem;
  border: 2px solid #e5e7eb;
  background: white;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.prf-avatar-item:hover {
  border-color: #00E0E9;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 224, 233, 0.15);
}

.prf-avatar-selected {
  border-color: #00E0E9;
  background: #f0fdff;
  box-shadow: 0 4px 12px rgba(0, 224, 233, 0.2);
}

.prf-avatar-image-container {
  position: relative;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid #e5e7eb;
  transition: all 0.2s ease;
}

.prf-avatar-item:hover .prf-avatar-image-container {
  border-color: #00E0E9;
}

.prf-avatar-selected .prf-avatar-image-container {
  border-color: #00E0E9;
  box-shadow: 0 2px 8px rgba(0, 224, 233, 0.3);
}

.prf-avatar-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.2s ease;
}

.prf-avatar-item:hover .prf-avatar-image {
  transform: scale(1.1);
}

.prf-avatar-selected-indicator {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 24px;
  height: 24px;
  background: linear-gradient(135deg, #00E0E9 0%, #86FAFF 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  border: 2px solid white;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.prf-avatar-name {
  font-size: 0.875rem;
  font-weight: 500;
  color: #374151;
  text-align: center;
  line-height: 1.2;
}

.prf-avatar-selected .prf-avatar-name {
  color: #00E0E9;
  font-weight: 600;
}

/* Responsive Design for Avatars */
@media (max-width: 768px) {
  .prf-avatars-grid {
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 1rem;
  }
  
  .prf-avatar-image-container {
    width: 56px;
    height: 56px;
  }
  
  .prf-avatar-item {
    padding: 0.75rem;
  }
  
  .prf-avatar-name {
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  .prf-avatars-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
  }
  
  .prf-avatar-image-container {
    width: 48px;
    height: 48px;
  }
  
  .prf-avatar-item {
    padding: 0.5rem;
  }
  
  .prf-avatar-name {
    font-size: 0.75rem;
  }
}
/* Modal Overlay and Base Styles - ADD THESE */
.prf-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  animation: fadeIn 0.2s ease;
  -webkit-backdrop-filter: blur(4px);
          backdrop-filter: blur(4px);
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.prf-modal-content {
  background: white;
  padding: 2rem;
  border-radius: 16px;
  max-width: 500px;
  width: 90%;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  animation: slideUp 0.3s ease;
  position: relative;
  z-index: 10000;
}

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

.prf-modal-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.prf-modal-text {
  color: #4b5563;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  font-size: 1rem;
  font-weight: 400;
}

/* Edit Modal Styles */
.prf-edit-modal {
  max-width: 500px;
  width: 90%;
  padding: 0;
  overflow: hidden;
}

.prf-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 1.5rem 1rem 1.5rem;
  border-bottom: 1px solid #e5e7eb;
}

.prf-modal-close {
  background: none;
  border: none;
  cursor: pointer;
  color: #6b7280;
  padding: 0.5rem;
  border-radius: 0.375rem;
  transition: all 0.2s ease;
}

.prf-modal-close:hover {
  background: #f3f4f6;
  color: #374151;
}

.prf-edit-form {
  padding: 1.5rem;
}

.prf-edit-input {
  width: 100%;
  max-width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid #e5e7eb;
  border-radius: 0.5rem;
  font-size: 1rem;
  transition: all 0.2s ease;
  background: white;
  margin-bottom: 1.5rem;
  box-sizing: border-box; /* This is the key fix */
}

.prf-edit-input:focus {
  outline: none;
  border-color: #00E0E9;
  box-shadow: 0 0 0 3px rgba(0, 224, 233, 0.1);
}

.prf-edit-textarea {
  width: 100%;
  min-height: 120px;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  border: 2px solid #e5e7eb;
  background: white;
  font-size: 1rem;
  color: #1f2937;
  resize: vertical;
  transition: all 0.2s ease;
  font-family: inherit;
  line-height: 1.5;
  margin-bottom: 1.5rem;
}

.prf-edit-textarea:focus {
  outline: none;
  border-color: #00E0E9;
  box-shadow: 0 0 0 3px rgba(0, 224, 233, 0.1);
}

/* Enhanced modal actions */
.prf-modal-actions {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
}

.prf-modal-cancel,
.prf-modal-confirm {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 0.5rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.95rem;
  min-width: 100px;
}

.prf-modal-cancel {
  background: #f3f4f6;
  color: #374151;
  border: 2px solid #e5e7eb;
}

.prf-modal-cancel:hover {
  background: #e5e7eb;
  border-color: #d1d5db;
}

.prf-modal-confirm {
  background: linear-gradient(135deg, #00E0E9 0%, #86FAFF 100%);
  color: white;
  box-shadow: 0 2px 4px rgba(0, 224, 233, 0.2);
}

.prf-modal-confirm:hover:not(:disabled) {
  background: linear-gradient(135deg, #00b8c4 0%, #6fd8e0 100%);
  box-shadow: 0 4px 8px rgba(0, 224, 233, 0.3);
  transform: translateY(-1px);
}

.prf-modal-confirm:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Responsive design for modals */
@media (max-width: 768px) {
  .prf-modal-content {
    padding: 1.5rem;
    margin: 1rem;
    width: calc(100% - 2rem);
  }
  
  .prf-edit-modal {
    width: calc(100% - 2rem);
  }
  
  .prf-modal-header {
    padding: 1.25rem 1.25rem 0.75rem 1.25rem;
  }
  
  .prf-edit-form {
    padding: 1.25rem;
  }
  
  .prf-modal-actions {
    flex-direction: column-reverse;
    gap: 0.75rem;
  }
  
  .prf-modal-cancel,
  .prf-modal-confirm {
    width: 100%;
  }
}

/* Avatar Border Styles for Profile */

/* Responsive adjustments for border */
@media (max-width: 768px) {
  .prf-picture-container {
    width: 100px;
    height: 100px;
  }
  
  .prf-border-overlay {
    top: -6px;
    left: -6px;
    right: -6px;
    bottom: -6px;
    width: calc(100% + 12px);
    height: calc(100% + 12px);
  }
}

/* Gender Dropdown Styles */
.prf-gender-dropdown-container {
  width: 100%;
  margin-bottom: 1.5rem;
}

.prf-field-label {
  display: block;
  font-weight: 600;
  color: #374151;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.prf-gender-dropdown {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid #e5e7eb;
  border-radius: 0.5rem;
  font-size: 1rem;
  background: white;
  color: #1f2937;
  cursor: pointer;
  transition: all 0.2s ease;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 fill=%27none%27 viewBox=%270 0 24 24%27 stroke=%27%236b7280%27%3E%3Cpath stroke-linecap=%27round%27 stroke-linejoin=%27round%27 stroke-width=%272%27 d=%27M19 9l-7 7-7-7%27%3E%3C%2Fpath%3E%3C%2Fsvg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 1rem;
}

.prf-gender-dropdown:focus {
  outline: none;
  border-color: #00E0E9;
  box-shadow: 0 0 0 3px rgba(0, 224, 233, 0.1);
}

.prf-gender-dropdown:hover {
  border-color: #d1d5db;
}

/* Name Edit Fields Styles */
.prf-name-edit-fields {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.prf-name-field-group {
  flex: 1 1;
}

.prf-name-field-group .prf-edit-input {
  margin-bottom: 0;
}

/* Responsive Design for Name Fields */
@media (max-width: 768px) {
  .prf-name-edit-fields {
    flex-direction: column;
    gap: 1rem;
  }
  
  .prf-name-field-group {
    width: 100%;
  }
}

/* Fixed Responsive Password Section Styles */
.prf-password-section {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.prf-password-description {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  background: #f8fdff;
  border: 1px solid #e0f7fa;
  border-radius: 0.75rem;
  color: #00696d;
  font-size: 0.95rem;
  font-weight: 500;
}

.prf-password-description svg {
  color: #00b8c4;
  flex-shrink: 0;
}

.prf-password-fields-container {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.prf-password-fields-responsive {
  width: 100%;
  overflow: hidden;
}

.prf-password-field-group-responsive {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-gap: 1.5rem;
  gap: 1.5rem;
  width: 100%;
  align-items: start;
}

.prf-password-field-item {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-width: 0; /* Prevents overflow */
}

.prf-password-label {
  font-weight: 600;
  color: #374151;
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.prf-password-input-wrapper {
  position: relative;
  width: 100%;
}

.prf-password-input {
  width: 100%;
  padding: 0.875rem 3rem 0.875rem 1rem; /* Extra padding on right for the icon */
  border: 2px solid #e5e7eb;
  border-radius: 0.5rem;
  font-size: 1rem;
  background: white;
  transition: all 0.2s ease;
  color: #1f2937;
  box-sizing: border-box;
  min-width: 0;
}

.prf-password-input:focus {
  outline: none;
  border-color: #00E0E9;
  box-shadow: 0 0 0 3px rgba(0, 224, 233, 0.1);
  padding-right: 3rem; /* Maintain padding when focused */
}

.prf-password-toggle {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #6b7280;
  cursor: pointer;
  padding: 0.25rem;
  border-radius: 0.25rem;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.prf-password-toggle:hover:not(:disabled) {
  color: #374151;
  background-color: #f3f4f6;
}

.prf-password-toggle:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.prf-password-input:disabled {
  background: #f9fafb;
  color: #6b7280;
  cursor: not-allowed;
  opacity: 0.7;
}

.prf-password-input::placeholder {
  color: #9ca3af;
}

.prf-password-actions-responsive {
  display: flex;
  justify-content: flex-end;
  width: 100%;
  padding-top: 0.5rem;
  border-top: 1px solid #f3f4f6;
}

.prf-change-password-btn-responsive {
  padding: 0.875rem 2.5rem;
  background: linear-gradient(135deg, #00E0E9 0%, #86FAFF 100%);
  color: white;
  border: none;
  border-radius: 0.75rem;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px rgba(0, 224, 233, 0.2);
  min-width: 200px;
  white-space: nowrap;
}

.prf-change-password-btn-responsive:hover:not(:disabled) {
  background: linear-gradient(135deg, #00b8c4 0%, #6fd8e0 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 224, 233, 0.3);
}

.prf-change-password-btn-responsive:disabled {
  background: #9ca3af;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
  opacity: 0.6;
}

.prf-password-hint {
  text-align: center;
  color: #6b7280;
  font-size: 0.875rem;
  font-style: italic;
  padding: 0.75rem;
  background: #f9fafb;
  border-radius: 0.5rem;
  border: 1px solid #f3f4f6;
}

/* Responsive Breakpoints */
@media (max-width: 1200px) {
  .prf-password-field-group-responsive {
    gap: 1.25rem;
  }
  
  .prf-password-input {
    padding: 0.75rem 0.875rem;
  }
}

@media (max-width: 1024px) {
  .prf-password-field-group-responsive {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }
  
  .prf-change-password-btn-responsive {
    min-width: 180px;
    padding: 0.75rem 2rem;
  }
}

@media (max-width: 900px) {
  .prf-password-field-group-responsive {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }
  
  /* Make the third field span full width on medium screens */
  .prf-password-field-item:nth-child(3) {
    grid-column: span 2;
    max-width: 50%; /* Center it */
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .prf-password-field-group-responsive {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .prf-password-field-item:nth-child(3) {
    grid-column: span 1;
    max-width: 100%;
  }
  
  .prf-password-actions-responsive {
    justify-content: center;
  }
  
  .prf-change-password-btn-responsive {
    width: 100%;
    min-width: auto;
    max-width: 300px;
  }
  
  .prf-password-description {
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
    padding: 1rem;
  }

  .prf-password-input {
    padding: 0.75rem 2.75rem 0.75rem 0.875rem;
  }
  
  .prf-password-toggle {
    right: 0.625rem;
  }
}

@media (max-width: 480px) {
  .prf-password-fields-container {
    gap: 1.25rem;
  }
  
  .prf-password-field-group-responsive {
    gap: 0.875rem;
  }
  
  .prf-password-input {
    padding: 0.75rem 0.875rem;
    font-size: 0.95rem;
  }
  
  .prf-change-password-btn-responsive {
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
    max-width: 100%;
  }
  
  .prf-password-label {
    font-size: 0.9rem;
  }

  .prf-password-input {
    padding: 0.75rem 2.5rem 0.75rem 0.75rem;
    font-size: 0.95rem;
  }
  
  .prf-password-toggle {
    right: 0.5rem;
  }
  
  .prf-password-toggle svg {
    width: 16px;
    height: 16px;
  }
}

/* Extra small screens */
@media (max-width: 360px) {
  .prf-password-field-group-responsive {
    gap: 0.75rem;
  }
  
  .prf-password-input {
    padding: 0.625rem 0.75rem;
    font-size: 0.9rem;
  }
  
  .prf-change-password-btn-responsive {
    padding: 0.625rem 1.25rem;
    font-size: 0.9rem;
  }
}

/* Username Change Warning Styles */
.prf-username-warning {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  background: #fff8e6;
  border: 1px solid #ffd666;
  border-radius: 0.75rem;
  margin-bottom: 1.5rem;
}

.prf-warning-icon {
  color: #f59e0b;
  flex-shrink: 0;
  margin-top: 0.125rem;
}

.prf-warning-content {
  flex: 1 1;
}

.prf-warning-text {
  color: #92400e;
  font-size: 0.875rem;
  line-height: 1.4;
  margin: 0;
  opacity: 0.9;
  font-weight: 500;
}

/* Username Confirmation Modal Styles */
.prf-confirm-modal {
  max-width: 480px;
  padding: 2rem;
}

.prf-confirm-content {
  text-align: center;
}

.prf-confirm-warning {
  padding: 1rem 0 2rem 0;
}

.prf-confirm-icon {
  color: #f59e0b;
  margin: 0 auto 1.5rem auto;
}

.prf-confirm-text {
  color: #4b5563;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
  font-weight: 500;
}

.prf-confirm-details {
  color: #1f2937;
  font-weight: 500;
  font-size: 1rem;
  line-height: 1.5;
  background: #f9fafb;
  padding: 1rem;
  border-radius: 0.5rem;
  border: 1px solid #e5e7eb;
  margin: 1.5rem 0;
}

.prf-confirm-details strong {
  color: #00E0E9;
  font-weight: 700;
}

.prf-confirm-warning-btn {
  background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%) !important;
  box-shadow: 0 2px 4px rgba(245, 158, 11, 0.2) !important;
}

.prf-confirm-warning-btn:hover:not(:disabled) {
  background: linear-gradient(135deg, #d97706 0%, #f59e0b 100%) !important;
  box-shadow: 0 4px 8px rgba(245, 158, 11, 0.3) !important;
}

/* Responsive Design for Username Modals */
@media (max-width: 768px) {
  .prf-username-warning {
    padding: 0.875rem 1rem;
    gap: 0.625rem;
  }
  
  .prf-confirm-modal {
    padding: 1.5rem;
  }
  
  .prf-confirm-warning {
    padding: 0.5rem 0 1.5rem 0;
  }
  
  .prf-confirm-text {
    font-size: 0.9rem;
  }
  
  .prf-confirm-details {
    font-size: 0.95rem;
    padding: 0.875rem;
    margin: 1.25rem 0;
  }
}

@media (max-width: 480px) {
  .prf-username-warning {
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
  }
  
  .prf-warning-icon {
    align-self: center;
  }
  
  .prf-confirm-modal {
    padding: 1.25rem;
    margin: 1rem;
  }
}

/* Username Cooldown Styles */
.prf-edit-disabled {
  opacity: 0.5;
  cursor: not-allowed !important;
  background-color: #f5f5f5;
}

.prf-cooldown-badge {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: #f59e0b;
  background-color: #fffbeb;
  padding: 4px 8px;
  border-radius: 4px;
  margin-top: 4px;
}

.prf-cooldown-modal .prf-modal-content {
  max-width: 400px;
  text-align: center;
}

.prf-cooldown-content {
  padding: 24px;
}

.prf-cooldown-icon {
  margin-bottom: 16px;
}

.prf-cooldown-clock {
  color: #f59e0b;
}

.prf-cooldown-title {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 12px;
  color: #1f2937;
}

.prf-cooldown-text {
  color: #6b7280;
  margin-bottom: 8px;
  line-height: 1.5;
}

.prf-cooldown-days {
  color: #1f2937;
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 24px;
}

.prf-cooldown-days strong {
  color: #f59e0b;
}

/* Updated History.css with fixed responsive layout */
.history-stats-container {
  margin-bottom: 2rem;
}

.history-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-gap: 1rem;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.history-stat-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  transition: all 0.2s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.history-stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.history-stat-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.history-stat-content {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.history-stat-number {
  font-size: 1.5rem;
  font-weight: 700;
  color: #111827;
  line-height: 1;
}

.history-stat-label {
  font-size: 0.875rem;
  color: #6b7280;
  font-weight: 500;
}

/* Search and View Controls - Fixed Layout */
.history-controls-container {
  margin-bottom: 1.5rem;
}

.history-controls-row {
  display: flex;
  gap: 1rem;
  align-items: center;
  width: 100%;
}

.history-search-wrapper {
  flex: 1 1;
  min-width: 0; /* Prevents overflow */
}

.history-search-input-wrapper {
  position: relative;
  width: 100%;
  max-width: 400px;
}

.history-search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: #9ca3af;
  z-index: 1;
}

.history-search-input {
  width: 100%;
  padding: 0.75rem 1rem 0.75rem 2.75rem;
  border: 2px solid #e5e7eb;
  border-radius: 0.75rem;
  font-size: 0.95rem;
  background: white;
  color: #1f2937;
  transition: all 0.2s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.history-search-input:focus {
  outline: none;
  border-color: #00E0E9;
  box-shadow: 0 0 0 3px rgba(0, 224, 233, 0.1);
}

.history-search-input::placeholder {
  color: #9ca3af;
}

.history-search-clear {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #9ca3af;
  cursor: pointer;
  font-size: 1.25rem;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.history-search-clear:hover {
  background: #f3f4f6;
  color: #374151;
}

/* View Toggle */
.history-view-toggle-wrapper {
  flex-shrink: 0;
}

.history-view-toggle {
  display: flex;
  background: white;
  border: 2px solid #e5e7eb;
  border-radius: 0.75rem;
  padding: 0.25rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.history-view-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.625rem;
  border: none;
  background: transparent;
  color: #6b7280;
  cursor: pointer;
  border-radius: 0.5rem;
  transition: all 0.2s ease;
  width: 44px;
  height: 44px;
}

.history-view-btn:hover {
  background: #f9fafb;
  color: #374151;
}

.history-view-btn.active {
  background: linear-gradient(135deg, #00E0E9 0%, #86FAFF 100%);
  color: white;
  box-shadow: 0 1px 3px rgba(0, 224, 233, 0.2);
}

/* Segment Control Filters */
.history-filters-container {
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #f3f4f6;
}

.history-filters {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.history-filter-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  background: white;
  color: #6b7280;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.history-filter-btn:hover {
  background: #f9fafb;
  border-color: #d1d5db;
  color: #374151;
  transform: translateY(-1px);
}

.history-filter-btn.active {
  background: linear-gradient(135deg, #00E0E9 0%, #86FAFF 100%);
  color: white;
  border-color: transparent;
  box-shadow: 0 2px 4px rgba(0, 224, 233, 0.2);
  font-weight: 600;
}

.history-filter-btn.active:hover {
  box-shadow: 0 4px 8px rgba(0, 224, 233, 0.3);
  transform: translateY(-2px);
}

.history-filter-count {
  background: rgba(255, 255, 255, 0.2);
  color: inherit;
  padding: 0.125rem 0.5rem;
  border-radius: 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  margin-left: 0.25rem;
}

.history-filter-btn:not(.active) .history-filter-count {
  background: #f3f4f6;
  color: #6b7280;
}

/* Tile View */
.history-items-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  grid-gap: 1.5rem;
  gap: 1.5rem;
}

.history-item-tiles {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 1rem;
  padding: 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  height: fit-content;
  min-height: 160px;
}

.history-item-tiles:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  border-color: #00E0E9;
}

/* List View */
.history-items-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.history-item-list {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 1rem;
  padding: 1.25rem 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  grid-gap: 1.5rem;
  gap: 1.5rem;
}

.history-item-list:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border-color: #00E0E9;
}

/* Common Item Styles */
.history-item-type {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.history-item-type-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  flex-shrink: 0;
}

.history-item-type-label {
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.history-item-title-container {
  flex: 1 1;
  min-width: 0;
}

.history-item-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #111827;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
}

.history-item-list .history-item-title {
  -webkit-line-clamp: 1;
  font-size: 1rem;
}

.history-item-date {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.875rem;
  color: #6b7280;
  flex-shrink: 0;
  white-space: nowrap;
}

.history-item-tiles .history-item-date {
  margin-bottom: 1rem;
}

.history-item-action-container {
  flex-shrink: 0;
}

.history-item-action {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  background: linear-gradient(135deg, #00E0E9 0%, #86FAFF 100%);
  color: white;
  border: none;
  border-radius: 0.5rem;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px rgba(0, 224, 233, 0.2);
  white-space: nowrap;
}

.history-item-action:hover {
  background: linear-gradient(135deg, #00b8c4 0%, #6fd8e0 100%);
  transform: translateX(2px);
  box-shadow: 0 4px 8px rgba(0, 224, 233, 0.3);
}

/* Loading State */
.history-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
  color: #6b7280;
  text-align: center;
}

.history-loading-spinner {
  width: 3rem;
  height: 3rem;
  border: 3px solid #f3f4f6;
  border-top: 3px solid #00E0E9;
  border-radius: 50%;
  animation: history-spin 1s linear infinite;
  margin-bottom: 1rem;
}

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

.history-loading p {
  font-size: 1.1rem;
  font-weight: 500;
  margin: 0;
}

/* Empty State */
.history-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
  text-align: center;
  color: #6b7280;
}

.history-empty-icon {
  width: 6rem;
  height: 6rem;
  background: #f9fafb;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: #d1d5db;
}

.history-empty-state h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 0.75rem;
}

.history-empty-state p {
  font-size: 1rem;
  line-height: 1.5;
  margin-bottom: 1.5rem;
  max-width: 400px;
}

.history-empty-action {
  padding: 0.75rem 1.5rem;
  background: linear-gradient(135deg, #00E0E9 0%, #86FAFF 100%);
  color: white;
  border: none;
  border-radius: 0.75rem;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px rgba(0, 224, 233, 0.2);
}

.history-empty-action:hover {
  background: linear-gradient(135deg, #00b8c4 0%, #6fd8e0 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 224, 233, 0.3);
}

/* Responsive Design - Fixed */
@media (max-width: 1200px) {
  .history-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .history-items-tiles {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {
  .history-stats-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  
  .history-stat-card {
    padding: 1rem;
  }
  
  .history-controls-row {
    flex-direction: column;
    gap: 1rem;
    align-items: stretch;
  }
  
  .history-search-wrapper {
    width: 100%;
  }
  
  .history-search-input-wrapper {
    max-width: none;
  }
  
  .history-view-toggle-wrapper {
    align-self: flex-end;
  }
  
  .history-filters {
    justify-content: center;
  }
  
  .history-filter-btn {
    flex: 1 1;
    min-width: 120px;
    justify-content: center;
  }
  
  .history-items-tiles {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .history-item-tiles {
    padding: 1.25rem;
    min-height: 140px;
  }
  
  .history-item-list {
    grid-template-columns: 1fr;
    gap: 1rem;
    text-align: center;
  }
  
  .history-item-list .history-item-type {
    justify-content: center;
  }
  
  .history-item-list .history-item-date {
    justify-content: center;
  }
}

@media (max-width: 640px) {
  .history-controls-row {
    gap: 0.75rem;
  }
  
  .history-view-toggle-wrapper {
    align-self: center;
  }
}

@media (max-width: 480px) {
  .history-stat-card {
    flex-direction: column;
    text-align: center;
    gap: 0.75rem;
  }
  
  .history-stat-icon {
    width: 2.5rem;
    height: 2.5rem;
  }
  
  .history-filters {
    flex-direction: column;
  }
  
  .history-filter-btn {
    justify-content: flex-start;
  }
  
  .history-empty-state {
    padding: 3rem 1rem;
  }
  
  .history-empty-icon {
    width: 4rem;
    height: 4rem;
  }
  
  .history-empty-state h3 {
    font-size: 1.25rem;
  }
  
  .history-empty-state p {
    font-size: 0.9rem;
  }
  
  .history-view-toggle {
    width: 100%;
    justify-content: center;
  }
  
  .history-view-btn {
    flex: 1 1;
  }
}

/* Extra small screens */
@media (max-width: 360px) {
  .history-controls-row {
    gap: 0.5rem;
  }
  
  .history-search-input {
    padding: 0.625rem 0.75rem 0.625rem 2.5rem;
    font-size: 0.9rem;
  }
  
  .history-view-btn {
    padding: 0.5rem;
    width: 40px;
    height: 40px;
  }
  
  .history-view-btn svg {
    width: 16px;
    height: 16px;
  }
}
/* Admin Layout */
.admin-container, .dashboard-container {
  min-height: 100vh;
  background: linear-gradient(135deg, #f5f7fa 0%, #e4e8f0 100%);
  display: flex;
  flex-direction: column;
}

.admin-content, .main-content {
  flex: 1 1;
  margin-left: 250px;
  transition: margin-left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  padding-top: 100px;
  background: #FDFDFD;
  min-height: calc(100vh - 90px);
}

.admin-content.collapsed, .main-content.ad-collapsed {
  margin-left: 55px;
}

.ad-content-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  margin-top: 20px;
  margin-bottom: 30px;
  width: 100%;
  background: rgba(255, 255, 255, 0.85);
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  min-height: 100%;
  padding: 20px;
  padding-bottom: 40px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .admin-content, .main-content {
    margin-left: 70px;
    padding: 1.5rem;
    padding-top: 90px;
  }

  .ad-content-wrapper {
    padding: 15px;
  }
}

@media (max-width: 768px) {
  .admin-content, .main-content {
    margin-left: 0;
    padding: 1rem;
    padding-top: 90px;
  }

  .ad-content-wrapper {
    padding: 10px;
  }
}

/* Rest of the admin styles with ad- prefix */
.welcome-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.8);
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
}

.welcome-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, rgba(255, 144, 144, 0.1) 0%, rgba(255, 107, 107, 0.05) 100%);
  z-index: -1;
}

.welcome-text h1 {
  font-size: 2.5rem;
  color: #2c3e50;
  margin-bottom: 0.5rem;
}

.welcome-text h2 {
  font-size: 2rem;
  color: #e74c3c;
  margin-bottom: 1rem;
}

.welcome-text p {
  color: #666;
  margin-bottom: 1.5rem;
  max-width: 500px;
}

.learn-more-btn {
  background: #e74c3c;
  color: white;
  border: none;
  padding: 0.8rem 1.5rem;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.3s ease;
}

.learn-more-btn:hover {
  background: #d44637;
}

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  grid-gap: 1.5rem;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  border-radius: 18px;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
  transform-style: preserve-3d;
  transition: all 0.3s cubic-bezier(0.1, 0.2, 0.1, 1);
}

.stat-card:hover {
  transform: translateY(-10px) rotateX(5deg);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.stat-icon {
  width: 50px;
  height: 50px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: white;
}

.stat-card.purple .stat-icon {
  background: #f3e5f5;
  color: #9c27b0;
}

.stat-card.cyan .stat-icon {
  background: #e0f7fa;
  color: #00acc1;
}

.stat-card.pink .stat-icon {
  background: #fce4ec;
  color: #e74c3c;
}

.stat-card.yellow .stat-icon {
  background: #fff3e0;
  color: #ff9800;
}

.stat-info h3 {
  font-size: 1.8rem;
  color: #2c3e50;
  margin-bottom: 0.3rem;
}

.stat-info p {
  color: #666;
  font-size: 0.9rem;
}

/* Game Stats Grid */
.game-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  grid-gap: 1.5rem;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.game-stat-card {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.game-stat-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1rem;
}

.game-stat-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: #fce4ec;
  color: #e74c3c;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.game-stat-numbers {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  color: #2c3e50;
  font-weight: 500;
}

.game-stat-numbers span {
  color: #e74c3c;
  margin-left: 0.5rem;
}

/* Charts Section */
.charts-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  grid-gap: 1.5rem;
  gap: 1.5rem;
}

.chart-container {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.chart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.chart-header h3 {
  color: #2c3e50;
}

.chart-legend {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #666;
  font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .admin-content {
    margin-left: 70px;
    padding: 1.5rem;
    padding-top: 90px;
  }

  .welcome-section {
    flex-direction: column;
    text-align: center;
    padding: 1.5rem;
  }

  .welcome-text {
    margin-bottom: 1.5rem;
  }

  .charts-section {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .stats-grid,
  .game-stats-grid {
    grid-template-columns: 1fr;
  }

  .admin-content {
    padding: 1rem;
    padding-top: 90px;
  }
}

/* Admin Users Page Styles */
.ad-content-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.ad-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #333;
}

.ad-header-buttons {
  display: flex;
  gap: 1rem;
}

.ad-stats-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  grid-gap: 1.5rem;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.ad-stat-card {
  background: linear-gradient(135deg, #f5f5f5 0%, #fffcfc 100%);
  border-radius: 18px;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
  transform-style: preserve-3d;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ad-stat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

.ad-stat-card:hover {
  transform: translateY(-10px) rotateX(5deg);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.ad-stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  background: linear-gradient(135deg, #FF9090 0%, #FF6B6B 100%);
  color: white;
  box-shadow: 0 5px 15px rgba(255, 107, 107, 0.3);
  animation: pulse 2s infinite;
}

.ad-stat-active .ad-stat-icon {
  background: linear-gradient(180deg, #3aff65d2 0%, #26f8b986 100%);
  color: #00f164;
}

.ad-stat-inactive .ad-stat-icon {
  background: linear-gradient(180deg, #FF9090 0%, #ff5353 100%);
  color: #ff4842;
}

.ad-stat-info h3 {
  font-size: 1.8rem;
  font-weight: 600;
  margin: 0;
  line-height: 1.2;
}

.ad-stat-info p {
  margin: 0;
  color: #666;
  font-size: 0.9rem;
}

.ad-table-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.ad-search-box input {
  background: rgba(255, 255, 255, 0.8);
  -webkit-backdrop-filter: blur(5px);
          backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  border-radius: 12px;
  padding: 12px 20px;
  width: 300px;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.ad-search-box input:focus {
  background: white;
  box-shadow: 0 8px 20px rgba(255, 107, 107, 0.15);
  border-color: rgba(255, 107, 107, 0.3);
  transform: translateY(-2px);
  outline: none;
}

.ad-control-buttons {
  display: flex;
  gap: 0.75rem;
}

.ad-table-container {
  background: rgba(255, 255, 255, 0.8);
  -webkit-backdrop-filter: blur(5px);
          backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  border-radius: 18px;
  padding: 1rem;
  overflow: hidden;
  overflow-x: auto;
}

.ad-table {
  width: 100%;
  border-collapse: collapse;
}
.ad-table th,
.ad-table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid #eee;
  vertical-align: top;
}


.ad-table tr {
  transition: all 0.3s ease;
}

.ad-table tr:hover {
  background-color: rgba(202, 202, 202, 0.226);
}

.ad-table th {
  background: linear-gradient(135deg, #f8f9fa 0%, #f5f5f5 100%);
  color: #495057;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
}

.ad-user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}

.ad-status-badge {
  padding: 6px 12px;
  border-radius: 30px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.ad-status-active {
  background: linear-gradient(135deg, #4CAF50 0%, #8BC34A 100%);
  color: white;
}

.ad-status-inactive {
  background: linear-gradient(135deg, #F44336 0%, #FF9800 100%);
  color: white;
}

.ad-action-buttons {
  display: flex;
  gap: 0.5rem;
}
.ad-btn {
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  font-weight: 500;
  cursor: pointer;
  border: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
}

.ad-btn-primary {
  background: linear-gradient(135deg, #FF9090 0%, #FF6B6B 100%);
  box-shadow: 0 5px 15px rgba(255, 107, 107, 0.3);
  color: white;
  position: relative;
  overflow: hidden;
}

.ad-btn-secondary {
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  color: #666;
  position: relative;
  overflow: hidden;
}

.ad-btn-secondary:hover {
  background: rgba(255, 144, 144, 0.1);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
  color: #FF6B6B;
}

.ad-btn-icon {
  padding: 0.5rem;
  border: none;
  background: none;
  color: #666;
  cursor: pointer;
  transition: color 0.2s ease;
}

.ad-btn-icon:hover {
  color: #FF9090;
}

.ad-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
  margin-bottom: 1rem; /* Added bottom margin for better spacing */
}

.ad-page-numbers {
  display: flex;
  gap: 0.5rem;
}

.ad-btn-page {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #ddd;
  background: white;
  cursor: pointer;
  transition: all 0.2s ease;
}

.ad-btn-page.active {
  background: linear-gradient(135deg, #FF9090 0%, #FF6B6B 100%);
  color: white;
  border: none;
  box-shadow: 0 4px 10px rgba(255, 107, 107, 0.3);
}

.ad-btn-page:hover:not(.active) {
  border-color: #FF9090;
  color: #FF6B6B;
}

/* Admin Shop & Rewards Styles */
.ad-tabs {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid #eee;
  padding-bottom: 1rem;
}

.ad-tab {
  padding: 0.5rem 1.5rem;
  border: none;
  background: none;
  color: #666;
  font-weight: 500;
  cursor: pointer;
  position: relative;
  transition: all 0.3s ease;
}

.ad-tab::after {
  content: '';
  position: absolute;
  bottom: -1rem;
  left: 0;
  width: 100%;
  height: 2px;
  background: #FF9090;
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.ad-tab.active {
  color: #FF9090;
}

.ad-tab.active::after {
  transform: scaleX(1);
}

.ad-shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  grid-gap: 1.5rem;
  gap: 1.5rem;
  padding: 1rem;
  margin-bottom: 3rem;
  padding-bottom: 2rem;
}

.ad-shop-item {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  padding-top: 30px;
}

.ad-shop-item:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.ad-shop-item img {
  width: 100%;
  height: 150px;
  object-fit: cover;
}

.ad-shop-item-info {
  padding: 1rem;
}

.ad-shop-item-info h3 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  color: #333;
}

.ad-shop-item-price {
  color: #FF9090;
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.ad-shop-item-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
}

/* Admin Content Moderation Styles */
.ad-role-badge {
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 500;
  display: inline-block;
}

.ad-role-user {
  background: rgba(25, 118, 210, 0.1);
  color: #1976d2;
}

.ad-role-admin {
  background: rgba(255, 144, 144, 0.1);
  color: #FF9090;
}

.ad-role-moderator {
  background: rgba(255, 193, 7, 0.1);
  color: #ffc107;
}

.ad-action-badge {
  padding: 6px 12px;
  border-radius: 30px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  display: inline-block;
  text-align: center;
  min-width: 80px;
}

.ad-action-created {
  background: linear-gradient(135deg, #4CAF50 0%, #8BC34A 100%);
  color: white;
}

.ad-action-deleted {
  background: linear-gradient(135deg, #F44336 0%, #FF9800 100%);
  color: white;
}

.ad-action-updated {
  background: linear-gradient(135deg, #2196F3 0%, #03A9F4 100%);
  color: white;
}

.ad-action-modified {
  background: rgba(255, 193, 7, 0.1);
  color: #ffc107;
}

/* Add these new styles at the end of your existing Admin.css file */

/* Animation Styles */
.animated-fade-in {
  animation: fadeIn 0.8s ease-out forwards;
  opacity: 0;
}

.animated-slide-up {
  animation: slideUp 0.8s ease-out forwards;
  opacity: 0;
  transform: translateY(20px);
}

.animated-slide-right {
  animation: slideRight 0.8s ease-out forwards;
  opacity: 0;
  transform: translateX(-20px);
}

.animated-scale {
  animation: scale 0.5s ease-out forwards;
  transform: scale(0.95);
  opacity: 0;
}

.animated-pulse {
  animation: pulse 2s infinite;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideRight {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes scale {
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Modal Styles */
.ad-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  background: none;
}

.ad-modal {
  background: white;
  border-radius: 16px;
  width: 95%;
  max-width: 1000px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  animation: modalSlideUp 0.3s ease-out;
  margin: 2rem;
}

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

.ad-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid #eee;
}

.ad-modal-header h3 {
  margin: 0;
  color: #333;
  font-size: 1.2rem;
}

.ad-modal-close {
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  color: #999;
  transition: color 0.2s ease;
}

.ad-modal-close:hover {
  color: #FF6B6B;
}

.ad-modal-body {
  padding: 1.5rem;
  max-height: 70vh;
  overflow-y: auto;
  overflow-x: hidden; /* Prevent horizontal scrolling */
}

.ad-modal-compact {
  max-width: 700px !important;
}

.ad-file-section-single {
  display: grid;
  grid-template-columns: 1fr 300px;
  grid-gap: 24px;
  gap: 24px;
  margin-bottom: 24px;
}

.ad-file-upload-area {
  min-width: 0;
}

.ad-file-upload-info {
  margin-top: 10px;
}

.ad-file-upload-zone {
  border: 2px dashed #e2e8f0;
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  background: #f8fafc;
  min-height: 120px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 12px;
  box-shadow: 0 2px 4px rgba(148, 163, 184, 0.05);
}

.ad-file-upload-zone:hover {
  border-color: #ff6f6f;
  background-color: #f0f7ff;
  box-shadow: 0 4px 8px rgba(59, 130, 246, 0.1);
}

.ad-file-upload-zone svg {
  width: 32px;
  height: 32px;
  color: #ff6f6f;
  opacity: 0.9;
}

.ad-file-upload-zone p {
  color: #64748b;
  font-size: 15px;
  margin: 0;
}

.ad-file-name-display {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: #f0fdf4;
  border: 1px solid #86efac;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
  color: #166534;
}

.ad-file-name-display span {
  flex: 1 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ad-file-remove-btn {
  background: none;
  border: none;
  color: #dc2626;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ad-file-remove-btn:hover {
  background: #fee2e2;
  color: #991b1b;
}

.ad-file-preview-area {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

@media (max-width: 768px) {
  .ad-modal-compact {
    max-width: 95% !important;
  }
  
  .ad-file-section-single {
    grid-template-columns: 1fr;
  }
  
  .ad-file-preview-area .ad-file-preview {
    max-height: 200px;
  }
}

*/ 

.ad-form-row {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
}

.ad-form-row .ad-form-group {
  flex: 1 1;
  min-width: 0;
  margin-bottom: 0;
}

.ad-modal-footer {
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  border-top: 1px solid #eee;
}

.ad-modal-footer button {
  padding: 0.75rem 1.5rem;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.2s ease;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.ad-modal-footer button.primary {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: white;
  border: none;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.ad-modal-footer button.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 15px rgba(37, 99, 235, 0.25);
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
}

.ad-modal-footer button.primary:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.15);
}

.ad-modal-footer button.secondary {
  background: #fff;
  color: #64748b;
  border: 1px solid #e2e8f0;
}

.ad-modal-footer button.secondary:hover {
  background: #f8fafc;
  color: #475569;
  border-color: #cbd5e1;
}

.ad-modal-footer button.secondary:active {
  background: #f1f5f9;
}

.ad-modal-footer button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

/* Form Styles */
.ad-form-group {
  margin-bottom: 24px;
  width: 100%;
  position: relative;
}

.ad-form-row {
  display: flex;
  gap: 24px;
  margin-bottom: 24px;
  align-items: flex-start;
}

.ad-form-row .ad-form-group {
  flex: 1 1;
  min-width: 0;
  margin-bottom: 0;
}

.ad-form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #1e293b;
  font-size: 14px;
  letter-spacing: 0.02em;
}

.ad-form-group input[type="text"],
.ad-form-group input[type="number"],
.ad-form-group select {
  width: 100%;
  max-width: 100%;
  padding: 12px 16px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 500;
  color: #1e293b;
  transition: all 0.2s ease;
  box-sizing: border-box;
  background-color: white;
  box-shadow: 0 2px 4px rgba(148, 163, 184, 0.05);
}

.ad-form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%2720%27 height=%2720%27 viewBox=%270 0 24 24%27 fill=%27none%27 stroke=%27%2364748b%27 stroke-width=%272.5%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27%3E%3Cpath d=%27M6 9l6 6 6-6%27%2F%3E%3C%2Fsvg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 20px;
  padding-right: 44px;
  cursor: pointer;
}

.ad-form-group input[type="text"]:hover,
.ad-form-group input[type="number"]:hover,
.ad-form-group select:hover {
  border-color: #94a3b8;
  background-color: #f8fafc;
  box-shadow: 0 4px 8px rgba(148, 163, 184, 0.1);
}

.ad-form-group input[type="text"]:focus,
.ad-form-group input[type="number"]:focus,
.ad-form-group select:focus {
  border-color: #3b82f6;
  outline: none;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15), 0 4px 8px rgba(148, 163, 184, 0.1);
  background-color: white;
}

.ad-form-group input[type="text"]:disabled,
.ad-form-group input[type="number"]:disabled,
.ad-form-group select:disabled {
  background-color: #f1f5f9;
  border-color: #e2e8f0;
  color: #94a3b8;
  cursor: not-allowed;
  box-shadow: none;
}

/* Remove sample cursors section */
.ad-sample-cursors,
.ad-sample-title,
.ad-sample-grid,
.ad-sample-button {
  display: none !important;
}

.ad-price-input {
  position: relative;
  max-width: 300px;
}

.ad-price-input svg {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: #ff6f6f;
  opacity: 0.9;
  z-index: 1;
}

.ad-price-input input {
  padding-left: 44px !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  color: #1e293b !important;
  text-align: left !important;
}

.ad-price-input input::placeholder {
  color: #94a3b8;
  font-weight: normal;
}

/* File Upload Styles */
.ad-file-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-gap: 24px;
  gap: 24px;
  margin-bottom: 24px;
}

.ad-file-upload-container {
  min-width: 0;
}

.ad-file-upload-container label {
  display: block;
  margin-bottom: 12px;
}

.ad-file-upload {
  border: 2px dashed #e2e8f0;
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  background: #f8fafc;
  height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-shadow: 0 2px 4px rgba(148, 163, 184, 0.05);
}

.ad-file-upload:hover {
  border-color: #ff6f6f;
  background-color: #f0f7ff;
  box-shadow: 0 4px 8px rgba(59, 130, 246, 0.1);
}

.ad-file-upload-placeholder {
  color: #64748b;
  font-size: 15px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.ad-file-upload-placeholder svg {
  width: 32px;
  height: 32px;
  color: #ff6f6f;
  opacity: 0.9;
}

.ad-file-preview-container {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.ad-file-preview {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  background: white;
  margin-top: 10px;
  border-radius: 12px;
  padding: 16px;
  border: 1px solid #e2e8f0;
  min-height: 200px;
  max-height: 300px;
  height: auto;
  aspect-ratio: 1 / 1;
  box-shadow: 0 2px 4px rgba(148, 163, 184, 0.05);
  overflow: hidden;
  box-sizing: border-box;
}

.ad-file-preview img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.ad-file-remove,
.ad-file-change {
  position: absolute;
  top: 12px;
  right: 12px;
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(148, 163, 184, 0.1);
  transition: all 0.2s ease;
  color: #64748b;
  z-index: 2;
}

.ad-file-remove:hover {
  background: #fef2f2;
  color: #ef4444;
  border-color: #fecaca;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(239, 68, 68, 0.15);
}

.ad-file-change {
  right: auto;
  left: 12px;
  width: auto;
  padding: 0 16px;
  font-size: 14px;
  font-weight: 500;
  color: #3b82f6;
  gap: 8px;
}

.ad-file-change:hover {
  background: #f0f7ff;
  color: #2563eb;
  border-color: #bfdbfe;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(59, 130, 246, 0.15);
}

.ad-file-preview-placeholder {
  width: 100%;
  height: 100%;
  min-height: 150px;
  background: #f8fafc;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: #64748b;
  border: 1px dashed #e2e8f0;
  padding: 24px;
  box-sizing: border-box;
  text-align: center;
}

.ad-file-preview-placeholder svg {
  width: 32px;
  height: 32px;
  color: #ff6f6f;
  opacity: 0.8;
  flex-shrink: 0;
}

.ad-file-preview-placeholder p {
  font-size: 15px;
  margin: 0;
  font-weight: 500;
  word-break: break-word;
}

/* Modal Overlay */
.ad-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  background: none;
  -webkit-backdrop-filter: none;
          backdrop-filter: none;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Modal Content */
.ad-modal-content {
  background: white;
  border-radius: 20px;
  width: 100%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  position: relative;
  animation: slideUp 0.3s ease-out;
}

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

/* Close Button */
.ad-modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: #f3f4f6;
  color: #6b7280;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  z-index: 10;
  font-size: 18px;
}

.ad-modal-close:hover {
  background: #e5e7eb;
  color: #374151;
  transform: rotate(90deg);
}

/* Modal Body */
.ad-modal-body {
  padding: 40px;
}

/* User Header Section */
.ad-modal-user-header {
  text-align: center;
  margin-bottom: 30px;
}

.ad-modal-avatar-wrapper {
  position: relative;
  display: inline-block;
  margin-bottom: 20px;
}

.ad-modal-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #f3f4f6;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.ad-modal-status-indicator {
  position: absolute;
  bottom: 8px;
  right: 8px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 3px solid white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.ad-modal-status-indicator.ad-status-active {
  background-color: #10b981;
}

.ad-modal-status-indicator.ad-status-inactive {
  background-color: #ef4444;
}

.ad-modal-user-identity h2 {
  font-size: 28px;
  font-weight: 700;
  color: #111827;
  margin: 0 0 8px 0;
}

.ad-modal-username {
  font-size: 16px;
  color: #6b7280;
  margin: 0 0 16px 0;
  font-weight: 500;
}

.ad-modal-badges {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Divider */
.ad-modal-divider {
  height: 1px;
  background: linear-gradient(to right, transparent, #e5e7eb, transparent);
  margin: 30px 0;
}

/* Info Grid */
.ad-modal-info-grid {
  display: grid;
  grid-gap: 20px;
  gap: 20px;
}

.ad-modal-info-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px;
  background: #f9fafb;
  border-radius: 12px;
  transition: all 0.2s ease;
}

.ad-modal-info-item:hover {
  background: #f3f4f6;
  transform: translateX(4px);
}

.ad-modal-info-icon {
  font-size: 28px;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  flex-shrink: 0;
}

.ad-modal-info-content {
  flex: 1 1;
  min-width: 0;
}

.ad-modal-info-content label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.ad-modal-info-content p {
  font-size: 16px;
  font-weight: 500;
  color: #111827;
  margin: 0;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* Modal Footer */
.ad-modal-footer {
  padding: 24px 40px;
  background: #f9fafb;
  border-top: 1px solid #e5e7eb;
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  border-radius: 0 0 20px 20px;
}

.ad-modal-footer .ad-btn {
  padding: 12px 24px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 10px;
  transition: all 0.2s ease;
}

.ad-modal-footer .ad-btn-primary {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: white;
  border: none;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.ad-modal-footer .ad-btn-primary:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

.ad-modal-footer .ad-btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.ad-modal-footer .ad-btn-secondary {
  background: white;
  color: #6b7280;
  border: 2px solid #e5e7eb;
}

.ad-modal-footer .ad-btn-secondary:hover {
  background: #f9fafb;
  border-color: #d1d5db;
  color: #374151;
}

/* Responsive Design */
@media (max-width: 768px) {
  .ad-modal-content {
    border-radius: 20px 20px 0 0;
    max-height: 95vh;
    margin-top: auto;
  }

  .ad-modal-body {
    padding: 30px 24px;
  }

  .ad-modal-user-identity h2 {
    font-size: 24px;
  }

  .ad-modal-avatar {
    width: 100px;
    height: 100px;
  }

  .ad-modal-footer {
    padding: 20px 24px;
    flex-direction: column-reverse;
  }

  .ad-modal-footer .ad-btn {
    width: 100%;
  }

  .ad-modal-info-item {
    padding: 16px;
  }

  .ad-modal-info-icon {
    font-size: 24px;
    width: 40px;
    height: 40px;
  }

    .ad-file-preview {
    min-height: 180px;
    max-height: 250px;
    padding: 12px;
    aspect-ratio: 16/9;
  }
  
  .ad-file-preview-placeholder {
    min-height: 120px;
    padding: 16px;
    gap: 8px;
  }
  
  .ad-file-preview-placeholder svg {
    width: 24px;
    height: 24px;
  }
  
  .ad-file-preview-placeholder p {
    font-size: 14px;
  }

}

@media (max-width: 480px) {
  .ad-modal-overlay {
    padding: 0;
    align-items: flex-end;
  }

  .ad-modal-content {
    border-radius: 20px 20px 0 0;
    max-height: 92vh;
  }

  .ad-modal-body {
    padding: 24px 20px;
  }

  .ad-modal-close {
    width: 36px;
    height: 36px;
    top: 16px;
    right: 16px;
  }

  .ad-modal-user-identity h2 {
    font-size: 22px;
  }

  .ad-modal-username {
    font-size: 14px;
  }

  .ad-modal-avatar {
    width: 90px;
    height: 90px;
  }

  .ad-modal-status-indicator {
    width: 20px;
    height: 20px;
    bottom: 6px;
    right: 6px;
    border-width: 2px;
  }

  .ad-modal-info-content label {
    font-size: 11px;
  }

  .ad-modal-info-content p {
    font-size: 14px;
  }

    .ad-file-preview {
    min-height: 150px;
    max-height: 200px;
    padding: 8px;
  }
  
  .ad-file-preview-placeholder {
    min-height: 100px;
    padding: 12px;
    gap: 6px;
  }
  
  .ad-file-preview-placeholder svg {
    width: 20px;
    height: 20px;
  }
  
  .ad-file-preview-placeholder p {
    font-size: 13px;
  }
}

/* Smooth Scrollbar */
.ad-modal-content::-webkit-scrollbar {
  width: 8px;
}

.ad-modal-content::-webkit-scrollbar-track {
  background: #f3f4f6;
}

.ad-modal-content::-webkit-scrollbar-thumb {
  background: #d1d5db;
  border-radius: 4px;
}

.ad-modal-content::-webkit-scrollbar-thumb:hover {
  background: #9ca3af;
}

.ad-dropdown-wrapper {
  position: relative;
}

.ad-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 5px;
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  min-width: 180px;
  z-index: 1000;
}

.ad-dropdown-item {
  width: 100%;
  padding: 12px 16px;
  border: none;
  background: white;
  text-align: left;
  cursor: pointer;
  transition: background 0.2s;
  font-size: 14px;
}

.ad-dropdown-item:hover {
  background: #f5f5f5;
}

.ad-dropdown-item.active {
  background: #e3f2fd;
  color: #1976d2;
  font-weight: 500;
}

.ad-dropdown-item:first-child {
  border-radius: 8px 8px 0 0;
}

.ad-dropdown-item:last-child {
  border-radius: 0 0 8px 8px;
}

/* Dashboard Tabs */
.dashboard-tabs {
  background: rgba(255, 255, 255, 0.8);
  -webkit-backdrop-filter: blur(5px);
          backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  border-radius: 16px;
  padding: 8px;
  display: flex;
  gap: 8px;
  margin-bottom: 2rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
}

.dashboard-tab {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 12px 20px;
  background: transparent;
  border: none;
  border-radius: 12px;
  font-weight: 500;
  color: #666;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

/* Updated styles for smaller dashboard icons */
.dashboard-tab svg {
  font-size: 0.85rem; /* Reduced from 0.9rem */
  transition: transform 0.3s ease;
}

.dashboard-tab:hover svg {
  transform: scale(1.1);
}

.dashboard-tab.active {
  background: linear-gradient(135deg, #FF9090 0%, #FF6B6B 100%);
  color: white;
  border-color: transparent;
  box-shadow: 0 5px 15px rgba(255, 107, 107, 0.3);
}

/* Performance Tab Styling */
.performance-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  grid-gap: 1.5rem;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.performance-stat-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  padding: 1.5rem;
}

.performance-stat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.performance-stat-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.performance-stat-header h3 {
  font-size: 1rem;
  font-weight: 500;
  color: #555;
  margin: 0;
}

.performance-stat-value {
  font-size: 1.8rem;
  font-weight: 600;
  color: #333;
}

.performance-stat-chart {
  margin: 1.5rem 0;
  height: 100px;
}

/* Placeholder Chart */
.placeholder-chart {
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, 
    rgba(240, 240, 240, 0.8) 25%, 
    rgba(255, 255, 255, 0.9) 37%, 
    rgba(240, 240, 240, 0.8) 63%);
  background-size: 200% 100%;
  animation: shimmerGradient 2s infinite linear;
  border-radius: 6px;
}

/* Added colored charts for performance tab */
.performance-stat-card:nth-child(1) .placeholder-chart {
  background: linear-gradient(90deg, #90CAF9 0%, #42A5F5 100%);
  animation: pulse 2s infinite ease-in-out;
}

.performance-stat-card:nth-child(2) .placeholder-chart {
  background: linear-gradient(90deg, #d6a5a5 0%, #fc2727 100%);
  animation: pulse 2s infinite ease-in-out;
}

.performance-stat-card:nth-child(3) .placeholder-chart {
  background: linear-gradient(90deg, #FFCC80 0%, #FF9800 100%);
  animation: pulse 2s infinite ease-in-out;
}

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

@keyframes floatAnimation {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0px); }
}

/* Loading Skeleton Animation */
.skeleton-loading {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 8px;
  height: 20px;
  margin-bottom: 8px;
}

.performance-stat-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1rem;
}

.performance-stat-label {
  font-size: 0.8rem;
  color: #888;
}

/* Enhanced User Growth Chart */
.chart-container.growth-chart {
  background: linear-gradient(to bottom, #ffffff, #f9f9ff);
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  padding: 1.5rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.chart-container.growth-chart:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.08);
}

.chart-header {
  margin-bottom: 1.5rem;
}

.chart-period-selector {
  background: #f5f5f7;
  border-radius: 8px;
  padding: 0.25rem;
  display: inline-flex;
  margin-top: 0.5rem;
}

/* Enhanced styling for period buttons */
.period-btn {
  padding: 0.5rem 1rem;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.3s ease;
  border: none;
  background: transparent;
  color: #666;
}

.period-btn.active {
  background: linear-gradient(135deg, #FF9090 0%, #FF6B6B 100%);
  box-shadow: 0 2px 8px rgba(255, 107, 107, 0.3);
  color: white;
  transform: scale(1.05);
}

.period-btn:hover:not(.active) {
  background: rgba(255, 107, 107, 0.1);
  color: #FF6B6B;
}

.period-label {
  padding: 0.5rem 1rem;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.2s ease;
}

.period-label.active {
  background: white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  color: #FF6B6B;
}

.chart-visualization {
  height: 200px;
  position: relative;
  margin: 1rem 0;
}

.chart-point {
  width: 12px;
  height: 12px;
  background: #FF6B6B;
  border: 3px solid white;
  border-radius: 50%;
  box-shadow: 0 2px 5px rgba(255, 107, 107, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.chart-point:hover {
  transform: scale(1.3);
  box-shadow: 0 3px 8px rgba(255, 107, 107, 0.5);
}

.chart-line {
  height: 3px;
  background: linear-gradient(to right, #FF9090, #FF6B6B);
  position: absolute;
  z-index: 0;
}

/* Growth Indicators */
.stat-growth {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.8rem;
  margin-top: 0.5rem;
  font-weight: 500;
}

.stat-growth.positive {
  color: #4CAF50;
}

.stat-growth.negative {
  color: #F44336;
}

/* Chart Sections */
.chart-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  grid-gap: 1.5rem;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

/* Enhanced animations for overview section */
.chart-section.animate-in .chart-container {
  animation: slideUp 0.6s ease forwards;
  opacity: 0;
  transform: translateY(20px);
}

.chart-section.animate-in .chart-container:nth-child(1) {
  animation-delay: 0.1s;
}

.chart-section.animate-in .chart-container:nth-child(2) {
  animation-delay: 0.3s;
}

.chart-section.animate-in .chart-container:nth-child(3) {
  animation-delay: 0.5s;
}

@keyframes slideUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Enhanced hover effects */
.chart-container:hover,
.performance-stat-card:hover,
.new-user-stat:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

/* Growth Chart */
.growth-indicator {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  margin-top: 0.25rem;
}

.growth-indicator .positive {
  color: #4CAF50;
}

.growth-indicator .negative {
  color: #F44336;
}

.period-label {
  color: #999;
  font-size: 0.8rem;
}

/* Line Chart Enhancements */
.chart-point {
  position: relative;
  cursor: pointer;
}

.point-tooltip {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
  margin-bottom: 5px;
}

.chart-point:hover .point-tooltip {
  opacity: 1;
}

/* Bar Chart */
.bar-chart-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  height: 200px;
  padding: 1rem 0;
}

.bar-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.stacked-bar {
  width: 30px;
  height: 150px;
  display: flex;
  flex-direction: column-reverse;
  position: relative;
}

.bar-segment {
  width: 100%;
  transition: height 1s ease-out;
  position: relative;
}

.bar-segment.active {
  background: linear-gradient(180deg, #4CAF50 0%, #8BC34A 100%);
  border-radius: 4px 4px 0 0;
}

.bar-segment.inactive {
  background: linear-gradient(180deg, #F44336 0%, #FF9800 100%);
  border-radius: 0 0 4px 4px;
}

.bar-segment:hover::after {
  content: attr(data-value);
  position: absolute;
  top: -25px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem;
  white-space: nowrap;
}

.bar-label {
  margin-top: 0.5rem;
  font-size: 0.8rem;
  color: #666;
}

/* Multiple Donut Charts */
.donut-charts-container {
  display: flex;
  justify-content: space-around;
  padding: 1rem 0;
}

.donut-chart-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.donut-chart {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: #f0f0f0;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 0.5rem;
}

.donut-segment {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  clip-path: polygon(50% 0%, 100% 0%, 100% 100%, 50% 100%);
  transform-origin: center left;
  transform: rotate(0deg);
  transition: transform 1.5s ease-out;
}

.donut-segment.quizzes {
  background: linear-gradient(135deg, #4CAF50 0%, #8BC34A 100%);
  animation: fillDonut 1.5s ease-out forwards;
}

.donut-segment.games {
  background: linear-gradient(135deg, #2196F3 0%, #03A9F4 100%);
  animation: fillDonut 1.5s ease-out forwards;
}

.donut-segment.flashcards {
  background: linear-gradient(135deg, #9C27B0 0%, #E040FB 100%);
  animation: fillDonut 1.5s ease-out forwards;
}

.donut-center {
  width: 80px;
  height: 80px;
  background: white;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.5rem;
  font-weight: 600;
  color: #333;
  z-index: 1;
}

.donut-label {
  font-size: 0.9rem;
  font-weight: 500;
  color: #666;
}

/* Legend Colors */
.legend-color.quizzes {
  background: linear-gradient(135deg, #4CAF50 0%, #8BC34A 100%);
}

.legend-color.games {
  background: linear-gradient(135deg, #2196F3 0%, #03A9F4 100%);
}

.legend-color.flashcards {
  background: linear-gradient(135deg, #9C27B0 0%, #E040FB 100%);
}

.legend-color.active {
  background: linear-gradient(180deg, #4CAF50 0%, #8BC34A 100%);
}

.legend-color.inactive {
  background: linear-gradient(180deg, #F44336 0%, #FF9800 100%);
}

/* New Users Overview */
.new-users-chart {
  padding-bottom: 1rem;
}

.date-selector {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #666;
  font-size: 0.9rem;
  cursor: pointer;
}

.new-users-stats {
  display: flex;
  justify-content: space-around;
  margin: 1.5rem 0;
}

.new-user-stat {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.new-user-icon {
  width: 45px;
  height: 45px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  transition: all 0.3s ease;
}

.new-user-icon:hover {
  transform: scale(1.1);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.new-user-icon.registeredusers {
  background: linear-gradient(135deg, #4CAF50 0%, #8BC34A 100%);
  color: white;
}

.new-user-icon.guests {
  background: linear-gradient(135deg, #2196F3 0%, #03A9F4 100%);
  color: white;
}

.new-user-info h4 {
  margin: 0;
  color: #666;
  font-size: 0.9rem;
  font-weight: 500;
}

.new-user-count {
  font-size: 1.5rem;
  font-weight: 600;
  color: #333;
  margin: 0.25rem 0;
}

.new-users-progress {
  margin-top: 1rem;
}

.progress-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 0.5rem;
}

.progress-bar {
  height: 8px;
  background: #f0f0f0;
  border-radius: 4px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #FF9090 0%, #FF6B6B 100%);
  border-radius: 4px;
  width: 0;
  animation: fillProgress 1.5s ease-out forwards;
  position: relative;
  overflow: hidden;
}

.progress-fill::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  animation: progressShine 2s infinite linear;
}

@keyframes progressShine {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* Chart Filter */
.chart-filter {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #666;
  font-size: 0.9rem;
  cursor: pointer;
  transition: color 0.3s ease;
}

.chart-filter:hover {
  color: #FF9090;
}

/* Additional Animations */
@keyframes fillProgress {
  from {
    width: 0;
  }
  to {
    width: 54%;
    width: var(--width, 54%);
  }
}

@keyframes shimmer {
  0% {
    background-position: -200px 0;
  }
  100% {
    background-position: 200px 0;
  }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .chart-section {
    grid-template-columns: 1fr;
  }
  
  .donut-charts-container {
    flex-direction: column;
    align-items: center;
    gap: 2rem;
  }
  
  .new-users-stats {
    flex-direction: column;
    gap: 1.5rem;
  }
  
  .dashboard-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
  }
  
  .dashboard-tab {
    white-space: nowrap;
  }
}

/* Fix cursor preview size */
.ad-file-preview img,
.ad-sample-item img {
  max-width: 32px !important;
  max-height: 32px !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain;
}

/* Ensure cursor files display properly in the grid */
.ad-shop-item img {
  max-width: 64px;
  max-height: 64px;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* Fix cursor preview size */
.ad-file-preview img,
.ad-sample-item img {
  max-width: 32px !important;
  max-height: 32px !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain;
}
/* Ensure cursor files display properly in the grid */
.ad-shop-item img {
  max-width: 64px;
  max-height: 64px;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* Modal Border Preview Styles */
.border-preview-container {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.avatar-with-border {
  position: relative;
  width: 150px;
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.avatar-placeholder {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  z-index: 1;
}

.avatar-border-preview {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  object-fit: contain;
  z-index: 2;
  pointer-events: none;
}

/* Avatar-specific styles */
.avatar-preview-container {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  border-radius: 12px;
  margin-bottom: 15px;
}

.avatar-image {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #e2e8f0;
  transition: all 0.3s ease;
}

.ad-shop-item:hover .avatar-image {
  border-color: #ff6f6f;
  transform: scale(1.05);
}

.avatar-file-preview {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8fafc;
  border-radius: 12px;
  padding: 20px;
}

.avatar-preview-image {
  max-width: 100%;
  max-height: 200px;
  width: auto;
  height: auto;
  border-radius: 12px;
  object-fit: contain;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Responsive adjustments for avatars */
@media (max-width: 768px) {
  .avatar-preview-container {
    padding: 15px;
  }
  
  .avatar-image {
    width: 60px;
    height: 60px;
  }
  
  .avatar-file-preview {
    padding: 15px;
  }
  
  .avatar-preview-image {
    max-height: 150px;
  }
}

/* Extra Wide Modal Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  padding: 20px;
}

.modal-content {
  background: white;
  border-radius: 16px;
  width: 95%;
  max-width: 1600px; /* Much wider */
  height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  border: 1px solid #e5e7eb;
}

.extra-wide-modal {
  width: 98%;
  max-width: 1800px; /* Even wider */
  height: 95vh;
}

.modal-header {
  padding: 24px 32px;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f8fafc;
  border-radius: 16px 16px 0 0;
}

.modal-header h3 {
  margin: 0;
  color: #1f2937;
  font-size: 1.5rem;
  font-weight: 700;
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #6b7280;
  padding: 8px;
  border-radius: 8px;
  transition: all 0.2s;
}

.modal-close:hover {
  background-color: #ef4444;
  color: white;
}

.modal-body {
  padding: 32px;
  overflow-y: auto;
  flex: 1 1;
  background: white;
}

.modal-footer {
  padding: 24px 32px;
  border-top: 1px solid #e5e7eb;
  display: flex;
  justify-content: flex-end;
  background: #f8fafc;
  border-radius: 0 0 16px 16px;
}

/* Enhanced Preview Content for Wider Modal */
.preview-content {
  max-width: 100%;
}

.preview-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 2px solid #e5e7eb;
}

.preview-header h3 {
  margin: 0;
  color: #1f2937;
  font-size: 2.25rem; /* Larger title */
  font-weight: 700;
  line-height: 1.2;
  flex: 1 1;
  margin-right: 20px;
}

/* Wider Flashcards Grid */
.flashcards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr)); /* Wider cards */
  grid-gap: 24px;
  gap: 24px;
  margin-top: 20px;
}

.flashcard-preview {
  background: white;
  border: 2px solid #f3f4f6;
  border-radius: 16px;
  padding: 28px; /* More padding */
  display: flex;
  flex-direction: column;
  gap: 24px;
  transition: all 0.2s;
  min-height: 200px; /* Taller cards */
}

/* Wider Questions Layout */
.questions-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(600px, 1fr)); /* Much wider question cards */
  grid-gap: 24px;
  gap: 24px;
  margin-top: 16px;
}

.question-preview {
  background: white;
  border: 2px solid #f3f4f6;
  border-radius: 16px;
  padding: 32px; /* More padding */
  transition: all 0.2s;
  min-height: 250px;
}

.question-text {
  font-size: 1.25rem; /* Larger question text */
  line-height: 1.6;
  color: #374151;
  margin-bottom: 24px;
  font-weight: 500;
}

/* Wider Options List */
.options-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr; /* Two columns for options */
  grid-gap: 12px;
  gap: 12px;
}

.option-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px; /* More padding */
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  transition: all 0.2s;
  min-height: 60px;
}

.option-text {
  flex: 1 1;
  color: #374151;
  font-size: 1.125rem; /* Larger option text */
  font-weight: 500;
}

/* Game Info Grid - Wider */
.game-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Wider info items */
  grid-gap: 20px;
  gap: 20px;
  margin-top: 16px;
}

.info-item span {
  color: #1f2937;
  font-size: 1.25rem; /* Larger info text */
  font-weight: 500;
}

/* Note Content - Wider with better spacing */
.note-content-preview {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 40px; /* More padding */
  max-height: 600px; /* Taller */
  overflow-y: auto;
  line-height: 1.8;
  font-size: 1.25rem; /* Larger text */
  color: #4b5563;
}

/* Instructions and Description - Wider */
.instructions-content,
.description-content {
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 32px; /* More padding */
  font-size: 1.25rem; /* Larger text */
  line-height: 1.7;
  color: #4b5563;
  min-height: 120px;
}

/* Section Headers - Larger */
.preview-section h4 {
  margin: 0 0 24px 0;
  color: #1f2937;
  font-size: 1.75rem; /* Larger section headers */
  font-weight: 600;
}

/* Content Type Badges - Larger */
.content-type-badge {
  padding: 12px 20px; /* Larger badges */
  border-radius: 25px;
  font-size: 1rem; /* Larger text */
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Count Badges - Larger */
.questions-count,
.cards-count {
  background: #f3f4f6;
  color: #6b7280;
  padding: 8px 16px; /* Larger */
  border-radius: 15px;
  font-size: 1rem; /* Larger */
  font-weight: 500;
}

/* Correct Answer Container - Larger */
.correct-answer-container {
  margin-top: 24px;
  padding: 24px; /* More padding */
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 12px;
}

.correct-answer-text {
  color: #166534;
  font-size: 1.25rem; /* Larger */
  font-weight: 500;
  padding: 16px; /* More padding */
  background: white;
  border-radius: 8px;
  border: 1px solid #bbf7d0;
}

/* Question Type Badge - Larger */
.question-type {
  background: #dbeafe;
  color: #1e40af;
  padding: 8px 16px; /* Larger */
  border-radius: 15px;
  font-size: 0.875rem; /* Slightly larger */
  font-weight: 600;
  text-transform: uppercase;
}

/* Flashcard Content - Larger */
.flashcard-content {
  font-size: 1.25rem; /* Larger */
  line-height: 1.6;
  color: #374151;
  font-weight: 500;
}

/* Loading State - Larger */
.loading-preview p {
  color: #6b7280;
  font-size: 1.5rem; /* Larger */
  font-weight: 500;
}

/* Responsive adjustments for extra wide modal */
@media (max-width: 1920px) {
  .extra-wide-modal {
    max-width: 1600px;
  }
  
  .questions-container {
    grid-template-columns: 1fr; /* Single column on smaller wide screens */
  }
}

@media (max-width: 1600px) {
  .extra-wide-modal {
    max-width: 1400px;
  }
  
  .flashcards-grid {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  }
}

@media (max-width: 1400px) {
  .extra-wide-modal {
    max-width: 1200px;
  }
}

/* Ensure modal stays centered and responsive */
.modal-overlay {
  overflow: auto;
}

.modal-content {
  margin: auto;
}

/* Logs */
/* Logs specific styles */
.log-datetime {
  font-size: 0.9rem;
  color: #666;
  font-weight: 500;
}

.log-user {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.log-user-name {
  font-weight: 600;
  color: #333;
  font-size: 0.95rem;
}

.log-user-id {
  font-size: 0.8rem;
  color: #888;
  font-family: monospace;
}

.log-content {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-start;
}

.log-content-id {
  font-size: 0.8rem;
  color: #666;
  font-family: monospace;
  background: #f5f5f5;
  padding: 2px 6px;
  border-radius: 4px;
}

.ad-action-other {
  background: linear-gradient(135deg, #9C27B0 0%, #E040FB 100%);
  color: white;
}

.admin-navbar {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  padding: 0.75rem 1.5rem;
  background-color: white;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: 60px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.admin-menu-button {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  margin-right: 0.75rem;
}

.admin-menu-button span {
  display: block;
  width: 24px;
  height: 2px;
  background: linear-gradient(180deg, #FF9090 0%, #FF9090 100%);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.admin-menu-button:hover span {
  transform: scaleX(1.1);
}

.admin-nav-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.admin-logo {
  display: flex;
  align-items: flex-end;
  gap: 0.5rem;
  text-decoration: none;
  height: 40px;
  position: relative;
}

.admin-logo img {
  height: 40px;
  align-self: center;
}

.admin-logo span {
  font-size: 1.5rem;
  font-weight: bold;
  color: #FF9090;
  line-height: 1;
  position: relative;
  top: 3px;
}

.admin-nav-right {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.admin-notifications-container {
  margin-right: 10px;
  position: relative;
}

.admin-notifications-button {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FF9090;
  font-size: 1.2rem;
  transition: transform 0.2s ease;
}

.admin-notifications-button:hover {
  transform: translateY(-1px);
}

.admin-notification-count {
  position: absolute;
  top: -10px;
  right: -10px;
  background: #FF9090;
  color: white;
  font-size: 0.75rem;
  padding: 2px 6px;
  border-radius: 1rem;
  font-weight: 500;
}

.notifications-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  width: 350px;
  max-height: 480px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  z-index: 1002;
  overflow: hidden;
  border: 1px solid #e5e7eb;
}

.notifications-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid #f0f0f0;
  background: #fafafa;
}

.notifications-header h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: #333;
}

.close-notifications {
  background: none;
  border: none;
  cursor: pointer;
  color: #6b7280;
  padding: 6px;
  border-radius: 4px;
  transition: background-color 0.2s ease;
}

.close-notifications:hover {
  background: #f3f4f6;
  color: #374151;
}

.notifications-content {
  max-height: 350px;
  overflow-y: auto;
}

.notification-loading {
  padding: 40px 20px;
  text-align: center;
  color: #6b7280;
  font-size: 0.9rem;
}

.no-notifications {
  padding: 40px 20px;
  text-align: center;
}

.no-notifications p {
  margin: 0;
  color: #6b7280;
  font-size: 0.9rem;
}

.notifications-list {
  padding: 8px 0;
}

.notification-item {
  display: flex;
  align-items: flex-start;
  padding: 12px 20px;
  border-left: 3px solid transparent;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.notification-item:hover {
  background: rgba(255, 144, 144, 0.1);
  border-left-width: 5px;
}

.notification-item.read {
  opacity: 0.8;
  background: #fafafa;
}

.notification-item.read:hover {
  opacity: 1;
  background: rgba(255, 144, 144, 0.1);
}

.notification-item.user {
  border-left-color: #3b82f6;
}

.notification-item.warning {
  border-left-color: #ef4444;
}

.notification-item.shop {
  border-left-color: #10b981;
}

.notification-unread-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: #FF9090;
  border-radius: 50%;
  margin-left: 6px;
  vertical-align: middle;
}

.notification-icon {
  margin-right: 12px;
  margin-top: 2px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
}

.notification-content {
  flex: 1 1;
  min-width: 0;
}

.notification-title {
  font-weight: 500;
  color: #374151;
  font-size: 0.9rem;
  line-height: 1.4;
  margin-bottom: 4px;
  word-wrap: break-word;
}

.notification-message {
  color: #6b7280;
  font-size: 0.85rem;
  line-height: 1.4;
  margin-bottom: 8px;
  word-wrap: break-word;
}

.notification-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.notification-date {
  font-size: 0.8rem;
  color: #6b7280;
}

.notification-status {
  font-size: 0.75rem;
  font-weight: 500;
  padding: 2px 8px;
  border-radius: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.notification-status.user {
  background: #eff6ff;
  color: #2563eb;
}

.notification-status.warning {
  background: #fef2f2;
  color: #dc2626;
}

.notification-status.shop {
  background: #f0fdf4;
  color: #059669;
}

.notifications-footer {
  padding: 12px 20px;
  border-top: 1px solid #f0f0f0;
  background: #fafafa;
}

.mark-all-read {
  display: block;
  width: 100%;
  text-align: center;
  color: #FF9090;
  background: none;
  border: none;
  font-size: 0.9rem;
  padding: 8px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.mark-all-read:hover {
  background: rgba(255, 144, 144, 0.1);
}

.notifications-content::-webkit-scrollbar {
  width: 6px;
}

.notifications-content::-webkit-scrollbar-track {
  background: #f1f1f1;
}

.notifications-content::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 3px;
}

.notifications-content::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}

.admin-profile-section {
  margin-left: 10px;
}

.admin-profile-dropdown {
  display: flex;
  align-items: center;
  gap: 8px;
  background: white;
  padding: 12px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.admin-profile-dropdown:hover {
  background: rgba(255, 144, 144, 0.1);
}

.admin-profile-image {
  font-size: 1rem;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FF9090;
}

.admin-profile-name {
  color: #333;
  font-weight: 500;
  font-size: 0.9rem;
}

.admin-dropdown-icon {
  color: #FF9090;
  font-size: 10px;
}

/* Admin Dropdown Menu */
.admin-dropdown-menu {
  position: absolute;
  right: 10px;
  top: calc(100% + -10px);
  width: 220px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 1001;
  overflow: hidden;
  animation: fadeIn 0.2s ease-out;
}

.admin-dropdown-item {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.admin-dropdown-item:hover {
  background-color: rgba(255, 144, 144, 0.1);
}

.admin-dropdown-icon {
  width: 20px;
  margin-right: 12px;
  color: #FF9090;
  font-size: 0.9rem;
}

/* Admin Sidebar */
.admin-sidebar {
  width: 250px;
  background-color: white;
  display: flex;
  flex-direction: column;
  height: calc(100vh - 60px);
  position: fixed;
  left: 0;
  top: 60px;
  padding-top: 20px;
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 999;
  overflow: hidden;
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.05);
}

.admin-sidebar.collapsed {
  width: 55px;
  overflow: hidden;
}

.admin-sidebar-menu {
  flex: 1 1;
  padding: 10px 0;
}

.admin-sidebar-item {
  display: flex;
  align-items: center;
  padding: 20px 16px;
  text-decoration: none;
  color: #555;
  transition: all 0.3s ease;
  margin: 0 8px 4px 0px;
  font-size: 1rem;
  white-space: nowrap;
  overflow: hidden;
  position: relative;
  border-radius: 8px;
}

.admin-sidebar-item:hover {
  background-color: rgba(255, 144, 144, 0.1);
  color: #FF9090;
}

.admin-sidebar-item.active {
  background-color: rgba(255, 144, 144, 0.1);
  color: #FF9090;
  font-weight: 500;
}

.admin-sidebar-item.active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px; /* Smaller width */
  height: 16px; /* Smaller height */
  background-color: #FF9090;
  border-radius: 0 8px 8px 0; /* Perfect half-circle based on height */
  box-shadow: 0 0 8px 2px rgba(255, 144, 144, 0.7); /* Maintained glow effect */
}

.admin-sidebar-icon {
  min-width: 24px;
  width: 24px;
  height: 24px;
  margin-right: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #666;
  transition: color 0.3s ease;
}

.admin-sidebar-item:hover .admin-sidebar-icon,
.admin-sidebar-item.active .admin-sidebar-icon {
  color: #FF9090;
}

/* Collapsed Sidebar States */
.admin-sidebar.collapsed .admin-sidebar-item,
.admin-sidebar.collapsed .admin-sidebar-button {
  padding-top: 15px;
  padding-bottom: 15px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .admin-sidebar {
    transform: translateX(-100%);
  }
  
  .admin-sidebar.open {
    transform: translateX(0);
  }

  .admin-main-content {
    margin-left: 0;
  }
}
/* One-Page Quiz Styles */
.opq-container {
  min-height: calc(100vh - 60px);
  background: linear-gradient(135deg, #d6fbff 0%, #76e7eb 50%, #f6feff 100%);
  padding-bottom: 100px;
}

.opq-header {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.98);
  -webkit-backdrop-filter: blur(15px);
          backdrop-filter: blur(15px);
  padding: 25px 40px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  z-index: 100;
  border-bottom: 3px solid #00E0E9;
}

.opq-header-content {
  max-width: 1400px;
  position: sticky;
  margin: 0 auto;
}

.opq-title {
  font-size: 28px;
  font-weight: 700;
  color: #333;
  margin: 0 0 20px 0;
  text-align: center;
}

/* Correct Answer Indicator */
.opq-correct-answer-indicator {
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 2px 10px rgba(16, 185, 129, 0.3);
  margin-left: auto;
}

/* Unanswered Question Indicator */
.opq-unanswered-indicator {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 2px 10px rgba(239, 68, 68, 0.3);
  margin-left: auto;
}

/* Unanswered Question Card Styling */
.opq-question-card.unanswered {
  border: 2px solid #ef4444;
  box-shadow: 0 4px 20px rgba(239, 68, 68, 0.15);
}

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

.opq-timer-container {
  margin: 0 0 20px 0;
  max-width: 100%;
}

.opq-timer-slider {
  width: 100%;
  height: 25px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 13px;
  position: relative;
  overflow: hidden;
  -webkit-backdrop-filter: blur(20px);
          backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
}

.opq-timer-progress {
  position:sticky;
  height: 100%;
  background: linear-gradient(90deg, #FFB800 0%, #FFA000 100%);
  border-radius: 13px;
  transition: width 1s linear;
  position: relative;
  box-shadow: inset 0 1px 3px rgba(255, 255, 255, 0.3);
}

.opq-timer-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #000000;
  font-size: 24px;
  font-weight: 700;
  z-index: 10;
}

.opq-header-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
  width: 100%;
}

.opq-back-btn {
  padding: 12px 30px;
  border-radius: 25px;
  border: none;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 100px;
  text-align: center;
  background: #ff4757;
  color: white;
  box-shadow: 0 4px 15px rgba(255, 71, 87, 0.3);
  order: -1;
}

.opq-back-btn:hover {
  background: #e84049;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 71, 87, 0.4);
}

.opq-submit-quiz-btn,
.opq-music-btn,
.opq-show-answers-btn {
  padding: 12px 30px;
  border-radius: 25px;
  border: none;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 140px;
  text-align: center;
}

.opq-music-btn {
  background: #2196F3;
  color: white;
  box-shadow: 0 4px 15px rgba(33, 150, 243, 0.3);
  position: relative;
  overflow: hidden;
}

.opq-music-btn:hover {
  background: #1976D2;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(33, 150, 243, 0.4);
}

.opq-music-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(33, 150, 243, 0.3);
}

/* Sliding animation for music button text */
.opq-music-btn::before {
  content: attr(data-text);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: transform 0.3s ease;
  white-space: nowrap;
}

.opq-music-btn[data-state="on"]::before {
  transform: translate(-50%, -50%) translateX(0);
}

.opq-music-btn[data-state="off"]::before {
  transform: translate(-50%, -50%) translateX(0);
}

.opq-show-answers-btn {
  background: #3b82f6;
  color: white;
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.opq-show-answers-btn:hover {
  background: #2563eb;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}
.opq-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 40px 20px;
}

.opq-questions-list {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.opq-question-card {
  background: white;
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.opq-question-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.15);
}

.opq-question-header {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.opq-question-number {
  background: linear-gradient(135deg, #00E0E9 0%, #00c7cf 100%);
  color: white;
  padding: 8px 20px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
}

.opq-question-text {
  font-size: 24px;
  font-weight: 600;
  color: #333;
  margin: 0 0 25px 0;
  line-height: 1.4;
}

.opq-multiple-answers-tip {
  display: inline-block;
  margin-left: 10px;
  background-color: #f0f9ff;
  color: #0369a1;
  border: 1px solid #0ea5e9;
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 13px;
  vertical-align: middle;
}

/* Multiple Choice Styles */
.opq-choices-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-gap: 15px;
  gap: 15px;
}

.opq-choice {
  background: rgba(255, 255, 255, 0.9);
  -webkit-backdrop-filter: blur(5px);
          backdrop-filter: blur(5px);
  border-radius: 15px;
  padding: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 20px;
  position: relative;
  overflow: hidden;
}

.opq-choice::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 224, 233, 0.1), transparent);
  transition: left 0.5s;
}

.opq-choice:hover::before {
  left: 100%;
}

.opq-choice:hover {
  background: rgba(0, 224, 233, 0.05);
  transform: translateX(5px);
}

.opq-choice.selected {
  background: linear-gradient(135deg, #00E0E9 0%, #00c7cf 100%);
  color: white;
}

.opq-choice.correct {
  background: linear-gradient(135deg, #00ff88 0%, #00e676 100%);
  color: white;
}

.opq-choice.incorrect {
  background: linear-gradient(135deg, #ff4757 0%, #ff3742 100%);
  color: white;
}

.opq-choice-label {
  background: white;
  color: #333;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
}

.opq-choice.selected .opq-choice-label {
  background: rgba(255, 255, 255, 0.3);
  color: white;
}

.opq-choice-text {
  flex: 1 1;
  font-size: 16px;
}

/* True/False Styles */
.opq-tf-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-gap: 20px;
  gap: 20px;
  max-width: 600px;
  margin: 0 auto;
}

.opq-tf-choice {
  background: #f8f9fa;
  border: 2px solid #e0e0e0;
  border-radius: 15px;
  padding: 30px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  font-size: 24px;
  font-weight: 700;
  color: #333;
}

.opq-tf-choice:hover {
  border-color: #00E0E9;
  background: rgba(0, 224, 233, 0.05);
  transform: scale(1.05);
}

.opq-tf-choice.selected {
  background: linear-gradient(135deg, #00E0E9 0%, #00c7cf 100%);
  border-color: #00E0E9;
  color: white;
}

/* Text Input Styles */
.opq-text-input {
  width: 100%;
  padding: 15px 20px;
  font-size: 16px;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  outline: none;
  transition: all 0.3s ease;
}

.opq-text-input:focus {
  border-color: #00E0E9;
  box-shadow: 0 0 0 3px rgba(0, 224, 233, 0.1);
}

/* Enumeration Styles */
.opq-enumeration-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.opq-enumeration-item {
  display: flex;
  align-items: center;
  gap: 15px;
}

.opq-enum-number {
  font-weight: 700;
  color: #00E0E9;
  font-size: 18px;
  min-width: 30px;
}

.opq-enum-input {
  flex: 1 1;
  padding: 12px 18px;
  font-size: 16px;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  outline: none;
  transition: all 0.3s ease;
}

.opq-enum-input:focus {
  border-color: #00E0E9;
  box-shadow: 0 0 0 3px rgba(0, 224, 233, 0.1);
}

/* Matching Styles */
.opq-matching-container {
  margin-top: 20px;
}

.opq-matching-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-gap: 30px;
  gap: 30px;
}

.opq-matching-column {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.opq-matching-header {
  font-size: 18px;
  font-weight: 700;
  color: #00E0E9;
  margin: 0 0 10px 0;
  text-align: center;
  padding-bottom: 10px;
  border-bottom: 2px solid #00E0E9;
}

.opq-matching-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  background: #f8f9fa;
  border-radius: 10px;
}

.opq-matching-label {
  font-weight: 700;
  color: #00E0E9;
  min-width: 25px;
}

.opq-matching-text {
  flex: 1 1;
  font-size: 16px;
  color: #333;
}

.opq-matching-select {
  flex: 1 1;
  padding: 10px;
  font-size: 16px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  outline: none;
  transition: all 0.3s ease;
  background: white;
}

.opq-matching-select:focus {
  border-color: #00E0E9;
  box-shadow: 0 0 0 3px rgba(0, 224, 233, 0.1);
}

/* Submit Button */
.opq-submit-container {
  display: none;
}

.opq-submit-quiz-btn {
  background: #FF9800;
  color: white;
  box-shadow: 0 4px 15px rgba(255, 152, 0, 0.3);
}


.opq-submit-quiz-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Bottom Submit Button */
.opq-bottom-submit-container {
  display: flex;
  justify-content: center;
  margin-top: 40px;
  padding: 30px 0;
  position: sticky;
  bottom: 20px;
  z-index: 90;
}

.opq-bottom-submit-btn {
  font-size: 18px;
  padding: 15px 40px;
  min-width: 200px;
  background: linear-gradient(135deg, #FF9800 0%, #F57C00 100%);
  color: white;
  font-weight: bold;
  transform: scale(1.1);
}

/* Responsive Design */
@media (max-width: 768px) {
  .opq-header {
    padding: 15px 20px;
  }

  .opq-title {
    font-size: 24px;
  }

  .opq-choices-grid {
    grid-template-columns: 1fr;
  }

  .opq-tf-container {
    grid-template-columns: 1fr;
  }

  .opq-matching-columns {
    grid-template-columns: 1fr;
  }

  .opq-question-card {
    padding: 20px;
  }

  .opq-question-text {
    font-size: 20px;
  }
}

/* Sonner Popup Styles */
.opq-sonner-popup {
  padding: 20px;
  text-align: center;
}

.opq-sonner-popup h3 {
  margin-top: 0;
  color: #FF5722;
  font-size: 20px;
  font-weight: 700;
}

.opq-sonner-popup p {
  margin: 10px 0;
  font-size: 16px;
}

.opq-sonner-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 20px;
}

.opq-sonner-submit {
  background: #FF9800;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.opq-sonner-review {
  background: #f5f5f5;
  color: #333;
  border: 1px solid #ddd;
  padding: 10px 20px;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
}

.opq-sonner-submit:hover {
  background: #F57C00;
}

.opq-sonner-review:hover {
  background: #e0e0e0;
}
/* Quiz Post Results Styles */
.qpr-container {
  min-height: 100vh;
  padding: 20px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.qpr-content {
  max-width: 1200px; /* Increased from 900px to make container wider */
  width: 100%;
  background: #ffffff; /* White background instead of transparent */
  border-radius: 20px;
  padding: 30px;
  /* Removed box shadow */
  border: 1px solid #cccccc; /* Gray border */
}

/* Icon colors and sizes */
.qpr-stat-icon.accuracy-icon {
  color: #4ade80; /* Green for accuracy */
}

.qpr-stat-icon.time-taken-icon {
  color: #64748b; /* Slate color for time taken */
}

/* Make icons bigger */
.qpr-stat-icon svg {
  width: 80px;
  height: 80px;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.qpr-stat-icon:hover svg {
  transform: scale(1.05);
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
}

/* Increase polyline size for correct answers and time taken */
.qpr-stat-icon.correct-answers-icon svg polyline,
.qpr-stat-icon.time-taken-icon svg polyline {
  stroke-width: 2.5;
  transform: scale(1.2);
  transform-origin: center;
}

/* Stat values colors */
.qpr-stat-value.accuracy-value {
  color: #4ade80; /* Green for accuracy */
}

.qpr-stat-value.time-taken-value {
  color: #64748b; /* Slate color for time taken */
}

/* Best score color */
.qpr-progress-value.best-score {
  color: #10b981;
}

/* Header */
.qpr-header {
  text-align: center;
  margin-bottom: 30px;
}

.qpr-title {
  font-size: 32px;
  font-weight: 700;
  color: #333333;
  margin: 0 0 10px 0;
  /* Removed text shadow */
}

.qpr-topic {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
  font-weight: 400;
}

/* Results section */
.qpr-results-section {
  display: flex;
  justify-content: space-around;
  align-items: center;
  margin-bottom: 30px;
  flex-wrap: wrap;
  gap: 20px;
}

/* Circular Progress */
.qpr-circular-progress {
  position: relative;
  width: 140px;
  height: 140px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto;
}

.qpr-progress-ring {
  transform: rotate(-90deg);
  width: 100%;
  height: 100%;
}

.qpr-progress-circle {
  width: 140px;
  height: 140px;
  transform: rotate(-90deg);
}

.qpr-progress-circle-bg {
  fill: none;
  stroke: #e5e5e5;
  stroke-width: 8px;
}

.qpr-progress-circle-fill {
  fill: none;
  stroke: #4ade80;
  stroke-width: 8px;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.8s ease-in-out;
}

.qpr-percentage-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 32px;
  font-weight: 700;
  color: #4ade80;
  z-index: 10;
}

/* Metric Cards */
.qpr-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.qpr-metric-card {
  background: rgba(255, 255, 255, 0.1);
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  border-radius: 15px;
  padding: 20px;
  min-width: 150px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.qpr-metric-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.qpr-metric-value {
  font-size: 24px;
  font-weight: 700;
  color: white;
  margin: 0 0 5px 0;
}

.qpr-metric-label {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
}

/* Questions and Answers Section */
.qpr-questions-section {
  background: #ffffff;
  border-radius: 15px;
  padding: 25px;
  margin-top: 30px;
  border: 1px solid #cccccc;
  display: flex;
  flex-direction: column;
  max-height: 80vh; /* Limit the height to prevent overflow */
}

.qpr-questions-title {
  font-size: 24px;
  font-weight: 600;
  color: #333333;
  margin: 0 0 20px 0;
  text-align: center;
}

.qpr-questions-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-height: 500px;
  min-height: 300px;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 10px 5px;
  flex: 1 1;
}

/* Custom scrollbar */
.qpr-questions-list::-webkit-scrollbar {
  width: 8px;
}

.qpr-questions-list::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

.qpr-questions-list::-webkit-scrollbar-thumb {
  background: #cccccc;
  border-radius: 10px;
}

.qpr-questions-list::-webkit-scrollbar-thumb:hover {
  background: #aaaaaa;
}

/* Question Item */
.qpr-question-item {
  background: #f9f9f9;
  border-radius: 12px;
  padding: 20px;
  border: 1px solid #cccccc;
  transition: transform 0.3s ease;
  position: relative;
  overflow: hidden;
  animation: listFadeIn 0.5s ease forwards;
}

.qpr-question-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* Correct/Incorrect Question Styling */
.qpr-question-item.correct {
  border: 2px solid #4ade80; /* Green border */
  background: #f0fff4; /* Light green background */
}

.qpr-question-item.incorrect {
  border: 2px solid #f87171; /* Red border */
  background: #fff0f0; /* Light red background */
}

.qpr-question-item.correct::before,
.qpr-question-item.incorrect::before {
  display: none; /* Remove decorative elements */
}

/* Question Header */
.qpr-question-header {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
  background: #f5f5f5;
  padding: 12px 15px;
  border-radius: 10px;
  border: 1px solid #e0e0e0;
  position: relative;
  overflow: hidden;
}

/* Remove decorative animations */
.qpr-question-header::before,
.qpr-question-header::after {
  display: none;
}

.qpr-question-number {
  background: #eeeeee;
  padding: 8px 12px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 16px;
  color: #333333;
  margin-right: 15px;
  border: 1px solid #dddddd;
  transition: transform 0.2s ease;
}

.qpr-question-status {
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  margin-left: auto;
  transition: transform 0.2s ease;
}

.qpr-question-status.correct {
  background: #f0fff4;
  color: #16a34a;
  border: 1px solid #4ade80;
}

.qpr-question-status.incorrect {
  background: #fff0f0;
  color: #dc2626;
  border: 1px solid #f87171;
}

/* Question Content */
.qpr-question-content {
  margin-bottom: 20px;
}

.qpr-question-text {
  font-size: 18px;
  color: #333333;
  margin: 0 0 15px 0;
  line-height: 1.5;
  padding: 15px;
  background: #f9f9f9;
  border-radius: 10px;
  border: 1px solid #e0e0e0;
  position: relative;
}

/* Remove decorative elements */
.qpr-question-text::before {
  display: none;
}

/* Answers */
.qpr-answers {
  margin-bottom: 15px;
}

.qpr-answer-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #f5f5f5;
  padding: 15px;
  border-radius: 10px;
  border: 1px solid #e0e0e0;
}

.qpr-option {
  display: flex;
  align-items: center;
  padding: 12px 15px;
  border-radius: 8px;
  background: #ffffff;
  border: 1px solid #cccccc;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.qpr-option:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Answer option highlighting */
.qpr-option.correct-answer {
  background-color: #e6ffee;
  border: 2px solid #4ade80;
  color: #16a34a;
  box-shadow: 0 0 8px rgba(74, 222, 128, 0.3);
}

.qpr-option.incorrect-answer {
  background-color: #ffebeb;
  border: 2px solid #f87171;
  color: #dc2626;
  box-shadow: 0 0 8px rgba(248, 113, 113, 0.3);
}

.qpr-option.user-answer {
  background-color: #eff6ff;
  border: 2px solid #3b82f6;
  color: #2563eb;
  font-weight: 600;
  box-shadow: 0 0 8px rgba(59, 130, 246, 0.3);
}

/* When user selected the correct answer */
.qpr-option.correct-answer.user-answer {
  background-color: #e6ffee;
  border: 2px solid #4ade80;
  box-shadow: 0 0 12px rgba(74, 222, 128, 0.4);
  color: #16a34a;
  position: relative;
}

/* Add checkmark for correct answer */
.qpr-option.correct-answer::after {
  content: "";
  position: absolute;
  right: 15px;
  font-size: 18px;
  color: #4ade80;
  font-weight: bold;
}

/* Add X icon for user's incorrect answer */
.qpr-option.user-answer:not(.correct-answer)::after {
  content: "";
  position: absolute;
  right: 15px;
  font-size: 18px;
  color: #dc2626;
  font-weight: bold;
}

/* Add user indicator for all user answers */
.qpr-option.user-answer::before {
  content: "";
  position: absolute;
  right: 45px;
  font-size: 16px;
  color: #3b82f6;
  font-weight: bold;
}

/* If user selected the correct answer */
.qpr-option.correct-answer.user-answer::after {
  content: "";
  color: #4ade80;
}

.qpr-option::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.05) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.qpr-option:hover::before {
  opacity: 1;
}

/* Correct answer styling */
.qpr-option.correct-answer::after,
.qpr-option-item.correct-option .qpr-correct-mark {
  content: '';
  position: absolute;
  right: 15px;
  color: #4ade80;
  font-size: 18px;
  font-weight: bold;
  text-shadow: 0 0 5px rgba(74, 222, 128, 0.5);
  animation: checkmarkPulse 2s infinite;
}

/* User answer styling (when incorrect) */
.qpr-option.user-answer:not(.correct-answer)::after,
.qpr-option-item.wrong-option .qpr-wrong-mark {
  content: '';
  position: absolute;
  right: 15px;
  color: #f87171;
  font-size: 18px;
  font-weight: bold;
  text-shadow: 0 0 5px rgba(248, 113, 113, 0.5);
}

/* When user selected the correct answer */
.qpr-option-item.correct-user-option {
  background: rgba(74, 222, 128, 0.2);
  box-shadow: 0 0 15px rgba(74, 222, 128, 0.4);
}

.qpr-option-label {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  font-weight: 600;
  margin-right: 15px;
  flex-shrink: 0;
  transition: transform 0.2s ease, background 0.2s ease;
}

.qpr-option:hover .qpr-option-label {
  transform: scale(1.1);
  background: rgba(255, 255, 255, 0.2);
}

.qpr-option-text {
  color: white;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.4;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.qpr-answer-summary {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 15px;
  margin-top: 15px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  animation: fadeInScale 0.5s ease forwards;
}

.qpr-user-answer,
.qpr-correct-answer {
  margin: 5px 0;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.9);
}

.qpr-user-answer span,
.qpr-correct-answer span {
  font-weight: 600;
}

.qpr-user-answer span {
  color: #f87171;
}

.qpr-correct-answer span {
  color: #4ade80;
}

/* Completion Info */
.qpr-completion-info {
  text-align: center;
  margin: 30px 0;
  padding: 20px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 15px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.1);
  animation: fadeInScale 0.5s ease forwards;
}

.qpr-completion-text {
  font-size: 18px;
  color: white;
  margin: 0 0 15px 0;
}

.qpr-action-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 20px;
}

.qpr-try-again-btn,
.qpr-back-to-quizzes-btn {
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: none;
  outline: none;
}

.qpr-try-again-btn {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: white;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.qpr-back-to-quizzes-btn {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.2);
  -webkit-backdrop-filter: blur(5px);
          backdrop-filter: blur(5px);
}

.qpr-try-again-btn:hover,
.qpr-back-to-quizzes-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

/* Custom scrollbar */
.qpr-questions-list::-webkit-scrollbar {
  width: 8px;
}

.qpr-questions-list::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

.qpr-questions-list::-webkit-scrollbar-thumb {
  background: #cccccc;
  border-radius: 10px;
}

.qpr-questions-list::-webkit-scrollbar-thumb:hover {
  background: #aaaaaa;
}

/* Question Item */
.qpr-question-item {
  background: #f9f9f9;
  border-radius: 12px;
  padding: 20px;
  border: 1px solid #cccccc;
  transition: transform 0.3s ease;
  position: relative;
  overflow: hidden;
  animation: listFadeIn 0.5s ease forwards;
}

.qpr-question-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* Correct/Incorrect Question Styling */
.qpr-question-item.correct {
  border: 2px solid #4ade80; /* Green border */
  background: #f0fff4; /* Light green background */
}

.qpr-question-item.incorrect {
  border: 2px solid #f87171; /* Red border */
  background: #fff0f0; /* Light red background */
}

.qpr-question-item.correct::before,
.qpr-question-item.incorrect::before {
  display: none; /* Remove decorative elements */
}

/* Question Header */
.qpr-question-header {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
  background: #f5f5f5;
  padding: 12px 15px;
  border-radius: 10px;
  border: 1px solid #e0e0e0;
  position: relative;
  overflow: hidden;
}

/* Remove decorative animations */
.qpr-question-header::before,
.qpr-question-header::after {
  display: none;
}

.qpr-question-number {
  background: #eeeeee;
  padding: 8px 12px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 16px;
  color: #333333;
  margin-right: 15px;
  border: 1px solid #dddddd;
  transition: transform 0.2s ease;
}

.qpr-question-status {
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  margin-left: auto;
  transition: transform 0.2s ease;
}

.qpr-question-status.correct {
  background: #f0fff4;
  color: #16a34a;
  border: 1px solid #4ade80;
}

.qpr-question-status.incorrect {
  background: #fff0f0;
  color: #dc2626;
  border: 1px solid #f87171;
}

/* Question Content */
.qpr-question-content {
  margin-bottom: 20px;
}

.qpr-question-text {
  font-size: 18px;
  color: #333333;
  margin: 0 0 15px 0;
  line-height: 1.5;
  padding: 15px;
  background: #f9f9f9;
  border-radius: 10px;
  border: 1px solid #e0e0e0;
  position: relative;
}

/* Remove decorative elements */
.qpr-question-text::before {
  display: none;
}

/* Answers */
.qpr-answers {
  margin-bottom: 15px;
}

.qpr-answer-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #f5f5f5;
  padding: 15px;
  border-radius: 10px;
  border: 1px solid #e0e0e0;
}

.qpr-option {
  display: flex;
  align-items: center;
  padding: 12px 15px;
  border-radius: 8px;
  background: #ffffff;
  border: 1px solid #cccccc;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.qpr-option:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Answer option highlighting */
.qpr-option.correct-answer {
  background-color: #f0fff4;
  border: 2px solid #4ade80;
  color: #4ade80; /* Changed to green */
}

.qpr-option.user-answer {
  background-color: #fff0f0;
  border: 2px solid #f87171;
  color: #dc2626;
}

/* Add checkmark for correct answer */
.qpr-option.correct-answer::after {
  content: "";
  position: absolute;
  right: 15px;
  font-size: 18px;
  color: #4ade80; /* Changed to green */
  font-weight: bold;
}

/* Add user icon for user's answer */
.qpr-option.user-answer::after {
  content: "";
  position: absolute;
  right: 15px;
  font-size: 18px;
  color: #dc2626;
  font-weight: bold;
}

/* If user selected the correct answer */
.qpr-option.correct-answer.user-answer {
  background-color: #f0fff4;
  border: 2px solid #4ade80;
  color: #4ade80; /* Changed to green */
}

.qpr-option.correct-answer.user-answer::after {
  content: "";
  color: #4ade80; /* Changed to green */
}

.qpr-option::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.05) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.qpr-option:hover::before {
  opacity: 1;
}

/* Correct answer styling */
.qpr-option.correct-answer,
.qpr-option-item.correct-option {
  color: #16a34a;
  background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
  border: 2px solid #86efac;
  box-shadow: 0 4px 15px rgba(22, 163, 74, 0.2);
}

.qpr-option.correct-answer::after,
.qpr-option-item.correct-option .qpr-correct-mark {
  content: '';
  position: absolute;
  right: 15px;
  color: #4ade80;
  font-size: 18px;
  font-weight: bold;
  text-shadow: 0 0 5px rgba(74, 222, 128, 0.5);
  animation: checkmarkPulse 2s infinite;
}

/* User answer styling (when incorrect) */
.qpr-option.user-answer:not(.correct-answer),
.qpr-option-item.wrong-option {
  color: #dc2626;
  background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
  border: 2px solid #fca5a5;
  box-shadow: 0 4px 15px rgba(220, 38, 38, 0.2);
}

.qpr-option.user-answer:not(.correct-answer)::after,
.qpr-option-item.wrong-option .qpr-wrong-mark {
  content: '';
  position: absolute;
  right: 15px;
  color: #f87171;
  font-size: 18px;
  font-weight: bold;
  text-shadow: 0 0 5px rgba(248, 113, 113, 0.5);
}

/* When user selected the correct answer */
.qpr-option-item.correct-user-option {
  background: rgba(74, 222, 128, 0.2);
  box-shadow: 0 0 15px rgba(74, 222, 128, 0.4);
}

.qpr-option-label {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  font-weight: 600;
  margin-right: 15px;
  flex-shrink: 0;
  transition: transform 0.2s ease, background 0.2s ease;
}

.qpr-option:hover .qpr-option-label {
  transform: scale(1.1);
  background: rgba(255, 255, 255, 0.2);
}

.qpr-option-text {
  color: white;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.4;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.qpr-answer-summary {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 15px;
  margin-top: 15px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  animation: fadeInScale 0.5s ease forwards;
}

.qpr-user-answer,
.qpr-correct-answer {
  margin: 5px 0;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.9);
}

.qpr-user-answer span,
.qpr-correct-answer span {
  font-weight: 600;
}

.qpr-user-answer span {
  color: #f87171;
}

.qpr-correct-answer span {
  color: #4ade80;
}

/* Completion Info */
.qpr-completion-info {
  text-align: center;
  margin: 30px 0;
  padding: 20px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 15px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.1);
  animation: fadeInScale 0.5s ease forwards;
}

.qpr-completion-text {
  font-size: 18px;
  color: white;
  margin: 0 0 15px 0;
}

.qpr-action-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 20px;
}

.qpr-try-again-btn,
.qpr-back-to-quizzes-btn {
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: none;
  outline: none;
}

.qpr-try-again-btn {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: white;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.qpr-back-to-quizzes-btn {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.2);
  -webkit-backdrop-filter: blur(5px);
          backdrop-filter: blur(5px);
}

.qpr-try-again-btn:hover,
.qpr-back-to-quizzes-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

        .qpr-container {
          padding: 2rem;
          max-width: 1400px;
          margin: 0 auto;
        }

        .qpr-content {
          background: white;
          border-radius: 16px;
          padding: 3rem;
          box-shadow: 0 1px 3px rgba(0,0,0,0.05);
        }

        .qpr-header-section {
          text-align: center;
          margin-bottom: 3rem;
          padding-bottom: 2rem;
          border-bottom: 1px solid #e5e7eb;
        }

        .qpr-title {
          font-size: 2.5rem;
          font-weight: 700;
          color: #1f2937;
          margin: 0 0 0.5rem 0;
        }

        .qpr-topic {
          font-size: 1.125rem;
          color: #6b7280;
          margin: 0;
        }

        .qpr-stats-grid {
          display: grid;
          grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
          grid-gap: 2rem;
          gap: 2rem;
          margin-bottom: 3rem;
        }

        .qpr-stat-card {
          background: #ffffff;
          border-radius: 12px;
          padding: 2rem;
          text-align: center;
          border: 2px solid #e5e7eb;
        }

        .qpr-score-card {
          background: white;
          border: 2px solid #e5e7eb;
        }

        .qpr-circular-progress {
          position: relative;
          display: inline-block;
          margin-bottom: 1rem;
        }

        .qpr-progress-circle {
          transition: stroke-dashoffset 1s ease-in-out;
        }

        .qpr-percentage-text {
          position: absolute;
          top: 50%;
          left: 50%;
          transform: translate(-50%, -50%);
          font-size: 2rem;
          font-weight: 700;
        }

        .qpr-stat-icon {
          margin-bottom: 1.2rem;
          display: flex;
          justify-content: center;
        }

        .qpr-stat-value {
          font-size: 2.5rem;
          font-weight: 700;
          margin-bottom: 0.5rem;
        }

        .qpr-stat-total {
          font-size: 1.5rem;
          color: #9ca3af;
          font-weight: 500;
        }

        .qpr-stat-label {
          font-size: 0.875rem;
          color: #6b7280;
          font-weight: 500;
          text-transform: uppercase;
          letter-spacing: 0.05em;
        }

        .qpr-progress-section {
          margin-bottom: 3rem;
          padding: 2rem;
          background: #f9fafb;
          border-radius: 12px;
          border: 1px solid #e5e7eb;
        }

        .qpr-section-title {
          font-size: 1.5rem;
          font-weight: 600;
          color: #1f2937;
          margin: 0 0 1.5rem 0;
        }

        .qpr-progress-grid {
          display: flex;
          align-items: center;
          justify-content: space-around;
          gap: 2rem;
          flex-wrap: wrap;
        }

        .qpr-progress-item {
          text-align: center;
        }

        .qpr-best-score {
          padding: 1.5rem;
          background: white;
          border-radius: 8px;
          border: 2px solid #10b981;
        }

        .qpr-progress-label {
          font-size: 0.75rem;
          color: #6b7280;
          font-weight: 600;
          text-transform: uppercase;
          letter-spacing: 0.05em;
          margin-bottom: 0.5rem;
        }

        .qpr-progress-value {
          font-size: 1.875rem;
          font-weight: 700;
          color: #1f2937;
        }

        .qpr-comparison-container {
          display: flex;
          align-items: center;
          gap: 1.5rem;
        }

        .qpr-arrow-icon {
          font-size: 2rem;
          color: #9ca3af;
          font-weight: 300;
        }

        .qpr-improvement-badge {
          padding: 0.75rem 1.5rem;
          border-radius: 8px;
          font-weight: 600;
          font-size: 1.125rem;
        }

        .qpr-improvement-badge.positive {
          background: #d1fae5;
          color: #065f46;
        }

        .qpr-improvement-badge.negative {
          background: #fee2e2;
          color: #991b1b;
        }

        .qpr-questions-section {
          margin-bottom: 3rem;
        }

        .qpr-questions-scroll {
          max-height: 600px;
          overflow-y: auto;
          padding-right: 1rem;
        }

        .qpr-questions-scroll::-webkit-scrollbar {
          width: 8px;
        }

        .qpr-questions-scroll::-webkit-scrollbar-track {
          background: #f1f5f9;
          border-radius: 4px;
        }

        .qpr-questions-scroll::-webkit-scrollbar-thumb {
          background: #cbd5e1;
          border-radius: 4px;
        }

        .qpr-questions-scroll::-webkit-scrollbar-thumb:hover {
          background: #94a3b8;
        }

        .qpr-question-card {
          background: white;
          border: 1px solid #e5e7eb;
          border-radius: 12px;
          padding: 1.5rem;
          margin-bottom: 1.5rem;
          transition: box-shadow 0.2s;
        }

        .qpr-question-card:hover {
          box-shadow: 0 4px 6px rgba(0,0,0,0.05);
        }

        .qpr-question-header-new {
          display: flex;
          justify-content: space-between;
          align-items: center;
          margin-bottom: 1rem;
          padding-bottom: 1rem;
          border-bottom: 1px solid #f3f4f6;
        }

        .qpr-question-number-badge {
          background: #f3f4f6;
          color: #374151;
          padding: 0.5rem 1rem;
          border-radius: 6px;
          font-weight: 600;
          font-size: 0.875rem;
        }

        .qpr-status-badge {
          padding: 0.5rem 1rem;
          border-radius: 6px;
          font-weight: 600;
          font-size: 0.875rem;
        }

        .qpr-status-badge.correct {
          background: #d1fae5;
          color: #065f46;
        }

        .qpr-status-badge.incorrect {
          background: #fee2e2;
          color: #991b1b;
        }

        .qpr-question-body {
          padding: 0.5rem 0;
        }

        .qpr-question-text-new {
          font-size: 1.125rem;
          font-weight: 500;
          color: #1f2937;
          margin: 0 0 1.5rem 0;
          line-height: 1.6;
        }

        .qpr-answers-container {
          margin-top: 1rem;
        }

        .qpr-options-list {
          display: flex;
          flex-direction: column;
          gap: 0.75rem;
        }

        .qpr-option-item {
          display: flex;
          align-items: center;
          gap: 1rem;
          padding: 1rem;
          background: #f9fafb;
          border: 2px solid #e5e7eb;
          border-radius: 8px;
          transition: all 0.2s;
        }

        .qpr-option-item.correct-option {
          color: #16a34a !important;
          background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%) !important;
          border: 2px solid #86efac !important;
          box-shadow: 0 4px 15px rgba(22, 163, 74, 0.2) !important;
          position: relative;
          transition: all 0.3s ease;
        }
        
        .qpr-option-item.correct-option .qpr-option-content {
          color: #16a34a !important;
          font-weight: 600 !important;
        }
        
        .qpr-option-item.correct-option::after {
          content: "Correct Answer";
          position: absolute;
          right: 15px;
          color: white !important;
          font-weight: bold;
          background-color: rgba(4, 120, 87, 0.7);
          padding: 2px 8px;
          border-radius: 4px;
        }

        .qpr-option-item.wrong-option {
          color: #dc2626 !important;
          background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%) !important;
          border: 2px solid #fca5a5 !important;
          box-shadow: 0 4px 15px rgba(220, 38, 38, 0.2) !important;
          position: relative;
          transition: all 0.3s ease;
        }
        
        .qpr-option-item.wrong-option .qpr-option-content {
          color: #dc2626 !important;
          font-weight: 600 !important;
        }
        
.qpr-option-item.wrong-option::before {
  content: "Incorrect Answer";
  position: absolute;
  right: 15px;
  color: rgb(87, 87, 87) !important;
  font-weight: bold;
  background-color: rgba(185, 28, 28, 0.7);
  padding: 2px 8px;
  border-radius: 4px;
}

        .qpr-option-item.correct-user-option {
          background: #d1fae5;
          border-color: #059669;
          box-shadow: 0 0 12px rgba(5, 150, 105, 0.4);
        }
        
        /* User's choice indicator */
.qpr-option-item.wrong-option::before,
.qpr-option-item.correct-user-option::before {
  content: "Your Answer";
  position: absolute;
  right: 15px;
  font-weight: bold;
  color: #4b5563;
  background: rgba(255, 255, 255, 0.7);
  padding: 3px 8px;
  border-radius: 4px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

        .qpr-option-letter {
          display: flex;
          align-items: center;
          justify-content: center;
          width: 32px;
          height: 32px;
          background: white;
          border: 2px solid #d1d5db;
          border-radius: 50%;
          font-weight: 600;
          color: #374151;
          flex-shrink: 0;
        }

        .qpr-option-item.correct-option .qpr-option-letter {
          background: #10b981;
          border-color: #86efac;
          color: white;
        }

        .qpr-option-item.wrong-option .qpr-option-letter {
          background: #ef4444;
          border-color: #fca5a5;
          color: white;
        }

        .qpr-option-item.correct-user-option .qpr-option-letter {
          background: #059669;
          border-color: #059669;
          color: white;
        }

        .qpr-option-content {
          flex: 1 1;
          color: #374151;
          font-weight: 500;
        }

        .qpr-correct-mark {
          color: #10b981;
          font-size: 1.25rem;
          font-weight: 700;
        }

        .qpr-wrong-mark {
          color: #ef4444;
          font-size: 1.25rem;
          font-weight: 700;
        }

        .qpr-answer-box {
          background: #f9fafb;
          border: 1px solid #e5e7eb;
          border-radius: 8px;
          padding: 1rem;
          margin-bottom: 1rem;
        }

        .qpr-answer-box.correct-answer-box {
          background: #ecfdf5;
          border-color: #10b981;
        }

        .qpr-answer-label {
          font-size: 0.875rem;
          font-weight: 600;
          color: #6b7280;
          text-transform: uppercase;
          letter-spacing: 0.05em;
          margin-bottom: 0.5rem;
        }

        .qpr-answer-text {
          font-size: 1rem;
          font-weight: 500;
          padding: 0.5rem;
        }

        .qpr-answer-text.correct-text {
          color: #065f46;
        }

        .qpr-answer-text.incorrect-text {
          color: #991b1b;
        }

        .qpr-answer-list {
          list-style: none;
          padding: 0;
          margin: 0.5rem 0 0 0;
        }

        .qpr-answer-list li {
          padding: 0.5rem;
          margin-bottom: 0.5rem;
          border-radius: 4px;
          font-weight: 500;
        }

        .qpr-answer-list li.correct-text {
          background: #d1fae5;
          color: #065f46;
        }

        .qpr-answer-list li.incorrect-text {
          background: #fee2e2;
          color: #991b1b;
        }

        .qpr-completion-message {
          text-align: center;
          padding: 2rem;
          background: #f9fafb;
          border-radius: 12px;
          margin-bottom: 2rem;
          border: 1px solid #e5e7eb;
        }

        .qpr-message-primary {
          font-size: 1.25rem;
          font-weight: 600;
          color: #1f2937;
          margin: 0 0 0.5rem 0;
        }

        .qpr-message-secondary {
          font-size: 1rem;
          color: #6b7280;
          margin: 0;
        }

        .qpr-action-buttons {
          display: flex;
          gap: 1rem;
          justify-content: center;
          flex-wrap: wrap;
        }

        .qpr-btn {
          padding: 1rem 2.5rem;
          border: none;
          border-radius: 8px;
          font-size: 1rem;
          font-weight: 600;
          cursor: pointer;
          transition: all 0.2s;
          text-transform: uppercase;
          letter-spacing: 0.05em;
        }

        .qpr-btn-primary {
          color: white;
          background: var(--btn-primary-bg);
          box-shadow: 0 2px 4px rgba(0,0,0,0.1);
        }

        .qpr-btn-primary:hover {
          transform: translateY(-2px);
          box-shadow: 0 4px 8px rgba(0,0,0,0.15);
          background: linear-gradient(135deg, var(--accent-primary-dark) 0%, #00adb5 100%);
        }

        .qpr-btn-secondary {
          background: white;
          color: #374151;
          border: 2px solid #e5e7eb;
        }

        .qpr-btn-secondary:hover {
          background: #f9fafb;
          border-color: #d1d5db;
        }

        @media (max-width: 768px) {
          .qpr-content {
            padding: 1.5rem;
          }

          .qpr-title {
            font-size: 1.875rem;
          }

          .qpr-stats-grid {
            grid-template-columns: 1fr;
          }

          .qpr-comparison-container {
            flex-direction: column;
            gap: 1rem;
          }

          .qpr-arrow-icon {
            transform: rotate(90deg);
          }

          .qpr-action-buttons {
            flex-direction: column;
          }

          .qpr-btn {
            width: 100%;
          }
        }

/* Animations */
@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

@keyframes pulse {
  0% {
    transform: translateY(-50%) scale(1);
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.3);
  }
  70% {
    transform: translateY(-50%) scale(1.05);
    box-shadow: 0 0 0 10px rgba(255, 255, 255, 0);
  }
  100% {
    transform: translateY(-50%) scale(1);
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
  }
}

@keyframes checkmarkPulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.2);
    opacity: 0.8;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes expandWidth {
  0% {
    left: -100%;
  }
  50% {
    left: 0;
  }
  100% {
    left: 100%;
  }
}

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

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

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}
.gpr-container {
  min-height: 100vh;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  padding: 20px;
}

.gpr-content {
  max-width: 1200px;
  margin: 0 auto;
  background: white;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.gpr-leaderboard-section {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
}

.gpr-leaderboard-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-gap: 16px;
  gap: 16px;
  margin-top: 16px;
}

.gpr-leaderboard-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 16px;
}

.gpr-leaderboard-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 12px;
  border: 2px solid transparent;
  transition: all 0.3s ease;
}

.gpr-leaderboard-item.winner {
  border-color: #00E0E9;
  background: linear-gradient(135deg, rgba(0, 224, 233, 0.1), rgba(55, 218, 224, 0.1));
}

.gpr-leaderboard-item.loser {
  border-color: #ff6b6b;
  background: linear-gradient(135deg, rgba(255, 107, 107, 0.1), rgba(255, 107, 107, 0.05));
}

.gpr-leaderboard-item.current-player {
  border-color: #00E0E9;
  background: linear-gradient(135deg, rgba(0, 224, 233, 0.15), rgba(55, 218, 224, 0.15));
  box-shadow: 0 4px 16px rgba(0, 224, 233, 0.2);
}

.gpr-leaderboard-rank {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 60px;
}

.gpr-leaderboard-rank svg {
  font-size: 24px;
  color: #00E0E9;
}

.gpr-leaderboard-rank span {
  font-size: 14px;
  font-weight: 600;
  color: #333;
}

.gpr-leaderboard-player {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1 1;
}

.gpr-player-avatar-container {
  position: relative;
  width: 50px;
  height: 50px;
}

.gpr-player-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #00E0E9;
}

.gpr-player-border-overlay {
  position: absolute;
  top: -4px;
  left: -4px;
  width: calc(100% + 8px);
  height: calc(100% + 8px);
  border-radius: 50%;
  z-index: 1;
}

.gpr-player-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.gpr-player-name {
  font-size: 16px;
  font-weight: 600;
  color: #333;
}

.gpr-player-title {
  font-size: 12px;
  color: #666;
  font-style: italic;
}

.gpr-leaderboard-stats {
  display: flex;
  gap: 16px;
}

.gpr-stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.gpr-stat-value {
  font-size: 16px;
  font-weight: 700;
  color: #00E0E9;
}

.gpr-stat-label {
  font-size: 12px;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

@media (max-width: 768px) {
  .gpr-leaderboard-grid {
    grid-template-columns: 1fr;
  }
  
  .gpr-leaderboard-item {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }
  
  .gpr-leaderboard-player {
    flex-direction: column;
    gap: 8px;
  }
  
  .gpr-leaderboard-stats {
    justify-content: center;
  }
}

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

.gpr-header-section {
  background: linear-gradient(135deg, #00E0E9 0%, #37dae0 100%);
  color: white;
  padding: 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.gpr-header-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 100 100\"%3E%3Cdefs%3E%3Cpattern id=\"grid\" width=\"10\" height=\"10\" patternUnits=\"userSpaceOnUse\"%3E%3Cpath d=\"M 10 0 L 0 0 0 10\" fill=\"none\" stroke=\"rgba%28255,255,255,0.1%29\" stroke-width=\"0.5\"%3E%3C%2Fpath%3E%3C%2Fpattern%3E%3C%2Fdefs%3E%3Crect width=\"100\" height=\"100\" fill=\"url%28%23grid%29\"%3E%3C%2Frect%3E%3C%2Fsvg%3E");
  opacity: 0.3;
}

.gpr-header-text {
  position: relative;
  z-index: 1;
}

.gpr-mode-badge {
  display: inline-flex;
  align-items: center;
  padding: 12px 24px;
  border-radius: 25px;
  background: rgba(255, 255, 255, 0.2);
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  color: white;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 16px;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.gpr-mode-text {
  font-weight: 600;
}

.gpr-title {
  font-size: 2.5rem;
  font-weight: 800;
  margin: 16px 0 8px 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.gpr-subtitle {
  font-size: 1.2rem;
  font-weight: 500;
  opacity: 0.9;
  margin: 0;
}

/* Stats Grid */
.gpr-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  grid-gap: 24px;
  gap: 24px;
  padding: 40px;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

.gpr-stat-card {
  background: white;
  border-radius: 20px;
  padding: 28px 24px;
  text-align: center;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(226, 232, 240, 0.8);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
}

.gpr-stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, #00E0E9, #37dae0, #42f8ff, #00E0E9);
  background-size: 200% 100%;
  animation: gradientShift 3s ease-in-out infinite;
}

.gpr-stat-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(0, 224, 233, 0.02), rgba(55, 218, 224, 0.02));
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.gpr-stat-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.15);
}

.gpr-stat-card:hover::after {
  opacity: 1;
}

.gpr-score-card {
  background: linear-gradient(135deg, rgba(0, 224, 233, 0.05), rgba(255, 255, 255, 0.95));
  border: 2px solid rgba(0, 224, 233, 0.2);
}

.gpr-score-card::before {
  height: 6px;
  background: linear-gradient(90deg, #00E0E9, #37dae0, #42f8ff);
}

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

.gpr-circular-progress {
  position: relative;
  width: 120px;
  height: 120px;
  margin: 0 auto 20px;
}

.gpr-progress-circle {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.gpr-progress-circle-bg {
  fill: none;
  stroke: rgba(226, 232, 240, 0.6);
  stroke-width: 8;
}

.gpr-progress-circle-fill {
  fill: none;
  stroke-width: 8;
  stroke-linecap: round;
  transition: stroke-dashoffset 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.gpr-percentage-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 1.6rem;
  font-weight: 800;
  color: #1e293b;
}

.gpr-stat-icon {
  margin-bottom: 16px;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(0, 224, 233, 0.1), rgba(55, 218, 224, 0.05));
  transition: all 0.3s ease;
}

.gpr-stat-icon svg {
  transition: transform 0.3s ease;
}

.gpr-stat-card:hover .gpr-stat-icon {
  transform: scale(1.1);
  background: linear-gradient(135deg, rgba(0, 224, 233, 0.15), rgba(55, 218, 224, 0.1));
}

.gpr-stat-card:hover .gpr-stat-icon svg {
  transform: scale(1.1);
}

.gpr-stat-value {
  font-size: 2.2rem;
  font-weight: 900;
  color: #1e293b;
  margin-bottom: 12px;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 6px;
  transition: all 0.3s ease;
}

.gpr-stat-card:hover .gpr-stat-value {
  transform: scale(1.05);
}

.gpr-stat-total {
  font-size: 1.1rem;
  color: #64748b;
  font-weight: 600;
  opacity: 0.8;
}

.gpr-stat-unit {
  font-size: 0.9rem;
  color: #64748b;
  font-weight: 600;
  opacity: 0.8;
}

.gpr-stat-label {
  font-size: 13px;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  margin-bottom: 0;
  position: relative;
}

.gpr-stat-label::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 2px;
  background: linear-gradient(90deg, #00E0E9, #37dae0);
  border-radius: 1px;
  opacity: 0;
  transition: all 0.3s ease;
}

.gpr-stat-card:hover .gpr-stat-label::after {
  opacity: 1;
  width: 40px;
}

/* Section Titles */
.gpr-section-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.gpr-section-title svg {
  color: #00E0E9;
}

/* Analytics Section */
.gpr-analytics-section {
  margin: 0;
  padding: 40px;
  background: #ffffff;
  border-top: 1px solid #e2e8f0;
  width: 100%;
  box-sizing: border-box;
}

.gpr-charts-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-gap: 30px;
  gap: 30px;
  margin-top: 25px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.gpr-chart-wrapper {
  background: #f8fafc;
  border-radius: 16px;
  padding: 25px;
  border: 1px solid #e2e8f0;
  transition: all 0.3s ease;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.gpr-chart-wrapper:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.gpr-chart-title {
  font-size: 18px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 20px;
  text-align: center;
}

.gpr-chart {
  height: 280px;
  position: relative;
  width: 100%;
  max-width: 100%;
}

/* Question Review Toggle */
.gpr-review-toggle-section {
  padding: 20px 40px;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  text-align: center;
}

.gpr-review-toggle-btn {
  background: #00E0E9;
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.gpr-review-toggle-btn:hover {
  background: #00c7cf;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 224, 233, 0.3);
}

.gpr-review-toggle-btn.active {
  background: #ef4444;
}

.gpr-review-toggle-btn.active:hover {
  background: #dc2626;
}

/* Questions Section */
.gpr-questions-section {
  padding: 40px;
  background: white;
  border-top: 1px solid #e2e8f0;
}

.gpr-questions-scroll {
  max-height: 600px;
  overflow-y: auto;
  padding-right: 8px;
}

.gpr-questions-scroll::-webkit-scrollbar {
  width: 6px;
}

.gpr-questions-scroll::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 3px;
}

.gpr-questions-scroll::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 3px;
}

.gpr-questions-scroll::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

.gpr-question-card {
  background: #f8fafc;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 16px;
  border: 1px solid #e2e8f0;
  transition: all 0.3s ease;
}

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

.gpr-question-header-new {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.gpr-question-number-badge {
  background: #3b82f6;
  color: white;
  padding: 6px 12px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.85rem;
}

.gpr-status-badge {
  padding: 4px 12px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.gpr-status-badge.correct {
  background: #dcfce7;
  color: #166534;
}

.gpr-status-badge.incorrect {
  background: #fef2f2;
  color: #991b1b;
}

.gpr-question-text-new {
  font-size: 1.1rem;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 16px;
  line-height: 1.5;
}

.gpr-answers-container {
  margin-top: 16px;
}

.gpr-options-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.gpr-option-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 8px;
  background: white;
  border: 2px solid #e2e8f0;
  transition: all 0.3s ease;
  position: relative;
}

.gpr-option-item.correct-option {
  border-color: #10b981;
  background: #ecfdf5;
}

.gpr-option-item.wrong-option {
  border-color: #ef4444;
  background: #fef2f2;
}

.gpr-option-item.correct-user-option {
  border-color: #10b981;
  background: #dcfce7;
}

.gpr-option-letter {
  background: #f1f5f9;
  color: #475569;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.gpr-option-item.correct-option .gpr-option-letter,
.gpr-option-item.correct-user-option .gpr-option-letter {
  background: #10b981;
  color: white;
}

.gpr-option-item.wrong-option .gpr-option-letter {
  background: #ef4444;
  color: white;
}

.gpr-option-content {
  flex: 1 1;
  font-weight: 500;
  color: #374151;
}

.gpr-correct-mark {
  color: #10b981;
  font-weight: 700;
  font-size: 1.2rem;
}

.gpr-wrong-mark {
  color: #ef4444;
  font-weight: 700;
  font-size: 1.2rem;
}

.gpr-answer-box {
  background: white;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 12px;
  border: 1px solid #e2e8f0;
}

.gpr-answer-box.correct-answer-box {
  border-color: #10b981;
  background: #ecfdf5;
}

.gpr-answer-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #64748b;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.gpr-answer-text {
  font-size: 1rem;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 6px;
  background: #f8fafc;
}

.gpr-answer-text.correct-text {
  background: #dcfce7;
  color: #166534;
}

.gpr-answer-text.incorrect-text {
  background: #fef2f2;
  color: #991b1b;
}

/* Action Buttons */
.gpr-action-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  padding: 40px;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
}

.gpr-btn {
  padding: 12px 32px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 140px;
}

.gpr-btn-secondary {
  background: white;
  color: #64748b;
  border: 2px solid #e2e8f0;
}

.gpr-btn-secondary:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.gpr-btn-primary {
  background: linear-gradient(135deg, #00E0E9 0%, #37dae0 100%);
  color: white;
}

.gpr-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 224, 233, 0.3);
  filter: brightness(1.1);
}

/* Loading Container */
.loading-container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 200px;
  font-size: 1.2rem;
  color: #64748b;
}

/* Responsive Design */
@media (max-width: 768px) {
  .gpr-container {
    padding: 10px;
  }

  .gpr-content {
    border-radius: 12px;
  }

  .gpr-header-section {
    padding: 30px 20px;
  }

  .gpr-title {
    font-size: 2rem;
  }

  .gpr-subtitle {
    font-size: 1rem;
  }

  .gpr-stats-grid {
    grid-template-columns: 1fr;
    padding: 20px;
    gap: 20px;
  }

  .gpr-score-card {
    grid-column: span 1;
  }

  .gpr-stat-card {
    padding: 24px 20px;
  }

  .gpr-stat-value {
    font-size: 2rem;
  }

  .gpr-circular-progress {
    width: 100px;
    height: 100px;
    margin: 0 auto 16px;
  }

  .gpr-percentage-text {
    font-size: 1.4rem;
  }

  .gpr-stat-icon {
    width: 56px;
    height: 56px;
    margin-bottom: 12px;
  }

  .gpr-analytics-section {
    padding: 20px;
    width: 100%;
    box-sizing: border-box;
  }

  .gpr-charts-container {
    grid-template-columns: 1fr;
    gap: 20px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .gpr-chart-wrapper {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 20px;
  }

  .gpr-chart {
    height: 250px;
    width: 100%;
    max-width: 100%;
  }

  .gpr-section-title {
    font-size: 1.5rem;
  }

  .gpr-leaderboard-section {
    padding: 20px;
  }

  .gpr-leaderboard-grid {
    grid-template-columns: 1fr;
  }

  .gpr-questions-section {
    padding: 20px;
  }

  .gpr-action-buttons {
    flex-direction: column;
    padding: 20px;
  }

  .gpr-btn {
    width: 100%;
  }

  .gpr-question-header-new {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

@media (max-width: 480px) {
  .gpr-analytics-grid {
    grid-template-columns: 1fr;
  }
  
  .gpr-option-item {
    padding: 8px 12px;
  }
  
  .gpr-question-card {
    padding: 16px;
  }
}
/* Solo Quick Thinking Styles - Based on VersusAnswerDuel.css Design */

/* Container */
.sqt-container {
  min-height: calc(100vh - 60px);
  background: linear-gradient(135deg, #d6fbff 0%, #76e7eb 50%, #f6feff 100%);
  padding-bottom: 100px;
  width: 100%;
  position: relative;
  transition: all 0.3s ease;
}

.sqt-container.sidebar-open {
  margin-left: 250px;
  width: calc(100% - 250px);
}

.sqt-container.sidebar-collapsed {
  margin-left: 80px;
  width: calc(100% - 80px);
}

.sqt-header {
  position: sticky;
  top: 10px;
  background: rgba(255, 255, 255, 0.98);
  -webkit-backdrop-filter: blur(15px);
          backdrop-filter: blur(15px);
  padding: 25px 40px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  z-index: 100;
  border-bottom: 3px solid #00E0E9;
}

.sqt-header-content {
  max-width: 1900px;
  margin: 0 auto;
}

.sqt-title {
  position: sticky;
  font-size: 28px;
  font-weight: 700;
  color: #333;
  margin: 70px 0 20px 0;
  text-align: center;
}

.sqt-header-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
}

.sqt-exit-btn,
.sqt-music-btn {
  padding: 12px 30px;
  border-radius: 25px;
  border: none;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 140px;
  text-align: center;
}

.sqt-exit-btn {
  background: #ff4757;
  color: white;
  box-shadow: 0 4px 15px rgba(255, 71, 87, 0.3);
}

.sqt-exit-btn:hover {
  background: #e84049;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 71, 87, 0.4);
}

.sqt-music-btn {
  background: #00E0E9;
  color: white;
  box-shadow: 0 4px 15px rgba(0, 224, 233, 0.3);
  position: relative;
  overflow: hidden;
}

.sqt-music-btn:hover {
  background: #00c7cf;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 224, 233, 0.4);
}

.sqt-music-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(0, 224, 233, 0.3);
}

/* Sliding animation for music button text */
.sqt-music-btn::before {
  content: attr(data-text);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: transform 0.3s ease;
  white-space: nowrap;
}

.sqt-music-btn[data-state="on"]::before {
  transform: translate(-50%, -50%) translateX(0);
}

.sqt-music-btn[data-state="off"]::before {
  transform: translate(-50%, -50%) translateX(0);
}

.sqt-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 40px 20px;
}

/* Timer Container */
.sqt-timer-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 20px 0 0 0;
  padding: 25px 40px;
  background: transparent;
  border-radius: 20px;
  box-shadow: none;
  max-width: 1000px;
  margin: 0 auto;
}

.sqt-timer-controls {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.sqt-time-penalties {
  display: none; /* Hide penalties to match versus mode */
}

.sqt-score-container {
  display: none; /* Hide score to match versus mode */
}

.sqt-penalty-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
}

.sqt-penalty-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: bold;
}

.sqt-penalty-icon.sqt-incorrect {
  background-color: #ff6b6b;
  color: white;
}

.sqt-penalty-icon.sqt-correct {
  background-color: #51cf66;
  color: white;
}

.sqt-penalty-text {
  color: #5E5E5E;
  font-size: large;
  font-weight: 1000;
}

.sqt-timer-bar-container {
  width: 100%;
  max-width: 760px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.sqt-timer-bar {
  width: 400px;
  height: 30px;
  background: linear-gradient(135deg, #e0e0e0 0%, #d0d0d0 100%);
  border-radius: 15px;
  overflow: hidden;
  position: relative;
  border: 2px solid rgba(255, 255, 255, 0.8);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.15), 0 2px 8px rgba(0, 0, 0, 0.1);
  margin: 0 auto;
}

.sqt-timer-progress {
  height: 100%;
  background: linear-gradient(90deg, #FFB800 0%, #FFA000 100%);
  border-radius: 12px;
  transition: width 0.3s ease;
  position: relative;
  box-shadow: inset 0 1px 3px rgba(255, 255, 255, 0.3);
}

.sqt-timer-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 14px;
  font-weight: 600;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
  z-index: 2;
}

.sqt-score-container {
  margin-top: 10px;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

.sqt-score {
  background: linear-gradient(135deg, #00E0E9, #86FAFF);
  color: white;
  padding: 8px 15px;
  border-radius: 20px;
  font-weight: bold;
  font-size: 14px;
  min-width: 80px;
  text-align: center;
}

/* Question Container */
.sqt-question-container {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  width: 100%;
  box-sizing: border-box;
}

/* Question Card */
.sqt-question-card {
  background: rgba(255, 255, 255, 0.95);
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 30px;
  margin: 30px auto;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  border: 2px solid rgba(0, 224, 233, 0.3);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  max-width: 900px;
}

.sqt-question-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #00E0E9, #00c7cf, #FF6B6B);
  border-radius: 20px 20px 0 0;
}

.sqt-question-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.2);
}

.sqt-question-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.sqt-question-number {
  background: linear-gradient(135deg, #00E0E9, #00c7cf);
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(0, 224, 233, 0.3);
}

.sqt-question-text {
  font-size: 22px;
  font-weight: 600;
  color: #333;
  margin: 0 0 25px 0;
  text-align: center;
}

/* Multiple answers indicator */
.sqt-multiple-answers-indicator {
  background: linear-gradient(135deg, #ff6b6b, #ff8e8e);
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  margin: 0 auto 20px auto;
  max-width: 300px;
  box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
  animation: pulse 2s infinite;
}

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

/* Submit button */
.sqt-submit-container {
  display: flex;
  justify-content: center;
  margin: 20px 0;
}

.sqt-submit-button {
  background: linear-gradient(135deg, #00E0E9, #00B8C4);
  color: white;
  border: none;
  border-radius: 25px;
  padding: 12px 30px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 224, 233, 0.3);
}

.sqt-submit-button:hover {
  background: linear-gradient(135deg, #00B8C4, #009AA3);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 224, 233, 0.4);
}

.sqt-submit-button:active {
  transform: translateY(0);
}

/* Answer Choices */
.sqt-choices-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-gap: 15px;
  gap: 15px;
  margin-bottom: 25px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.sqt-choice {
  background: rgba(255, 255, 255, 0.9);
  -webkit-backdrop-filter: blur(5px);
          backdrop-filter: blur(5px);
  border-radius: 15px;
  padding: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 20px;
  position: relative;
  overflow: hidden;
}

.sqt-choice::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 224, 233, 0.1), transparent);
  transition: left 0.5s;
}

.sqt-choice:hover::before {
  left: 100%;
}

.sqt-choice:hover {
  background: rgba(0, 224, 233, 0.05);
  transform: translateX(5px);
}

.sqt-choice.selected {
  background: linear-gradient(135deg, #00E0E9 0%, #00c7cf 100%);
  color: white;
}

.sqt-choice.correct {
  background: linear-gradient(135deg, #00ff88 0%, #00e676 100%);
  color: white;
}

.sqt-choice.incorrect {
  background: linear-gradient(135deg, #ff4757 0%, #ff3742 100%);
  color: white;
}

.sqt-choice-label {
  background: white;
  color: #333;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
}

.sqt-choice.selected .sqt-choice-label,
.sqt-choice.correct .sqt-choice-label,
.sqt-choice.incorrect .sqt-choice-label {
  background: rgba(255, 255, 255, 0.3);
  color: white;
}

.sqt-choice-text {
  flex: 1 1;
  font-size: 16px;
}

/* Feedback */
.sqt-feedback {
  text-align: center;
  font-size: 18px;
  font-weight: bold;
  margin-top: 15px;
  padding: 15px 20px;
  border-radius: 12px;
  transition: all 0.3s ease;
}

.sqt-feedback.correct {
  color: #16a34a;
  background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
  border: 2px solid #86efac;
  box-shadow: 0 4px 15px rgba(22, 163, 74, 0.2);
}

.sqt-feedback.incorrect {
  color: #dc2626;
  background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
  border: 2px solid #fca5a5;
  box-shadow: 0 4px 15px rgba(220, 38, 38, 0.2);
}

/* Responsive Design */
@media only screen and (max-width: 428px) and (orientation: portrait) {
  .sqt-timer-container,
  .sqt-question-container {
    padding: 15px;
  }
  
  .sqt-question {
    font-size: 22px;
    margin-bottom: 25px;
  }
  
  .sqt-answers-grid {
    gap: 20px;
  }
  
  .sqt-answer-option {
    min-width: calc(50% - 15px);
    min-height: 160px;
    font-size: 16px;
    padding: 15px;
  }
  
  .sqt-time-penalties {
    gap: 20px;
  }
  
  .sqt-penalty-text {
    font-size: 16px;
  }
}

@media only screen and (max-width: 932px) and (orientation: landscape) {
  .sqt-answers-grid {
    gap: 15px;
  }
  
  .sqt-answer-option {
    min-height: 150px;
    min-width: calc(25% - 15px);
    max-width: calc(25% - 15px);
  }
  
  .sqt-timer-container {
    padding: 15px;
  }
  
  .sqt-question {
    font-size: 22px;
    margin-bottom: 20px;
  }
}

@media only screen and (max-width: 375px) and (orientation: portrait) {
  .sqt-answer-option {
    min-width: calc(50% - 10px);
    min-height: 140px;
    font-size: 15px;
  }
  
  .sqt-question {
    font-size: 20px;
  }
  
  .sqt-penalty-text {
    font-size: 15px;
  }
}

@media only screen and (max-width: 768px) {
  .sqt-timer-bar {
    height: 25px;
  }
  
  .sqt-timer-text {
    font-size: 13px;
  }
  
  .sqt-score {
    padding: 6px 12px;
    font-size: 13px;
  }
  
  .sqt-feedback {
    font-size: 16px;
  }

  .sqt-header {
    padding: 15px 20px;
  }

  .sqt-title {
    font-size: 24px;
  }

  .sqt-question-container {
    padding: 20px;
  }

  .sqt-question {
    font-size: 20px;
  }

  .sqt-exit-btn,
  .sqt-music-btn {
    min-width: 120px;
  }
}
/* Versus Answer Duel Styles - Based on QuizTaking.css Design */

/* Container */
.vad-container {
  min-height: calc(100vh - 60px);
  background: linear-gradient(135deg, #d6fbff 0%, #76e7eb 50%, #f6feff 100%);
  padding-bottom: 100px;
  width: 100%;
  position: relative;
  transition: all 0.3s ease;
}

.vad-container.sidebar-open {
  margin-left: 250px;
  width: calc(100% - 250px);
}

.vad-container.sidebar-collapsed {
  margin-left: 80px;
  width: calc(100% - 80px);
}

.vad-header {
  position: sticky;
  top: 10px;
  background: rgba(255, 255, 255, 0.98);
  -webkit-backdrop-filter: blur(15px);
          backdrop-filter: blur(15px);
  padding: 25px 40px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  z-index: 100;
  border-bottom: 3px solid #00E0E9;
}

.vad-header-content {
  max-width: 1900px;
  margin: 0 auto;
}

.vad-title {
  position: sticky;
  font-size: 28px;
  font-weight: 700;
  color: #333;
  margin: 70px 0 20px 0;
  text-align: center;
}

.vad-header-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
}

.vad-exit-btn,
.vad-music-btn {
  padding: 12px 30px;
  border-radius: 25px;
  border: none;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 140px;
  text-align: center;
}

.vad-exit-btn {
  background: #ff4757;
  color: white;
  box-shadow: 0 4px 15px rgba(255, 71, 87, 0.3);
}

.vad-exit-btn:hover {
  background: #e84049;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 71, 87, 0.4);
}

.vad-music-btn {
  background: #00E0E9;
  color: white;
  box-shadow: 0 4px 15px rgba(0, 224, 233, 0.3);
  position: relative;
  overflow: hidden;
}

.vad-music-btn:hover {
  background: #00c7cf;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 224, 233, 0.4);
}

.vad-music-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(0, 224, 233, 0.3);
}

/* Sliding animation for music button text */
.vad-music-btn::before {
  content: attr(data-text);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: transform 0.3s ease;
  white-space: nowrap;
}

.vad-music-btn[data-state="on"]::before {
  transform: translate(-50%, -50%) translateX(0);
}

.vad-music-btn[data-state="off"]::before {
  transform: translate(-50%, -50%) translateX(0);
}

.vad-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 40px 20px;
}

/* Loading Screen */
.vad-loading-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  text-align: center;
}

.vad-loading-spinner {
  width: 60px;
  height: 60px;
  border: 4px solid #e0e0e0;
  border-top: 4px solid #00E0E9;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 20px;
}

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

/* Coin Flip Screen */
.vad-coin-flip-container {
  background: rgba(255, 255, 255, 0.95);
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  border-radius: 25px;
  padding: 50px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
  text-align: center;
  margin: 20px auto;
  max-width: 700px;
  transition: all 0.3s ease;
  border: 2px solid rgba(0, 224, 233, 0.2);
  perspective: 1000px;
}

.vad-coin-flip-container:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0, 224, 233, 0.2);
  border-color: rgba(0, 224, 233, 0.4);
}

.vad-coin-flip-title {
  font-size: 2.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, #00E0E9 0%, #FFB800 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 60px 0 20px 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.vad-coin-flip-description {
  font-size: 1.2rem;
  color: #666;
  margin-bottom: 40px;
  line-height: 1.6;
}

/* Coin Animation */
.vad-coin-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 40px 0;
  perspective: 1000px;
}

.vad-coin {
  width: 150px;
  height: 150px;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.1s ease;
  margin: 0 auto;
}

.vad-coin.flipping {
  animation: coinFlip 2s ease-out forwards;
}

.vad-coin.heads {
  transform: rotateY(0deg);
}

.vad-coin.tails {
  transform: rotateY(180deg);
}

@keyframes coinFlip {
  0% { 
    transform: rotateY(0deg);
  }
  100% { 
    transform: rotateY(1800deg); 
    transform: rotateY(var(--final-rotation, 1800deg));
  }
}

.vad-coin-side {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  backface-visibility: hidden;
  border: 4px solid #FFB800;
  box-shadow: 0 8px 25px rgba(255, 184, 0, 0.3);
}

.vad-coin-heads {
  background: url(/static/media/coin-heads.5efdd2ed2ffa0c416d67.svg) center/cover;
  transform: rotateY(0deg);
}

.vad-coin-tails {
  background: url(/static/media/coin-tails.72cd5249816f427a887b.svg) center/cover;
  transform: rotateY(180deg);
  border-color: #FFB800;
  box-shadow: 0 8px 25px rgba(255, 184, 0, 0.3);
}

.vad-coin-content {
  display: none; /* Hide text content since we're using SVG images */
}

.vad-coin-symbol {
  font-size: 3rem;
  margin-bottom: 8px;
}

.vad-coin-text {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 1px;
}

/* Coin Flip Buttons */
.vad-coin-flip-buttons {
  display: flex;
  gap: 30px;
  justify-content: center;
  align-items: center;
  margin: 40px 0;
  flex-wrap: wrap;
}

.vad-coin-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 20px 30px;
  border: 3px solid transparent;
  border-radius: 20px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 140px;
  position: relative;
  overflow: hidden;
}

.vad-coin-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s;
}

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

.vad-coin-btn-heads {
  background: linear-gradient(135deg, #FFD700 0%, #FFB800 100%);
  color: white;
  border-color: #FFB800;
  box-shadow: 0 6px 20px rgba(255, 184, 0, 0.3);
}

.vad-coin-btn-heads:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 10px 30px rgba(255, 184, 0, 0.4);
  border-color: #FFD700;
}

.vad-coin-btn-tails {
  background: linear-gradient(135deg, #00E0E9 0%, #00c7cf 100%);
  color: white;
  border-color: #00E0E9;
  box-shadow: 0 6px 20px rgba(0, 224, 233, 0.3);
}

.vad-coin-btn-tails:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 10px 30px rgba(0, 224, 233, 0.4);
  border-color: #00E0E9;
}

.vad-coin-btn.selected {
  transform: translateY(-3px) scale(1.1);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.3);
  border-width: 4px;
}

.vad-coin-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.vad-btn-icon {
  font-size: 2rem;
}

.vad-btn-text {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.vad-coin-result-container {
  margin-top: 30px;
  padding: 25px;
  border-radius: 20px;
  border: 2px solid rgba(72, 187, 120, 0.2);
}

.vad-coin-result {
  font-size: 1.3rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 15px;
}

.vad-coin-winner {
  font-size: 1.1rem;
  color: #48bb78;
  font-weight: 600;
}

.vad-coin-loser {
  font-size: 1.1rem;
  color: #e53e3e;
  font-weight: 600;
}

/* Game Status Card - Unified Container */
.vad-game-status-card {
  background: white;
  border-radius: 25px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  margin: 20px auto;
  padding: 30px;
  max-width: 900px;
  border: 1px solid rgba(0, 224, 233, 0.1);
  position: relative;
  overflow: hidden;
}

.vad-game-status-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #00E0E9, #00c7cf, #FFB800);
  border-radius: 25px 25px 0 0;
}

/* Timer Container */
.vad-timer-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 20px 0 0 0;
  padding: 25px 40px;
  background: transparent;
  border-radius: 20px;
  box-shadow: none;
  max-width: 1000px;
}

.vad-timer-controls {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.vad-timer-bar-container {
  width: 100%;
  max-width: 760px;
}

.vad-timer-bar {
  width: 400px;
  height: 30px;
  background: linear-gradient(135deg, #e0e0e0 0%, #d0d0d0 100%);
  border-radius: 15px;
  overflow: hidden;
  position: relative;
  border: 2px solid rgba(255, 255, 255, 0.8);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.15), 0 2px 8px rgba(0, 0, 0, 0.1);
}

.vad-timer-progress {
  height: 100%;
  background: linear-gradient(90deg, #FFB800 0%, #FFA000 100%);
  border-radius: 12px;
  transition: width 0.3s ease;
  position: relative;
  box-shadow: inset 0 1px 3px rgba(255, 255, 255, 0.3);
}

.vad-timer-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 14px;
  font-weight: 600;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
  z-index: 2;
}

/* Health Bars */
.vad-health-bars-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 120px;
  margin: 0 0 20px 0;
  padding: 0;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
}

.vad-player-health,
.vad-opponent-health {
  flex: 1 1;
  max-width: 260px;
}

.vad-health-label {
  font-size: 16px;
  font-weight: 600;
  color: #333;
  margin-bottom: 12px;
  text-align: center;
}

.vad-health-bar {
  width: 100%;
  height: 32px;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 50%, #dee2e6 100%);
  border-radius: 25px;
  overflow: hidden;
  position: relative;
  border: 3px solid rgba(255, 255, 255, 0.9);
  box-shadow: 
    inset 0 2px 4px rgba(0, 0, 0, 0.1), 
    0 4px 12px rgba(0, 0, 0, 0.15),
    0 0 0 1px rgba(0, 0, 0, 0.05);
}

.vad-health-fill {
  height: 100%;
  border-radius: 20px;
  transition: width 0.5s ease;
  position: relative;
  box-shadow: 
    inset 0 1px 3px rgba(255, 255, 255, 0.4),
    inset 0 -1px 2px rgba(0, 0, 0, 0.1);
}

.vad-health-fill.high {
  background: linear-gradient(135deg, #00ff88 0%, #00e676 100%);
  box-shadow: 
    inset 0 1px 3px rgba(255, 255, 255, 0.4),
    inset 0 -1px 2px rgba(0, 0, 0, 0.1),
    0 0 8px rgba(0, 255, 136, 0.3);
}

.vad-health-fill.medium {
  background: linear-gradient(135deg, #FFB800 0%, #FFA000 100%);
  box-shadow: 
    inset 0 1px 3px rgba(255, 255, 255, 0.4),
    inset 0 -1px 2px rgba(0, 0, 0, 0.1),
    0 0 8px rgba(255, 184, 0, 0.3);
}

.vad-health-fill.low {
  background: linear-gradient(135deg, #ff4757 0%, #e84049 100%);
  box-shadow: 
    inset 0 1px 3px rgba(255, 255, 255, 0.4),
    inset 0 -1px 2px rgba(0, 0, 0, 0.1),
    0 0 8px rgba(255, 71, 87, 0.4);
  animation: lowHealthPulse 2s ease-in-out infinite;
}

.vad-health-fill.critical {
  background: linear-gradient(135deg, #dc143c 0%, #b91c1c 100%);
  box-shadow: 
    inset 0 1px 3px rgba(255, 255, 255, 0.4),
    inset 0 -1px 2px rgba(0, 0, 0, 0.1),
    0 0 12px rgba(220, 20, 60, 0.6);
  animation: criticalHealthPulse 1s ease-in-out infinite;
}

@keyframes lowHealthPulse {
  0%, 100% { 
    box-shadow: 
      inset 0 1px 3px rgba(255, 255, 255, 0.4),
      inset 0 -1px 2px rgba(0, 0, 0, 0.1),
      0 0 8px rgba(255, 71, 87, 0.4);
  }
  50% { 
    box-shadow: 
      inset 0 1px 3px rgba(255, 255, 255, 0.4),
      inset 0 -1px 2px rgba(0, 0, 0, 0.1),
      0 0 15px rgba(255, 71, 87, 0.6);
  }
}

@keyframes criticalHealthPulse {
  0%, 100% { 
    box-shadow: 
      inset 0 1px 3px rgba(255, 255, 255, 0.4),
      inset 0 -1px 2px rgba(0, 0, 0, 0.1),
      0 0 12px rgba(220, 20, 60, 0.6);
  }
  50% { 
    box-shadow: 
      inset 0 1px 3px rgba(255, 255, 255, 0.4),
      inset 0 -1px 2px rgba(0, 0, 0, 0.1),
      0 0 20px rgba(220, 20, 60, 0.8);
  }
}

.vad-health-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 12px;
  font-weight: 600;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
  z-index: 2;
}

/* Active Player Indicator */
.vad-active-player {
  text-align: center;
  padding: 20px;
  margin: 20px auto;
  border-radius: 20px;
  font-size: 18px;
  font-weight: 600;
  width: 100%;
  max-width: 600px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.vad-active-player::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.1); opacity: 0.8; }
}

.vad-active-player.your-turn {
  background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
  color: white;
}

.vad-active-player.opponent-turn {
  background: linear-gradient(135deg, #ff4757 0%, #e84049 100%);
  color: white;
}

.vad-active-text {
  margin: 0;
  position: relative;
  z-index: 1;
  text-align: center;
}

.vad-second-chance {
  font-size: 14px;
  margin-top: 5px;
  opacity: 0.9;
  position: relative;
  z-index: 1;
  text-align: center;
}

/* Progress Container */
.vad-progress-container {
  text-align: center;
  margin: 20px auto;
  width: 100%;
  max-width: 600px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.vad-progress-text {
  font-size: 16px;
  color: #666;
  font-weight: 500;
  text-align: center;
}

/* Question Card */
.vad-question-card {
  background: rgba(255, 255, 255, 0.95);
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 30px;
  margin: 30px auto;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  border: 2px solid rgba(0, 224, 233, 0.3);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  max-width: 900px;
}

.vad-question-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #00E0E9, #00c7cf, #FF6B6B);
  border-radius: 20px 20px 0 0;
}

.vad-question-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.2);
}

.vad-question-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.vad-question-number {
  background: linear-gradient(135deg, #00E0E9, #00c7cf);
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(0, 224, 233, 0.3);
}

.vad-question-text {
  font-size: 22px;
  font-weight: 600;
  color: #333;
  margin: 0 0 25px 0;
  line-height: 1.4;
  text-align: center;
}

/* Answer Choices */
.vad-choices-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  grid-gap: 15px;
  gap: 15px;
  margin-bottom: 25px;
}

.vad-choice {
  background: rgba(255, 255, 255, 0.9);
  -webkit-backdrop-filter: blur(5px);
          backdrop-filter: blur(5px);
  border-radius: 15px;
  padding: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 20px;
  position: relative;
  overflow: hidden;
}

.vad-choice::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 224, 233, 0.1), transparent);
  transition: left 0.5s;
}

.vad-choice:hover::before {
  left: 100%;
}

.vad-choice:hover {
  background: rgba(0, 224, 233, 0.05);
  transform: translateX(5px);
}

.vad-choice.selected {
  background: linear-gradient(135deg, #00E0E9 0%, #00c7cf 100%);
  color: white;
}

.vad-choice.correct {
  background: linear-gradient(135deg, var(--feedback-correct-start) 0%, var(--feedback-correct-end) 100%);
  color: white;
}

.vad-choice.incorrect {
  background: linear-gradient(135deg, var(--feedback-incorrect-start) 0%, var(--feedback-incorrect-end) 100%);
  color: white;
}

.vad-choice-label {
  background: white;
  color: #333;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
}

.vad-choice.selected .vad-choice-label,
.vad-choice.correct .vad-choice-label,
.vad-choice.incorrect .vad-choice-label {
  background: rgba(255, 255, 255, 0.3);
  color: white;
}

.vad-choice-text {
  flex: 1 1;
  font-size: 16px;
}

.vad-choice[data-disabled="true"] {
  pointer-events: none;
}

.vad-choice[data-faded="true"] {
  opacity: 0.6;
}

/* Feedback Messages */
.vad-feedback-message {
  padding: 15px 20px;
  border-radius: 8px;
  margin: 20px 0;
  font-size: 16px;
  font-weight: 500;
  text-align: center;
  transition: all 0.3s ease;
}

.vad-feedback-message.correct {
  background: linear-gradient(135deg, var(--feedback-correct-start) 0%, var(--feedback-correct-end) 100%);
  color: white;
  border: 2px solid #00c853;
}

.vad-feedback-message.incorrect {
  background: linear-gradient(135deg, var(--feedback-incorrect-start) 0%, var(--feedback-incorrect-end) 100%);
  color: white;
  border: 2px solid #ff1744;
}

.vad-feedback {
  text-align: center;
  padding: 25px;
  margin: 20px auto;
  border-radius: 20px;
  font-size: 18px;
  font-weight: 600;
  width: 100%;
  max-width: 600px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.vad-feedback.waiting {
  background: linear-gradient(135deg, #FFB800 0%, #FFA000 100%);
  color: white;
  box-shadow: 0 8px 32px rgba(255, 184, 0, 0.25);
}

.vad-feedback.opponent-waiting {
  color: black;
}

.vad-feedback.timeout {
  background: linear-gradient(135deg, #ff4757 0%, #e84049 100%);
  color: white;
  box-shadow: 0 8px 32px rgba(255, 71, 87, 0.25);
}

/* Results Container */
.vad-results-container {
  background: white;
  border-radius: 12px;
  padding: 30px;
  margin: 20px auto;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  text-align: center;
  width: 100%;
  max-width: 700px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.vad-results-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  border-radius: 20px 20px 0 0;
}

.vad-results-container.correct::before {
  background: linear-gradient(90deg, #48bb78, #38a169, #48bb78);
}

.vad-results-container.incorrect::before {
  background: linear-gradient(90deg, #ff4757, #e84049, #ff4757);
}

.vad-result-status {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 15px;
  text-align: center;
  width: 100%;
}

.vad-results-container.correct .vad-result-status {
  color: #16a34a;
}

.vad-results-container.incorrect .vad-result-status {
  color: #dc2626;
}

.vad-results-title {
  font-size: 24px;
  font-weight: 700;
  color: #333;
  margin-bottom: 20px;
}

.vad-damage-indicator::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  animation: shimmer 1.5s infinite;
}
/* Correct Answer Display */
.vad-correct-answer {
  background: linear-gradient(135deg, var(--feedback-correct-start) 0%, var(--feedback-correct-end) 100%);
  border: 2px solid #00c853;
  border-radius: 12px;
  padding: 20px;
  margin: 20px 0;
  color: white;
  font-weight: 600;
  text-align: center;
  box-shadow: 0 8px 25px rgba(0, 255, 136, 0.3);
  max-width: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Round Results */
.vad-round-results {
  background: white;
  border-radius: 12px;
  padding: 25px;
  margin: 20px 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.vad-round-results-title {
  font-size: 22px;
  font-weight: 700;
  color: #333;
  margin: 25px 0 20px 0;
  text-align: center;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  width: 100%;
}

.vad-result-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #e9ecef;
  font-size: 16px;
  width: 100%;
}

.vad-result-item:last-child {
  border-bottom: none;
}

.vad-result-player {
  font-weight: 600;
  color: #333;
  text-align: left;
}

.vad-result-player.current-user {
  color: #00E0E9;
}

.vad-result-note {
  font-size: 14px;
  color: #666;
  margin-left: 10px;
}

.vad-result-score {
  font-weight: 600;
  text-align: right;
}

.vad-result-score.correct {
  color: #48bb78;
}

.vad-result-score.incorrect {
  color: #ff4757;
}

.vad-result-label {
  font-weight: 600;
  color: #495057;
}

.vad-result-value {
  font-weight: 500;
  color: #00E0E9;
}

/* Next Question Info */
.vad-next-question-info {
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  padding: 20px;
  margin: 20px 0;
  text-align: center;
  font-size: 16px;
  color: #333;
  max-width: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.vad-next-question-timer {
  font-size: 24px;
  font-weight: 700;
  color: #00E0E9;
  margin-bottom: 10px;
}

.vad-next-question-text {
  font-size: 16px;
  color: #6c757d;
}

/* Game End Screen */
.vad-game-end-screen {
  background: white;
  border-radius: 12px;
  padding: 40px;
  margin: 20px auto;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  text-align: center;
  max-width: 800px;
}

.vad-game-end-title {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 15px;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.vad-game-end-screen.winner .vad-game-end-title {
  color: #00ff41;
  background: linear-gradient(135deg, #00ff41 0%, #32ff54 50%, #48bb78 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: none;
}

.vad-game-end-screen.loser .vad-game-end-title {
  color: #ff1744;
  background: linear-gradient(135deg, #ff1744 0%, #ff4757 50%, #e84049 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: none;
}

.vad-game-end-subtitle {
  font-size: 18px;
  color: #6c757d;
  margin-bottom: 30px;
}

/* Final Health and Scores */
.vad-final-health-container,
.vad-final-scores {
  display: flex;
  justify-content: space-around;
  align-items: center;
  margin: 80px 0 30px 0;
  border-radius: 18px;
  gap: 20px;
}

.vad-final-player-health,
.vad-final-opponent-health,
.vad-final-player-score,
.vad-final-opponent-score {
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 18px;
  padding: 20px;
  text-align: center;
  flex: 1 1;
}

.vad-final-health-label,
.vad-final-score-label {
  font-size: 14px;
  color: #6c757d;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.vad-final-health-value,
.vad-final-score-value {
  font-size: 24px;
  font-weight: 700;
  color: #00E0E9;
}

.vad-analytics-container {
  margin: 40px 0;
  background: rgba(255, 255, 255, 0.95);
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.vad-analytics-title {
  font-size: 24px;
  font-weight: 700;
  color: #333;
  margin-bottom: 20px;
  text-align: center;
}

.vad-analytics-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 1fr);
  grid-gap: 20px;
  gap: 20px;
  margin-bottom: 30px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.vad-analytics-item {
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  padding: 20px;
  text-align: center;
}

.vad-analytics-label {
  font-size: 14px;
  color: #6c757d;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.vad-analytics-value {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 8px;
}

.vad-analytics-value.correct {
  color: #48bb78;
}

.vad-analytics-value.incorrect {
  color: #ff4757;
}

.vad-analytics-value.accuracy {
  color: #00E0E9;
}

.vad-analytics-value.time {
  color: #FFB800;
}

/* Questions Review */
.vad-questions-review {
  margin: 40px 0;
  max-height: 500px;
  overflow-y: auto;
  padding: 20px;
  background: rgba(255, 255, 255, 0.9);
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  border-radius: 15px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.vad-questions-review::-webkit-scrollbar {
  width: 8px;
}

.vad-questions-review::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

.vad-questions-review::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #00E0E9 0%, #00c7cf 100%);
  border-radius: 10px;
}

.vad-questions-review::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, #00c7cf 0%, #00adb5 100%);
}

.vad-questions-review-title {
  font-size: 24px;
  font-weight: 700;
  color: #333;
  margin-bottom: 20px;
  text-align: center;
}

/* Question Review Items - Square Cards like QuizTaking */
.vad-question-review-item {
  background: white;
  border-radius: 20px;
  padding: 30px;
  margin-bottom: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  border: 2px solid #e0e0e0;
}

.vad-question-review-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.15);
}

.vad-question-review-item.correct {
  border-color: #48bb78;
  background: linear-gradient(135deg, rgba(72, 187, 120, 0.05) 0%, rgba(72, 187, 120, 0.02) 100%);
}

.vad-question-review-item.incorrect {
  border-color: #ff4757;
  background: linear-gradient(135deg, rgba(255, 71, 87, 0.05) 0%, rgba(255, 71, 87, 0.02) 100%);
}

.vad-question-review-text {
  font-size: 18px;
  font-weight: 600;
  color: #333;
  margin-bottom: 15px;
  line-height: 1.4;
}

.vad-answer-review {
  margin-bottom: 10px;
  font-size: 16px;
  color: #555;
}

.vad-answer-status {
  margin-left: 10px;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
}

.vad-answer-status.correct {
  background: #48bb78;
  color: white;
}

.vad-answer-status.incorrect {
  background: #ff4757;
  color: white;
}

.vad-correct-review {
  margin-bottom: 10px;
  font-size: 16px;
  color: #555;
}

.vad-question-stats {
  font-size: 14px;
  color: #6c757d;
  font-weight: 500;
}

.vad-no-questions {
  text-align: center;
  color: #6c757d;
  font-style: italic;
  padding: 40px;
}

.vad-review-question {
  background: rgba(255, 255, 255, 0.95);
  -webkit-backdrop-filter: blur(5px);
          backdrop-filter: blur(5px);
  border: 2px solid #e9ecef;
  border-radius: 15px;
  padding: 25px;
  margin-bottom: 25px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.vad-review-question:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 224, 233, 0.15);
  border-color: #00E0E9;
}

.vad-review-question-text {
  font-size: 18px;
  font-weight: 600;
  color: #333;
  margin-bottom: 20px;
  line-height: 1.6;
}

.vad-review-choices {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  grid-gap: 15px;
  gap: 15px;
  margin-bottom: 15px;
}

.vad-review-choice {
  padding: 15px 20px;
  border-radius: 12px;
  font-size: 15px;
  border: 2px solid #e9ecef;
  background: rgba(248, 249, 250, 0.8);
  -webkit-backdrop-filter: blur(5px);
          backdrop-filter: blur(5px);
  transition: all 0.3s ease;
  cursor: pointer;
}

.vad-review-choice:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.vad-review-choice.correct {
  background: linear-gradient(135deg, #00ff88 0%, #00e676 100%);
  border: 2px solid #00c853;
  color: white;
  box-shadow: 0 4px 15px rgba(0, 255, 136, 0.3);
  font-weight: 600;
}

.vad-review-choice.incorrect {
  background: linear-gradient(135deg, #ff4757 0%, #ff3742 100%);
  border: 2px solid #ff1744;
  color: white;
  box-shadow: 0 4px 15px rgba(255, 71, 87, 0.3);
  font-weight: 600;
}

.vad-review-choice.selected {
  font-weight: 600;
  border-color: #00E0E9;
  background: rgba(0, 224, 233, 0.1);
}

/* Action Buttons */
.vad-exit-quiz-btn {
  padding: 12px 30px;
  border-radius: 25px;
  border: none;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 140px;
  text-align: center;
  background: #6c757d;
  color: white;
  box-shadow: 0 4px 15px rgba(108, 117, 125, 0.3);
}

.vad-exit-quiz-btn:hover {
  background: #5a6268;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(108, 117, 125, 0.4);
}

/* Action Buttons */
.vad-action-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  align-items: center;
  margin-top: 40px;
  flex-wrap: wrap;
}

.vad-submit-quiz-btn {
  padding: 15px 35px;
  border-radius: 25px;
  border: none;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 160px;
  text-align: center;
  background: var(--btn-primary-bg);
  color: white;
  box-shadow: 0 8px 25px rgba(0, 224, 233, 0.3);
  position: relative;
  overflow: hidden;
}

.vad-submit-quiz-btn::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: left 0.5s;
}

.vad-submit-quiz-btn:hover::before {
  left: 100%;
}

.vad-submit-quiz-btn:hover {
  background: linear-gradient(135deg, #00c7cf 0%, #00adb5 100%);
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(0, 224, 233, 0.4);
}

/* Responsive Design */
@media (max-width: 768px) {
  .vad-header {
    padding: 15px 20px;
  }

  .vad-title {
    font-size: 24px;
  }

  .vad-choices-grid {
    grid-template-columns: 1fr;
  }

  .vad-health-bars-container {
    flex-direction: column;
    gap: 20px;
  }

  .vad-player-health,
  .vad-opponent-health {
    width: 100%;
  }

  .vad-coin-flip-buttons {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }

  .vad-final-scores {
    flex-direction: column;
    gap: 20px;
  }

  .vad-analytics-grid {
    grid-template-columns: 1fr;
  }

  .vad-question-card {
    padding: 20px;
  }

  .vad-question-text {
    font-size: 20px;
  }

  .vad-action-buttons {
    flex-direction: column;
    align-items: center;
  }

  .vad-exit-btn,
  .vad-submit-quiz-btn {
    min-width: 200px;
  }
}
.pbr-main-content {
  min-height: calc(100vh - 60px);
  background: linear-gradient(135deg, #d6fbff 0%, #76e7eb 50%, #f6feff 100%);
  transition: all 0.3s ease;
  overflow: visible !important;
  margin-left: 240px;
  margin-top: 80px;
  padding-top: 0;
}

.pbr-main-content.collapsed {
  margin-left: 0;
}

.pbr-container {
  min-height: 100vh;
  background: linear-gradient(135deg, #d6fbff 0%, #76e7eb 50%, #f6feff 100%) !important;
  padding: 20px;
  width: 100%;
  position: relative;
  transition: all 0.3s ease;
}

.pbr-container.sidebar-open {
  margin-left: 250px;
  width: calc(100% - 250px);
}

.pbr-container.sidebar-collapsed {
  margin-left: 80px;
  width: calc(100% - 80px);
}

.pbr-header {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.98);
  -webkit-backdrop-filter: blur(15px);
          backdrop-filter: blur(15px);
  padding: 25px 40px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  z-index: 100;
  border-bottom: 3px solid #00E0E9;
  margin-bottom: 20px;
}

.pbr-header-content {
  max-width: 1900px;
  margin: 0 auto;
  margin-top: 10px;
}

.pbr-title {
  font-size: 28px;
  font-weight: 700;
  color: #333;
  margin: 0 0 20px 0;
  text-align: center;
}

.pbr-header-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
}

.pbr-exit-btn,
.pbr-music-btn {
  padding: 12px 30px;
  border-radius: 25px;
  border: none;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 140px;
  text-align: center;
}

.pbr-exit-btn {
  background: #ff4757;
  color: white;
  box-shadow: 0 4px 15px rgba(255, 71, 87, 0.3);
}

.pbr-exit-btn:hover {
  background: #e84049;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 71, 87, 0.4);
}

.pbr-music-btn {
  background: #00E0E9;
  color: white;
  box-shadow: 0 4px 15px rgba(0, 224, 233, 0.3);
  position: relative;
  overflow: hidden;
}

.pbr-music-btn:hover {
  background: #00c7cf;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 224, 233, 0.4);
}

.pbr-music-btn:active {
  transform: translateY(0);
  box-shadow: 0 4px 15px rgba(0, 224, 233, 0.3);
}

/* Sliding animation for music button text */
.pbr-music-btn::before {
  content: attr(data-text);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: transform 0.3s ease;
  white-space: nowrap;
}

.pbr-music-btn[data-state="on"]::before {
  transform: translate(-50%, -50%) translateX(0);
}

.pbr-music-btn[data-state="off"]::before {
  transform: translate(-50%, -50%) translateX(0);
}

.pbr-content {
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  padding: 0 20px;
}/* Loading Screen */
.pbr-loading-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  text-align: center;
}

.pbr-loading-spinner {
  width: 60px;
  height: 60px;
  border: 4px solid #e0e0e0;
  border-top: 4px solid #00E0E9;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 20px;
}

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

/* Coin Flip Screen */
.pbr-coin-flip-container {
  background: rgba(255, 255, 255, 0.95);
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  border-radius: 25px;
  padding: 50px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
  text-align: center;
  margin: 20px auto;
  max-width: 700px;
  transition: all 0.3s ease;
  border: 2px solid rgba(0, 224, 233, 0.2);
  perspective: 1000px;
}

.pbr-coin-flip-container:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0, 224, 233, 0.2);
  border-color: rgba(0, 224, 233, 0.4);
}

.pbr-coin-flip-title {
  font-size: 2.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, #00E0E9 0%, #FFB800 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 15px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.pbr-coin-flip-subtitle {
  font-size: 1.2rem;
  color: #666;
  margin-bottom: 30px;
  font-weight: 500;
}

.pbr-coin-flip-result {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 30px 0;
  padding: 20px;
  border-radius: 15px;
  background: rgba(0, 224, 233, 0.1);
  border: 2px solid rgba(0, 224, 233, 0.3);
}

.pbr-coin-flip-result.winner {
  color: #00E0E9;
  background: rgba(0, 224, 233, 0.15);
  border-color: #00E0E9;
}

.pbr-coin-flip-result.loser {
  color: #ff4757;
  background: rgba(255, 71, 87, 0.1);
  border-color: rgba(255, 71, 87, 0.3);
}

/* Coin Animation */
.pbr-coin {
  width: 120px;
  height: 120px;
  margin: 30px auto;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.6s;
}

.pbr-coin.flipping {
  animation: coinFlip 2s ease-in-out;
}

@keyframes coinFlip {
  0% { transform: rotateY(0deg); }
  50% { transform: rotateY(1800deg) scale(1.1); }
  100% { transform: rotateY(3600deg); }
}

.pbr-coin-side {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 700;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  backface-visibility: hidden;
}

.pbr-coin-heads {
  background: linear-gradient(135deg, #FFD700 0%, #FFB800 100%);
  color: white;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.pbr-coin-tails {
  background: linear-gradient(135deg, #00E0E9 0%, #00c7cf 100%);
  color: white;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  transform: rotateY(180deg);
}

.pbr-coin-content {
  display: none; /* Hide text content since we're using SVG images */
}

.pbr-coin-symbol {
  font-size: 3rem;
  margin-bottom: 8px;
}

.pbr-coin-text {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 1px;
}

/* Coin Flip Buttons */
.pbr-coin-flip-buttons {
  display: flex;
  gap: 30px;
  justify-content: center;
  align-items: center;
  margin: 40px 0;
  flex-wrap: wrap;
}

.pbr-coin-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 20px 30px;
  border: 3px solid transparent;
  border-radius: 20px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 140px;
  position: relative;
  overflow: hidden;
}

.pbr-coin-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s;
}

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

.pbr-coin-btn-heads {
  background: linear-gradient(135deg, #FFD700 0%, #FFB800 100%);
  color: white;
  border-color: #FFB800;
  box-shadow: 0 6px 20px rgba(255, 184, 0, 0.3);
}

.pbr-coin-btn-heads:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 10px 30px rgba(255, 184, 0, 0.4);
  border-color: #FFD700;
}

.pbr-coin-btn-tails {
  background: linear-gradient(135deg, #00E0E9 0%, #00c7cf 100%);
  color: white;
  border-color: #00E0E9;
  box-shadow: 0 6px 20px rgba(0, 224, 233, 0.3);
}

.pbr-coin-btn-tails:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 10px 30px rgba(0, 224, 233, 0.4);
  border-color: #00E0E9;
}

.pbr-coin-btn.selected {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.pbr-coin-btn-heads.selected {
  border-color: #FFD700;
  box-shadow: 0 8px 25px rgba(255, 215, 0, 0.4);
}

.pbr-coin-btn-tails.selected {
  border-color: #00E0E9;
  box-shadow: 0 8px 25px rgba(0, 224, 233, 0.4);
}

/* Health Bar Container */
.pbr-health-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 20px auto;
  padding: 25px;
  background: rgba(255, 255, 255, 0.95);
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  border-radius: 20px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
  border: 2px solid rgba(0, 224, 233, 0.2);
  max-width: 800px;
  transition: all 0.3s ease;
}

.pbr-health-container:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(0, 224, 233, 0.2);
  border-color: rgba(0, 224, 233, 0.4);
}

.pbr-player-health {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1 1;
  padding: 0 20px;
}

.pbr-player-name {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 15px;
  color: #333;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.pbr-health-bar {
  width: 200px;
  height: 25px;
  background: rgba(224, 224, 224, 0.8);
  border-radius: 15px;
  overflow: hidden;
  border: 2px solid rgba(0, 224, 233, 0.3);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.pbr-health-progress {
  height: 100%;
  background: linear-gradient(90deg, #56d65b 0%, #4caf50 100%);
  transition: width 0.5s ease;
  border-radius: 12px;
  position: relative;
}

.pbr-health-progress::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  border-radius: 12px;
}

.pbr-health-progress.low {
  background: linear-gradient(90deg, #F44336 0%, #d32f2f 100%);
}

.pbr-health-progress.medium {
  background: linear-gradient(90deg, #FFC107 0%, #f57c00 100%);
}

.pbr-health-text {
  font-size: 16px;
  font-weight: 700;
  margin-top: 10px;
  color: #333;
}

.pbr-vs-text {
  font-size: 32px;
  font-weight: 700;
  color: #00E0E9;
  margin: 0 30px;
  text-shadow: 0 2px 4px rgba(0, 224, 233, 0.3);
  animation: pulse 2s infinite;
}

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

/* Active Player Indicator */
.pbr-active-player-indicator {
  background: linear-gradient(135deg, #00E0E9 0%, #00c7cf 100%);
  color: white;
  border-radius: 15px;
  padding: 15px 25px;
  margin: 20px auto;
  text-align: center;
  font-weight: 700;
  font-size: 18px;
  box-shadow: 0 6px 20px rgba(0, 224, 233, 0.3);
  max-width: 400px;
  position: relative;
  z-index: 1;
  text-align: center;
}

/* Progress Container */
.pbr-progress-container {
  text-align: center;
  margin: 20px auto;
  width: 100%;
  max-width: 600px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.pbr-progress-text {
  font-size: 16px;
  color: #666;
  font-weight: 500;
  text-align: center;
}

/* Question Card */
.pbr-question-card {
  background: rgba(255, 255, 255, 0.95);
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 30px;
  margin: 30px auto;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  border: 2px solid rgba(0, 224, 233, 0.3);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  max-width: 900px;
}

.pbr-question-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #00E0E9, #00c7cf, #FF6B6B);
  border-radius: 20px 20px 0 0;
  z-index: 1;
}

.pbr-question-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.2);
}

.pbr-question-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.pbr-question-number {
  background: linear-gradient(135deg, #00E0E9, #00c7cf);
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(0, 224, 233, 0.3);
}

.pbr-question-text {
  font-size: 22px;
  font-weight: 600;
  color: #333;
  margin: 0 0 25px 0;
  line-height: 1.4;
  text-align: center;
}

/* Timer Container */
.pbr-timer-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 20px auto;
  padding: 40px 30px;
  background: white;
  border-radius: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  max-width: 900px;
  min-height: 300px;
}

.pbr-timer-controls {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 20px;
}

.pbr-timer-bar-container {
  width: 100%;
  max-width: 760px;
  margin-top: 50px;
}

.pbr-timer-bar {
  width: 100%;
  height: 30px;
  background: linear-gradient(135deg, #e0e0e0 0%, #d0d0d0 100%);
  border-radius: 15px;
  overflow: hidden;
  position: relative;
  border: 2px solid rgba(255, 255, 255, 0.8);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.15), 0 2px 8px rgba(0, 0, 0, 0.1);
}

.pbr-timer-progress {
  height: 100%;
  background: linear-gradient(90deg, #FFB800 0%, #FFA000 100%);
  border-radius: 12px;
  transition: width 0.3s ease;
  position: relative;
  box-shadow: inset 0 1px 3px rgba(255, 255, 255, 0.3);
}

.pbr-timer-progress.warning {
  background: linear-gradient(90deg, #ff6b35 0%, #f7931e 100%);
}

.pbr-timer-progress.danger {
  background: linear-gradient(90deg, #ff4757 0%, #ff3742 100%);
}

.pbr-timer-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 14px;
  font-weight: 600;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
  z-index: 2;
}

/* Answer Choices */
.pbr-choices-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-gap: 20px;
  gap: 20px;
  margin-top: 25px;
}

.pbr-choice {
  background: rgba(248, 249, 250, 0.9);
  border-radius: 15px;
  padding: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  min-height: 80px;
  display: flex;
  align-items: center;
  gap: 15px;
}

.pbr-choice::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s;
}

.pbr-choice:hover::before {
  left: 100%;
}

.pbr-choice:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  border-color: #00E0E9;
}

.pbr-choice-label {
  background: #00E0E9;
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  flex-shrink: 0;
}

.pbr-choice-text {
  font-size: 16px;
  font-weight: 500;
  color: #000000;
  flex: 1 1;
  line-height: 1.4;
}

.pbr-choice.selected {
  border-color: #00E0E9;
  background: rgba(0, 224, 233, 0.1);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 224, 233, 0.2);
}

.pbr-choice.selected .pbr-choice-label {
  background: #00E0E9;
}

.pbr-choice.correct-answer {
  border-color: #00c853;
  background: linear-gradient(135deg, rgba(0, 255, 136, 0.1) 0%, rgba(0, 230, 118, 0.05) 100%);
  animation: correctPulse 0.6s ease-out;
}

.pbr-choice.correct-answer .pbr-choice-label {
  background: #00c853;
  color: white;
}

.pbr-choice.incorrect-answer {
  border-color: #ff1744;
  background: linear-gradient(135deg, rgba(255, 71, 87, 0.1) 0%, rgba(255, 23, 68, 0.05) 100%);
  animation: incorrectShake 0.6s ease-out;
}

.pbr-choice.incorrect-answer .pbr-choice-label {
  background: #ff1744;
  color: white;
}

@keyframes correctPulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.02); }
  100% { transform: scale(1); }
}

@keyframes incorrectShake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}

.pbr-choice[data-disabled="true"] {
  opacity: 0.6;
  cursor: not-allowed;
  pointer-events: none;
}

.pbr-choice[data-faded="true"] {
  opacity: 0.4;
  transform: scale(0.98);
}

.pbr-choice.selected .pbr-choice-text {
  background: rgba(255, 255, 255, 0.3);
  color: white;
}

.pbr-choice-text {
  flex: 1 1;
  font-size: 16px;
  color: #000;
}

.pbr-choice[data-disabled="true"] {
  pointer-events: none;
}

.pbr-choice[data-disabled="true"] .pbr-choice-text {
  color: #000 !important;
}

.pbr-choice[data-faded="true"] {
  opacity: 1;
}

.pbr-choice[data-faded="true"] .pbr-choice-text {
  color: #000 !important;
}

/* Answer Options for PartyBattleRoyale */
.pbr-answers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  grid-gap: 15px;
  gap: 15px;
  margin-bottom: 25px;
}

.pbr-answer-option {
  background: rgba(255, 255, 255, 0.9);
  -webkit-backdrop-filter: blur(5px);
          backdrop-filter: blur(5px);
  border-radius: 15px;
  padding: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 20px;
  position: relative;
  overflow: hidden;
}

.pbr-answer-option::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 224, 233, 0.1), transparent);
  transition: left 0.5s;
}

.pbr-answer-option:hover::before {
  left: 100%;
}

.pbr-answer-option:hover {
  background: rgba(0, 224, 233, 0.05);
  transform: translateX(5px);
}

.pbr-option-text {
  font-size: 16px;
  font-weight: 500;
  color: #333;
  flex: 1 1;
  line-height: 1.4;
}

.pbr-answer-option.pbr-selected {
  border-color: #00E0E9;
  background: rgba(0, 224, 233, 0.1);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 224, 233, 0.2);
}

.pbr-answer-option.pbr-selected .pbr-option-label {
  background: #00E0E9;
}

.pbr-answer-option.pbr-correct-answer {
  border-color: #00c853;
  background: linear-gradient(135deg, rgba(0, 255, 136, 0.1) 0%, rgba(0, 230, 118, 0.05) 100%);
  animation: correctPulse 0.6s ease-out;
}

.pbr-answer-option.pbr-correct-answer .pbr-option-label {
  background: #00c853;
  color: white;
}

.pbr-answer-option.pbr-incorrect-answer {
  border-color: #ff1744;
  background: linear-gradient(135deg, rgba(255, 71, 87, 0.1) 0%, rgba(255, 23, 68, 0.05) 100%);
  animation: incorrectShake 0.6s ease-out;
}

.pbr-answer-option.pbr-incorrect-answer .pbr-option-label {
  background: #ff1744;
  color: white;
}

.pbr-answer-option[data-disabled="true"] {
  opacity: 0.6;
  cursor: not-allowed;
  pointer-events: none;
}

.pbr-answer-option[data-faded="true"] {
  opacity: 0.4;
  transform: scale(0.98);
}

/* Question Container */
.pbr-question-container {
  background: rgba(255, 255, 255, 0.95);
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 30px;
  margin: 30px auto;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  border: 2px solid rgba(0, 224, 233, 0.3);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  max-width: 900px;
}

.pbr-question-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #00E0E9, #00c7cf, #FF6B6B);
  border-radius: 20px 20px 0 0;
  z-index: 1;
}

.pbr-question-container:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.2);
}

/* Feedback Messages */
.pbr-feedback-message {
  padding: 15px 20px;
  border-radius: 8px;
  margin: 20px 0;
  font-size: 16px;
  font-weight: 500;
  text-align: center;
  transition: all 0.3s ease;
}

.pbr-feedback-message.correct {
  background: linear-gradient(135deg, var(--feedback-correct-start) 0%, var(--feedback-correct-end) 100%);
  color: white;
  border: 2px solid #00c853;
}

.pbr-feedback-message.incorrect {
  background: linear-gradient(135deg, var(--feedback-incorrect-start) 0%, var(--feedback-incorrect-end) 100%);
  color: white;
  border: 2px solid #ff1744;
}

.pbr-feedback {
  text-align: center;
  padding: 25px;
  margin: 20px auto;
  border-radius: 20px;
  font-size: 18px;
  font-weight: 600;
  width: 100%;
  max-width: 600px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.pbr-feedback.waiting {
  background: linear-gradient(135deg, #FFB800 0%, #FFA000 100%);
  color: white;
  box-shadow: 0 8px 32px rgba(255, 184, 0, 0.25);
}

.pbr-feedback.opponent-waiting {
  color: black;
}

.pbr-feedback.timeout {
  background: linear-gradient(135deg, #ff4757 0%, #e84049 100%);
  color: white;
  box-shadow: 0 8px 32px rgba(255, 71, 87, 0.25);
}

/* Results Container */
.pbr-results-container {
  background: white;
  border-radius: 12px;
  padding: 30px;
  margin: 20px auto;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  text-align: center;
  width: 100%;
  max-width: 700px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.pbr-results-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  border-radius: 20px 20px 0 0;
}

.pbr-results-container.correct::before {
  background: linear-gradient(90deg, #48bb78, #38a169, #48bb78);
}

.pbr-results-container.incorrect::before {
  background: linear-gradient(90deg, #ff4757, #e84049, #ff4757);
}

.pbr-result-status {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 15px;
  text-align: center;
  width: 100%;
}

.pbr-results-container.correct .pbr-result-status {
  color: #16a34a;
}

.pbr-results-container.incorrect .pbr-result-status {
  color: #dc2626;
}

.pbr-results-title {
  font-size: 24px;
  font-weight: 700;
  color: #333;
  margin-bottom: 20px;
}

/* Correct Answer Display */
.pbr-correct-answer {
  background: linear-gradient(135deg, var(--feedback-correct-start) 0%, var(--feedback-correct-end) 100%);
  border: 2px solid #00c853;
  border-radius: 12px;
  padding: 20px;
  margin: 20px 0;
  color: white;
  font-weight: 600;
  text-align: center;
  box-shadow: 0 8px 25px rgba(0, 255, 136, 0.3);
  max-width: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Round Results */
.pbr-round-results {
  background: white;
  border-radius: 12px;
  padding: 25px;
  margin: 20px 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.pbr-round-results-title {
  font-size: 22px;
  font-weight: 700;
  color: #333;
  margin: 25px 0 20px 0;
  text-align: center;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  width: 100%;
}

.pbr-result-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #e9ecef;
  font-size: 16px;
  width: 100%;
}

.pbr-result-item:last-child {
  border-bottom: none;
}

.pbr-result-player {
  font-weight: 600;
  color: #333;
  text-align: left;
}

.pbr-result-player.current-user {
  color: #00E0E9;
}

.pbr-result-note {
  font-size: 14px;
  color: #666;
  margin-left: 10px;
}

.pbr-result-score {
  font-weight: 600;
  text-align: right;
}

.pbr-result-score.correct {
  color: #48bb78;
}

.pbr-result-score.incorrect {
  color: #ff4757;
}

.pbr-result-label {
  font-weight: 600;
  color: #495057;
}

.pbr-result-value {
  font-weight: 500;
  color: #00E0E9;
}

/* Players Container */
.pbr-players-container {
  display: flex;
  flex-direction: row;
  gap: 15px;
  margin-top: 20px;
  justify-content: center;
  align-items: flex-start;
}

.pbr-player-card {
  background: rgba(255, 255, 255, 0.95);
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  margin-right:10px;
  border-radius: 18px;
  padding: 20px;
  border: 2px solid rgba(0, 224, 233, 0.3);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  flex: 0 0 auto;
  min-width: 180px;
  max-width: 220px;
  width: 200px;
}

.pbr-player-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 224, 233, 0.2);
  border-color: rgba(0, 224, 233, 0.5);
}

.pbr-current-player {
  border-color: #00E0E9;
  box-shadow: 0 0 20px rgba(0, 224, 233, 0.3);
  transform: scale(1.02);
}

.pbr-player-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 10px;
}

.pbr-player-name {
  font-weight: 700;
  font-size: 14px;
  color: #333;
}

.pbr-player-hearts {
  display: flex;
  gap: 2px;
}

.pbr-heart {
  font-size: 16px;
  color: #ef4444 !important;
  margin: 0 1px;
  transition: all 0.3s ease;
}

.pbr-heart-full {
  color: #ef4444 !important;
}

.pbr-heart-empty {
  color: #d1d5db !important;
}

.pbr-heart-half {
  opacity: 0.5;
}

.pbr-heart-shake {
  animation: heartShake 0.6s ease-in-out;
}

@keyframes heartShake {
  0%, 100% { transform: translateX(0); }
  10%, 30%, 50%, 70%, 90% { transform: translateX(-2px) scale(1.1); }
  20%, 40%, 60%, 80% { transform: translateX(2px) scale(1.1); }
}

.pbr-player-score {
  background: linear-gradient(135deg, #00E0E9, #00c7cf);
  color: white;
  padding: 8px 12px;
  border-radius: 8px;
  font-weight: 700;
  text-align: center;
  font-size: 16px;
  box-shadow: 0 4px 15px rgba(0, 224, 233, 0.3);
}

/* Game End Screen */
.pbr-game-end-screen {
  background: white;
  border-radius: 12px;
  padding: 40px;
  margin: 20px auto;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  text-align: center;
  max-width: 800px;
}

.pbr-game-end-title {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 15px;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.pbr-game-end-screen.winner .pbr-game-end-title {
  color: #00ff41;
  background: linear-gradient(135deg, #00ff41 0%, #32ff54 50%, #48bb78 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: none;
}

.pbr-game-end-screen.loser .pbr-game-end-title {
  color: #ff1744;
  background: linear-gradient(135deg, #ff1744 0%, #ff4757 50%, #e84049 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: none;
}

.pbr-game-end-subtitle {
  font-size: 18px;
  color: #6c757d;
  margin-bottom: 30px;
}

/* Elimination Screen */
.pbr-elimination-screen {
  background: white;
  border-radius: 12px;
  padding: 40px;
  margin: 20px auto;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  text-align: center;
  max-width: 800px;
  border: 2px solid #ff4757;
}

.pbr-elimination-title {
  font-size: 48px;
  font-weight: 700;
  color: #ff4757;
  margin-bottom: 15px;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-shadow: 0 2px 4px rgba(255, 71, 87, 0.3);
}

.pbr-elimination-subtitle {
  font-size: 18px;
  color: #6c757d;
  margin-bottom: 30px;
}

.pbr-remaining-players {
  background: #f8f9fa;
  border-radius: 12px;
  padding: 20px;
  margin: 20px 0;
}

.pbr-remaining-player-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px;
  margin-bottom: 10px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.pbr-remaining-player-info {
  display: flex;
  align-items: center;
  gap: 15px;
}

/* Action Buttons */
.pbr-exit-quiz-btn {
  padding: 12px 30px;
  border-radius: 25px;
  border: none;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 140px;
  text-align: center;
  background: #6c757d;
  color: white;
  box-shadow: 0 4px 15px rgba(108, 117, 125, 0.3);
}

.pbr-exit-quiz-btn:hover {
  background: #5a6268;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(108, 117, 125, 0.4);
}

/* Action Buttons */
.pbr-action-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  align-items: center;
  margin-top: 40px;
  flex-wrap: wrap;
}

.pbr-submit-quiz-btn {
  padding: 15px 35px;
  border-radius: 25px;
  border: none;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 160px;
  text-align: center;
  background: var(--btn-primary-bg);
  color: white;
  box-shadow: 0 8px 25px rgba(0, 224, 233, 0.3);
  position: relative;
  overflow: hidden;
}

.pbr-submit-quiz-btn::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: left 0.5s;
}

.pbr-submit-quiz-btn:hover::before {
  left: 100%;
}

.pbr-submit-quiz-btn:hover {
  background: linear-gradient(135deg, #00c7cf 0%, #00adb5 100%);
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(0, 224, 233, 0.4);
}

/* Responsive Design */
@media (max-width: 768px) {
  .pbr-header {
    padding: 15px 20px;
  }

  .pbr-title {
    font-size: 24px;
  }

  .pbr-choices-grid,
  .pbr-answers-grid {
    grid-template-columns: 1fr;
  }

  .pbr-health-container {
    flex-direction: column;
    gap: 20px;
  }

  .pbr-vs-text {
    order: 2;
    margin: 10px 0;
  }

  .pbr-question-card,
  .pbr-question-container {
    padding: 20px;
  }

  .pbr-question-text {
    font-size: 20px;
  }

  .pbr-coin-flip-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .pbr-action-buttons {
    flex-direction: column;
    align-items: center;
  }

  .pbr-exit-btn,
  .pbr-submit-quiz-btn {
    min-width: 200px;
  }

  .pbr-game-end-title,
  .pbr-elimination-title {
    font-size: 32px;
  }

  .pbr-players-container {
    flex-direction: row;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .pbr-content {
    padding: 20px 15px;
  }

  .pbr-question-card,
  .pbr-question-container {
    padding: 15px;
  }

  .pbr-choice,
  .pbr-answer-option {
    padding: 15px;
  }

  .pbr-game-end-screen,
  .pbr-elimination-screen {
    padding: 30px 20px;
  }
}

/* Question Card */
.pbr-question-card {
  background: rgba(255, 255, 255, 0.95);
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 40px;
  margin: 30px auto;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  border: 2px solid rgba(0, 224, 233, 0.3);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  max-width: 900px;
}

.pbr-question-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #00E0E9, #00c7cf, #FF6B6B);
  border-radius: 20px 20px 0 0;
}

.pbr-question-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.2);
}

.pbr-question-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

/* Answer Choices */
.pbr-choices-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  grid-gap: 15px;
  gap: 15px;
  margin-bottom: 25px;
}

.pbr-choice {
  background: rgba(255, 255, 255, 0.9);
  -webkit-backdrop-filter: blur(5px);
          backdrop-filter: blur(5px);
  border-radius: 15px;
  padding: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 20px;
  position: relative;
  overflow: hidden;
}

.pbr-choice::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 224, 233, 0.1), transparent);
  transition: left 0.5s;
}

.pbr-choice:hover::before {
  left: 100%;
}

.pbr-choice:hover {
  background: rgba(0, 224, 233, 0.05);
  transform: translateX(5px);
}

.pbr-choice.selected {
  background: linear-gradient(135deg, #00E0E9 0%, #00c7cf 100%);
  color: white;
}

.pbr-choice.correct {
  background: linear-gradient(135deg, #00ff88 0%, #00e676 100%);
  color: white;
}

.pbr-choice.incorrect {
  background: linear-gradient(135deg, #ff4757 0%, #ff3742 100%);
  color: white;
}

.pbr-choice-label {
  background: transparent;
  color: #000000;
  width: 35px;
  height: 35px;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
}

.pbr-choice.selected .pbr-choice-label,
.pbr-choice.correct .pbr-choice-label,
.pbr-choice.incorrect .pbr-choice-label {
  background: transparent;
  color: #000;
}

.pbr-choice-text {
  flex: 1 1;
  font-size: 16px;
}

.pbr-choice[data-disabled="true"] {
  pointer-events: none;
}

.pbr-choice[data-faded="true"] {
  opacity: 0.6;
}
/* Loading overlay for note reorganizing */
.NT-loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(17, 24, 39, 0.45); /* slate-900 at ~45% */
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1200;
}

.NT-loading-content {
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  color: #1f2937; /* slate-800 */
  font-weight: 600;
}

.NT-loading-text {
  color: #0ea5b7; /* cyan blue matching Quizzle accent */
}
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal-content {
  background: white;
  border-radius: 16px;
  padding: 32px;
  width: 90%;
  max-width: 400px;
  position: relative;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.modal-close-btn {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  font-size: 24px;
  font-weight: bold;
  color: #6b7280;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
}

.modal-close-btn:hover {
  color: #374151;
}

.modal-title {
  font-size: 18px;
  font-weight: 600;
  color: #111827;
  text-align: center;
  margin: 0 0 32px 0;
  padding-right: 24px;
}

.form-group {
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: #686868;
  font-weight: 600;
  font-size: 14px;
  align-self: flex-start;
  margin-left: 30px;
}

.form-input {
  width: 80%;
  padding: 12px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 14px;
  color: #686868;
  background-color: white;
  transition: all 0.3s ease;
}

.form-input:focus {
  outline: none;
  border-color: #22d3ee;
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.1);
}

.form-input.error {
  border-color: #ef4444;
}

.error-message {
  color: #ef4444;
  font-size: 12px;
  margin-top: 4px;
}

.modal-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
}

/* Using existing system button styles */
.gen-control-btn {
  padding: 8px 25px;
  background-color: white;
  border: 1px solid #DEDEDD;
  border-radius: 10px;
  font-size: 14px;
  color: #808080;
  font-weight: 600;
  cursor: pointer;
}

.gen-control-btn:hover {
  background-color: #f9fafb;
}

.todo-add-task-btn {
  padding: 8px 25px;
  background-color: #22d3ee;
  border: none;
  border-radius: 10px;
  font-size: 14px;
  color: white;
  font-weight: 600;
  cursor: pointer;
}

.todo-add-task-btn:hover {
  opacity: 0.8;
}
/* Live Quiz Taking Styles - Exact Copy from QuizTaking.css */
.quiz-taking-container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow: hidden;
}

.quiz-main-content {
  margin-left: 250px;
  margin-top: 60px;
  transition: margin-left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  width: calc(100% - 250px);
  padding: 0;
  overflow: hidden;
}

.quiz-main-content.collapsed {
  margin-left: 70px;
  width: calc(100% - 70px);
}

.qt-container {
  width: 100%;
  height: calc(100vh - 60px);
  background: linear-gradient(135deg, #d6fbff 0%, #76e7eb 50%, #f6feff 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
  overflow: auto;
  position: relative;
}

.qt-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at center, transparent 0%, rgba(0,0,0,0.1) 100%);
  pointer-events: none;
  z-index: 1;
}

.qt-container.correct-aura {
  animation: correctAura 2s cubic-bezier(0.4, 0, 0.2, 1);
}

.qt-container.incorrect-aura {
  animation: incorrectAura 2s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes correctAura {
   0% {
     box-shadow: inset 0 0 0 0 rgba(46, 204, 113, 0);
   }
   40% {
     box-shadow: inset 0 0 300px 80px rgba(46, 204, 113, 0.6);
   }
   60% {
     box-shadow: inset 0 0 300px 80px rgba(46, 204, 113, 0.6);
   }
   100% {
     box-shadow: inset 0 0 0 0 rgba(46, 204, 113, 0);
   }
 }
 
 @keyframes incorrectAura {
   0% {
     box-shadow: inset 0 0 0 0 rgba(231, 76, 60, 0);
   }
   40% {
     box-shadow: inset 0 0 300px 80px rgba(248, 29, 5, 0.589);
   }
   60% {
     box-shadow: inset 0 0 300px 80px rgba(248, 29, 5, 0.589);
   }
   100% {
     box-shadow: inset 0 0 0 0 rgba(231, 76, 60, 0);
   }
 }

.qt-content {
  width: 100%;
  max-width: 900px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 10px;
  box-sizing: border-box;
  position: relative;
  z-index: 2;
}

.qt-question-counter {
  color: white;
  font-size: 18px;
  font-weight: 500;
  text-align: center;
  margin: 0;
  opacity: 0.9;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.qt-question {
  color: rgb(255, 255, 255);
  font-size: 48px;
  font-weight: 600;
  text-align: center;
  margin: 0;
  word-break: break-word;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  padding: 0 10px;
  margin-top: 20px;
}

.qt-choices-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-gap: 16px;
  gap: 16px;
  width: 100%;
  max-width: 1000px;
  padding: 0 10px;
  box-sizing: border-box;
}

.qt-tf-container {
  grid-template-columns: repeat(2, 1fr);
  max-width: 600px;
}

.qt-choice {
  background: rgba(255, 255, 255, 0.9);
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  border-radius: 12px;
  padding: 20px 24px;
  font-size: 18px;
  font-weight: 500;
  text-align: center;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transform: scale(1);
  word-break: break-word;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.qt-choice:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12), 0 4px 8px rgba(0, 0, 0, 0.08);
  background: rgba(255, 255, 255, 1);
}

.qt-choice-selected {
  background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
  transform: scale(1.03);
  box-shadow: 0 8px 32px rgba(252, 182, 159, 0.4);
  border: 2px solid rgba(252, 182, 159, 0.6);
}

.qt-choice-correct {
  background: linear-gradient(135deg, #48bb78 0%, #38a169 100%) !important;
  transform: scale(1.03);
  box-shadow: 0 8px 32px rgba(72, 187, 120, 0.4);
  color: white !important;
  border: 2px solid rgba(72, 187, 120, 0.6) !important;
}

.qt-choice-wrong {
  background: linear-gradient(135deg, #f56565 0%, #e53e3e 100%) !important;
  transform: scale(1.03);
  box-shadow: 0 8px 32px rgba(245, 101, 101, 0.4);
  color: white !important;
  border: 2px solid rgba(245, 101, 101, 0.6) !important;
}

.qt-choice-hidden {
  opacity: 0;
  transform: scale(0.8);
  pointer-events: none;
}

.qt-choice-faded {
  opacity: 0.4;
  transform: scale(0.95);
  pointer-events: none;
}

.qt-tf-choice {
  font-size: 28px;
  font-weight: 600;
}

/* Identification Styles */
.qt-identification-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  width: 100%;
  max-width: 600px;
}

.qt-identification-input {
  width: 100%;
  padding: 20px;
  font-size: 18px;
  border-radius: 15px;
  border: 3px solid white;
  background: rgba(255, 255, 255, 0.95);
  text-align: center;
  outline: none;
  transition: all 0.3s ease;
}

.qt-identification-input:focus {
  border-color: #FFD700;
  box-shadow: 0 8px 24px rgba(255, 215, 0, 0.3);
}

.qt-input-correct {
  border-color: #4CAF50 !important;
  background: rgba(76, 175, 80, 0.1) !important;
}

.qt-input-wrong {
  border-color: #F44336 !important;
  background: rgba(244, 67, 54, 0.1) !important;
}

.qt-submit-btn {
  padding: 15px 40px;
  font-size: 18px;
  font-weight: 600;
  background: white;
  color: #333;
  border: none;
  border-radius: 15px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.qt-submit-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
}

.qt-submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Matching Styles */
.qt-matching-container {
  width: 100%;
  max-width: 800px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.qt-matching-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-gap: 30px;
  gap: 30px;
  background: rgba(255, 255, 255, 0.95);
  padding: 20px;
  border-radius: 20px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.qt-matching-column {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.qt-matching-header {
  font-size: 20px;
  font-weight: 600;
  color: #333;
  text-align: center;
  margin: 0 0 10px 0;
  padding-bottom: 10px;
  border-bottom: 2px solid #00E0E9;
}

.qt-matching-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  background: rgba(0, 224, 233, 0.1);
  border-radius: 10px;
}

.qt-matching-label {
  font-weight: 600;
  color: #333;
  min-width: 25px;
}

.qt-matching-text {
  flex: 1 1;
  font-size: 16px;
  color: #333;
}

.qt-matching-select {
  flex: 1 1;
  padding: 8px;
  border: 2px solid #ddd;
  border-radius: 8px;
  font-size: 16px;
  background: white;
  outline: none;
  transition: all 0.3s ease;
}

.qt-matching-select:focus {
  border-color: #00E0E9;
}

/* Enumeration Styles */
.qt-enumeration-container {
  width: 100%;
  max-width: 600px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.qt-enumeration-list {
  background: rgba(255, 255, 255, 0.95);
  padding: 20px;
  border-radius: 20px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.qt-enumeration-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.qt-enum-number {
  font-weight: 600;
  color: #333;
  min-width: 25px;
  font-size: 18px;
}

.qt-enum-input {
  flex: 1 1;
  padding: 12px;
  font-size: 16px;
  border: 2px solid #ddd;
  border-radius: 10px;
  background: white;
  outline: none;
  transition: all 0.3s ease;
}

.qt-enum-input:focus {
  border-color: #00E0E9;
  box-shadow: 0 4px 12px rgba(0, 224, 233, 0.2);
}

/* Timer Styles */
.qt-timer-container {
  width: 100%;
  max-width: 800px;
  margin-top: 40px;
}

.qt-timer-slider {
  width: 100%;
  height: 25px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 13px;
  position: relative;
  overflow: hidden;
  -webkit-backdrop-filter: blur(20px);
          backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
}

.qt-timer-progress {
  height: 100%;
  background: linear-gradient(90deg, #FFB800 0%, #FFA000 100%);
  border-radius: 13px;
  transition: width 1s linear;
  position: relative;
  box-shadow: inset 0 1px 3px rgba(255, 255, 255, 0.3);
}

.qt-timer-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 24px;
  font-weight: 700;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  z-index: 10;
}

/* Score Styles */
.qt-score-container {
  margin-top: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.qt-score {
  color: rgb(255, 255, 255);
  font-size: 18px;
  font-weight: 500;
  margin: 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* Live Quiz Specific Styles */
.qt-live-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 95%;
  max-width: 1200px;
  padding: 0 10px;
  margin-bottom: 0;
  z-index: 10;
}

.qt-quiz-info {
  display: flex;
  gap: 15px;
  align-items: center;
}

.qt-pin {
  color: white;
  font-size: 16px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.2);
  padding: 8px 16px;
  border-radius: 20px;
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.qt-live-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  color: white;
  font-size: 14px;
  font-weight: 600;
  background: rgba(239, 68, 68, 0.9);
  padding: 6px 14px;
  border-radius: 20px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.qt-live-dot {
  width: 8px;
  height: 8px;
  background: white;
  border-radius: 50%;
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(1.2);
  }
}

.qt-progress-info {
  color: white;
  font-size: 14px;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.2);
  padding: 6px 14px;
  border-radius: 20px;
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Waiting/Results Screen */
.qt-waiting-next {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  padding: 40px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 20px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  max-width: 800px;
  width: 100%;
}

.qt-waiting-next h2 {
  color: #333;
  font-size: 32px;
  margin: 0;
}

.qt-waiting-message {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 18px;
  color: #6b7280;
}

.qt-pulse-dot {
  width: 12px;
  height: 12px;
  background: #00e0e9;
  border-radius: 50%;
  animation: pulse 1.5s ease-in-out infinite;
}

/* Results Summary */
.qt-results-summary {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.qt-correct-answer {
  padding: 16px;
  background: rgba(72, 187, 120, 0.1);
  border: 2px solid #48bb78;
  border-radius: 12px;
  color: #276749;
  font-size: 18px;
  font-weight: 600;
  text-align: center;
}

.qt-player-results {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.qt-result-item {
  padding: 12px 16px;
  background: #f3f4f6;
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 16px;
}

.qt-result-item.correct {
  background: rgba(72, 187, 120, 0.1);
  border-left: 4px solid #48bb78;
}

.qt-result-item.incorrect {
  background: rgba(245, 101, 101, 0.1);
  border-left: 4px solid #f56565;
}

.qt-leaderboard-sidebar {
  width: 280px !important;
  background-color: white;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 3px 5px rgba(0, 0, 0, 0.1);
  border: #CCCCCC solid 1px;
  position: fixed !important;
  right: 20px !important;
  left: auto !important;
  top: 200px !important;
  height: fit-content;
  max-height: calc(100vh - 220px);
  overflow-y: auto;
  z-index: 9999 !important;
  transform: none !important;
  margin-left: 0 !important;
}

.qt-leaderboard-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #5E5E5E;
  margin: 0 0 16px 0;
  padding-bottom: 10px;
  border-bottom: 2px solid #e5e7eb;
}

.qt-leaderboard-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.qt-leaderboard-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  background-color: #f3f4f6;
  border-radius: 8px;
  border: 1px solid #E5E7EB;
  transition: all 0.3s ease;
}

.qt-leaderboard-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.qt-leaderboard-item.current-player {
  background: linear-gradient(135deg, rgba(0, 224, 233, 0.1) 0%, rgba(68, 183, 184, 0.1) 100%);
  border: 2px solid #00E0E9;
}

.qt-player-rank {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #00E0E9, #44B7B8);
  color: white;
  border-radius: 50%;
  font-weight: 700;
  font-size: 0.875rem;
  flex-shrink: 0;
}

.qt-player-avatar {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 1.125rem;
  flex-shrink: 0;
}

.qt-player-info {
  flex: 1 1;
  min-width: 0;
}

.qt-player-name {
  font-weight: 600;
  color: #1f2937;
  font-size: 0.875rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.qt-player-score {
  font-size: 0.75rem;
  color: #00B8C4;
  font-weight: 600;
  margin-top: 2px;
}

.qt-leaderboard-empty {
  padding: 30px 15px;
  text-align: center;
  color: #6b7280;
  font-size: 0.875rem;
}

/* Responsive */
@media (max-width: 768px) {
  .qt-leaderboard-sidebar {
    display: none;
  }
}

/* Answer Feedback */
.qt-answer-feedback {
  margin-top: 20px;
  animation: slideIn 0.3s ease-out;
}

.qt-content-with-leaderboard {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

/* Main quiz area (left side) */
.qt-main-area {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

/* Responsive */
@media (max-width: 1200px) {
  .qt-content-with-leaderboard {
    flex-direction: column;
    align-items: center;
  }
  
  .qt-leaderboard-sidebar {
    width: 100%;
    max-width: 500px;
    position: relative;
    top: 0;
  }
}

@media (max-width: 768px) {
  .qt-leaderboard-sidebar {
    display: none;
  }
}

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

.qt-feedback {
  padding: 16px 32px;
  border-radius: 30px;
  font-size: 24px;
  font-weight: 700;
  text-align: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.qt-feedback-correct {
  background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
  color: white;
}

.qt-feedback-wrong {
  background: linear-gradient(135deg, #f56565 0%, #e53e3e 100%);
  color: white;
}

.qt-feedback-timeout {
  background: linear-gradient(135deg, #ed8936 0%, #dd6b20 100%);
  color: white;
}

/* Responsive Design */
@media (max-width: 768px) {
  .qt-question {
    font-size: 32px;
    margin-top: 50px;
  }

  .qt-choices-container {
    grid-template-columns: 1fr;
  }

  .qt-choice {
    min-height: 120px;
    font-size: 18px;
  }

  .qt-matching-columns {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .quiz-main-content {
    margin-left: 0;
    width: 100%;
    margin-top: 70px;
  }

  .quiz-main-content.collapsed {
    margin-left: 0;
    width: 100%;
  }

  .qt-identification-container,
  .qt-enumeration-container,
  .qt-matching-container {
    max-width: 100%;
    padding: 0 10px;
  }

  .qt-identification-input {
    font-size: 16px;
    padding: 15px;
  }

  .qt-submit-btn {
    font-size: 16px;
    padding: 12px 30px;
  }

  .qt-leaderboard-sidebar {
    display: none;
  }

  .qt-live-header {
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
  }
}
/* Profile Picture Styles */
.profile-picture-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 15px;
    border: 2px solid #dee2e6;
}

.profile-picture-container {
    position: relative;
    width: 120px;
    height: 120px;
    margin-bottom: 1rem;
}

.profile-picture {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.profile-picture-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    cursor: pointer;
}

.profile-picture-container:hover .profile-picture-overlay {
    opacity: 1;
}

.profile-picture-edit-btn {
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.profile-picture-edit-btn:hover {
    transform: scale(1.1);
}

.profile-picture-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    max-width: 300px;
}

.selected-file {
    font-size: 0.9rem;
    color: #6c757d;
    text-align: center;
    word-break: break-all;
    margin-bottom: 0.5rem;
}

.upload-btn, .cancel-btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 80px;
}

.upload-btn {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
}

.upload-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #218838 0%, #1ea085 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

.upload-btn:disabled {
    background: #6c757d;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.cancel-btn {
    background: linear-gradient(135deg, #dc3545 0%, #e74c3c 100%);
    color: white;
    margin-left: 0.5rem;
}

.cancel-btn:hover {
    background: linear-gradient(135deg, #c82333 0%, #dc2626 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

/* Profile Information Styles */
.profile-info-container {
  background: white;
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.profile-info-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #eaeaea;
}

.profile-info-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: #333;
}

.profile-edit-button {
  background: linear-gradient(135deg, #37dae0 0%, #42f8ff 100%);
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.profile-edit-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(55, 218, 224, 0.3);
}

.profile-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  grid-gap: 1.5rem;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.profile-field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.profile-field-full {
  grid-column: 1 / -1;
}

.profile-field-label {
  font-weight: 600;
  color: #333;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.profile-field-label svg {
  color: #37dae0;
  font-size: 0.8rem;
}

.profile-field-value {
  padding: 0.75rem;
  background: #f8f9fa;
  border-radius: 6px;
  color: #555;
  font-size: 0.95rem;
  min-height: 1.2rem;
  display: flex;
  align-items: center;
}

.profile-input {
  padding: 0.75rem;
  border: 2px solid #e1e5e9;
  border-radius: 6px;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  background: white;
}

.profile-input:focus {
  outline: none;
  border-color: #37dae0;
  box-shadow: 0 0 0 3px rgba(55, 218, 224, 0.1);
}

.profile-textarea {
  padding: 0.75rem;
  border: 2px solid #e1e5e9;
  border-radius: 6px;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  background: white;
  resize: vertical;
  min-height: 80px;
  font-family: inherit;
}

.profile-textarea:focus {
  outline: none;
  border-color: #37dae0;
  box-shadow: 0 0 0 3px rgba(55, 218, 224, 0.1);
}

.profile-actions {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
  padding-top: 1rem;
  border-top: 1px solid #eaeaea;
}

.profile-save-button {
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.profile-save-button:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

.profile-save-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.profile-cancel-button {
  background: linear-gradient(135deg, #6c757d 0%, #5a6268 100%);
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.profile-cancel-button:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(108, 117, 125, 0.3);
}

.profile-cancel-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Responsive Design for Profile Section */
@media (max-width: 768px) {
  .profile-info-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .profile-info-header {
    flex-direction: column;
    gap: 1rem;
    align-items: stretch;
  }
  
  .profile-actions {
    flex-direction: column;
  }
}

/* Common Settings Styles */
.settings-container {
  max-width: 1000px;
  margin: 2rem auto;
  padding: 2rem;
  margin-top:-2rem;
  background-color: white;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  animation: fadeIn 0.5s ease-out;
}

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

.settings-header {
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #f0f0f0;
  text-align: center; /* Center the header text */
}

.settings-title {
  font-size: 2rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 0.5rem;
  position: relative;
  display: inline-block;
}

.settings-title::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 40px;
  height: 3px;
  background: linear-gradient(90deg, #37dae0 0%, #42f8ff 100%);
  transition: width 0.3s ease;
}

.admin-settings-title::after {
  background: linear-gradient(90deg, #FF9090 0%, #FF7070 100%);
}

.settings-title:hover::after {
  width: 100%;
}

.settings-description {
  color: #666;
  font-size: 1rem;
}

.settings-section {
  margin-bottom: 2.5rem;
  background: #f9f9f9;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.settings-section:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.settings-section-title {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: #333;
  display: flex;
  align-items: center;
}

.settings-section-title svg {
  margin-right: 10px;
  color: #37dae0;
}

.admin-settings-section-title svg {
  color: #FF9090;
}

.settings-option {
  display: flex;
  align-items: center; /* Changed from flex-start to center for better alignment */
  justify-content: space-between;
  padding: 1.2rem 0;
  border-bottom: 1px solid #eaeaea;
  transition: background-color 0.2s ease;
}

.settings-option:hover {
  background-color: rgba(55, 218, 224, 0.05);
}

.admin-settings-option:hover {
  background-color: rgba(255, 144, 144, 0.05);
}

.settings-option:last-child {
  border-bottom: none;
}

.option-label {
  font-weight: 600;
  color: #333;
  font-size: 1.1rem;
  display: flex; /* Added for better alignment with tooltip */
  align-items: center; /* Added for better alignment with tooltip */
}

.option-description {
  font-size: 0.9rem;
  color: #666;
  margin-top: 0.5rem;
  max-width: 90%; /* Increased from 70% for better text display */
}

.option-controls {
  display: flex;
  align-items: center;
}

/* Toggle Switch */
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 30px;
  margin-left: 10px; /* Added for spacing */
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider,
.admin-toggle-slider { /* Added admin-toggle-slider class */
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: .4s;
  border-radius: 30px;
}

.toggle-slider:before,
.admin-toggle-slider:before {
  position: absolute;
  content: "";
  height: 22px;
  width: 22px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

input:checked + .toggle-slider {
  background: linear-gradient(90deg, #37dae0 0%, #42f8ff 100%);
}

input:checked + .admin-toggle-slider {
  background: linear-gradient(90deg, #FF9090 0%, #FF7070 100%);
}

input:focus + .toggle-slider,
input:focus + .admin-toggle-slider {
  box-shadow: 0 0 1px #37dae0;
}

input:checked + .toggle-slider:before,
input:checked + .admin-toggle-slider:before {
  transform: translateX(30px);
}

/* Radio Buttons */
.radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 1rem;
  align-items: center; /* Added for better alignment */
}

.radio-option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  position: relative;
  cursor: pointer;
}

.radio-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.radio-checkmark {
  position: relative;
  height: 20px;
  width: 20px;
  background-color: #eee;
  border-radius: 50%;
  display: inline-block;
  transition: all 0.3s ease;
}

.user-radio-option:hover .radio-checkmark {
  background-color: #d9f6f7;
}

.admin-radio-option:hover .radio-checkmark {
  background-color: #ffe5e5;
}

.user-radio-option input:checked ~ .radio-checkmark {
  background: linear-gradient(90deg, #37dae0 0%, #42f8ff 100%);
}

.admin-radio-option input:checked ~ .radio-checkmark {
  background: linear-gradient(90deg, #FF9090 0%, #FF7070 100%);
}

.radio-checkmark:after {
  content: "";
  position: absolute;
  display: none;
  top: 6px;
  left: 6px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: white;
}

input:checked ~ .radio-checkmark:after {
  display: block;
}

.radio-label {
  font-size: 0.95rem;
  color: #444;
  display: flex; /* Added for better alignment with icon */
  align-items: center; /* Added for better alignment with icon */
}

.radio-label svg {
  margin-right: 5px; /* Added spacing between icon and text */
}

/* Button Styles */
.settings-button {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 120px;
}

.user-connect-button {
  background: linear-gradient(90deg, #37dae0 0%, #42f8ff 100%);
  color: white;
  margin-top: 7rem;
  margin-right: 2rem;
  box-shadow: 0 4px 10px rgba(55, 218, 224, 0.3);
}

.user-connect-button:hover {
  background: linear-gradient(90deg, #37dae0 0%, #42f8ff 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(55, 218, 224, 0.4);
}

.admin-connect-button {
  background: linear-gradient(90deg, #FF9090 0%, #FF7070 100%);
  color: white;
  box-shadow: 0 4px 10px rgba(255, 144, 144, 0.3);
}

.admin-connect-button:hover {
  background: linear-gradient(90deg, #FF9090 0%, #FF7070 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(255, 144, 144, 0.4);
}

.settings-save-button {
  margin: 2rem auto 0; /* Changed to center the button */
  width: 50%; /* Changed from 100% to 50% for better appearance */
  padding: 1rem;
  font-size: 1.1rem;
  position: relative;
  overflow: hidden;
  display: block; /* Added to center the button */
}

.settings-save-button::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.2);
  transition: all 0.6s ease;
}

.settings-save-button:hover::after {
  left: 100%;
}

/* Input Styles */
.settings-input {
  padding: 0.75rem 1rem;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  width: 100%;
  max-width: 300px;
}

.user-settings-input:focus {
  outline: none;
  border-color: #37dae0;
  box-shadow: 0 0 0 2px rgba(55, 218, 224, 0.2);
}

.admin-settings-input:focus {
  outline: none;
  border-color: #FF9090;
  box-shadow: 0 0 0 2px rgba(255, 144, 144, 0.2);
}

/* Responsive layout */
@media (max-width: 768px) {
  .settings-option {
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start; /* Added for better mobile alignment */
  }
  
  .option-description {
    max-width: 100%;
  }
  
  .radio-group {
    flex-direction: column;
    gap: 0.75rem;
    width: 100%; /* Added for full width on mobile */
  }
  
  .settings-save-button {
    width: 100%; /* Full width on mobile */
  }
}

/* Animation for section transitions */
@keyframes slideIn {
  from { transform: translateX(-20px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

.settings-section {
  animation: slideIn 0.4s ease-out;
  animation-fill-mode: both;
}

.settings-section:nth-child(2) { animation-delay: 0.1s; }
.settings-section:nth-child(3) { animation-delay: 0.2s; }
.settings-section:nth-child(4) { animation-delay: 0.3s; }
.settings-section:nth-child(5) { animation-delay: 0.4s; }

/* Tooltip styles */
.settings-tooltip {
  position: relative;
  display: inline-block;
  margin-left: 8px;
  color: #999;
  cursor: help; /* Added to indicate it's interactive */
}

.settings-tooltip:hover .tooltip-text {
  visibility: visible;
  opacity: 1;
}

/* Google profile styling */
.google-profile-info {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 10px;
  padding: 15px;
  background-color: #f8f9fa;
  border-radius: 8px;
  width: 100%;
}

.google-profile-content {
  display: flex;
  align-items: center;
  max-width: 400px;
  width: 100%;
}

.google-profile-picture {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  margin-right: 15px;
  object-fit: cover;
  border: 2px solid #e0e0e0;
}

.google-profile-picture-fallback {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  margin-right: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #e0e0e0;
  color: #666;
  font-size: 24px;
  border: 2px solid #e0e0e0;
}

.google-profile-details {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.google-profile-details p {
  margin: 0;
  padding: 0;
  transform: translateY(0);
}

.google-profile-details p:first-child {
  font-size: 16px;
  color: #333;
  margin-bottom: 3px;
}

.google-profile-details p:last-child {
  font-size: 14px;
  color: #666;
}

.tooltip-text {
  visibility: hidden;
  width: 200px;
  background-color: #333;
  color: #fff;
  text-align: center;
  border-radius: 6px;
  padding: 8px;
  position: absolute;
  z-index: 1;
  bottom: 125%;
  left: 50%;
  margin-left: -100px;
  opacity: 0;
  transition: opacity 0.3s, transform 0.3s;
  transform: translateY(10px);
  font-size: 0.8rem;
  font-weight: normal;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.tooltip-text::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: #333 transparent transparent transparent;
}



/* Animation for saving button */
@keyframes saving {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.saving {
  background-size: 200% 200%;
  animation: saving 1s ease infinite;
}

/* Verification Section Styles */
.verification-section {
  margin-top: 1rem;
  padding: 1.5rem;
  background-color: #f9fafb;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
}

.verification-button {
  margin-top: 1rem;
  padding: 0.75rem 1.5rem;
  margin-top: 50px;
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.verification-button:hover:not(:disabled) {
  background: linear-gradient(135deg, #218838 0%, #1ea085 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

.verification-button:disabled {
  background: #6c757d;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Phone Input Group */
.phone-input-group {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
  align-items: center;
}

.phone-number-input {
  flex: 1 1;
  padding: 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 0.95rem;
  transition: border-color 0.2s;
}

.phone-number-input:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Verification Input Group */
.verification-input-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1rem;
  align-items: flex-start;
}

.verification-code-input {
  flex: 1 1;
  min-width: 150px;
  max-width: 200px;
  padding: 0.75rem;
  border: 2px solid #e1e5e9;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-align: center;
  transition: all 0.3s ease;
  background: white;
}

.verification-code-input:focus {
  outline: none;
  border-color: #37dae0;
  box-shadow: 0 0 0 3px rgba(55, 218, 224, 0.1);
}

.verification-button {
  padding: 0.75rem 1.5rem;
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.verification-button:hover:not(:disabled) {
  background: linear-gradient(135deg, #218838 0%, #1ea085 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

.verification-button:disabled {
  background: #6c757d;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.resend-button {
  padding: 0.75rem 1.5rem;
  background: linear-gradient(135deg, #37dae0 0%, #42f8ff 100%);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.resend-button:hover:not(:disabled) {
  background: linear-gradient(135deg, #2bc5cc 0%, #37dae0 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(55, 218, 224, 0.3);
}

.resend-button:disabled {
  background: #6c757d;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Verification Status Icons */
.radio-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}


@media (max-width: 768px) {
  .phone-input-group,
  .verification-input-group {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }

  .verification-code-input {
    width: 100%;
    max-width: none;
  }

  .verification-button,
  .resend-button {
    width: 100%;
    margin-top: 0.5rem;
  }
}

/*# sourceMappingURL=main.2f677ed7.css.map*/