/* Glassy Evaluation Form CSS */
:root {
  /* Vibrant Color Palette */
  --primary: #4361ee;
  --primary-light: rgba(67, 97, 238, 0.2);
  --primary-dark: #3a56d4;
  --secondary: #3f37c9;
  --accent: #4895ef;
  --success: #4cc9f0;
  --danger: #f72585;
  --warning: #f8961e;
  --info: #560bad;
  --light: rgba(255, 255, 255, 0.9);
  --dark: #212529;
  --text: #2b2d42;
  
  /* Glass Effect Variables */
  --glass-blur: 12px;
  --glass-border: 1px solid rgba(255, 255, 255, 0.2);
  --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
  
  /* Gradients */
  --primary-gradient: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  --glass-gradient: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.4) 0%,
    rgba(255, 255, 255, 0.1) 100%
  );
  
  /* Typography */
  --font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  --font-size-base: 1rem;
  --font-size-lg: 1.25rem;
  --font-size-xl: 1.5rem;
  --font-size-xxl: 2rem;
  
  /* Spacing */
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-xxl: 3rem;
  
  /* Borders */
  --border-radius-sm: 0.5rem;
  --border-radius-md: 1rem;
  --border-radius-lg: 1.5rem;
  
  /* Transitions */
  --transition-fast: all 0.15s ease;
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  --transition-slow: all 0.5s ease;
  
  /* Z-index */
  --z-index-base: 1;
  --z-index-dropdown: 100;
  --z-index-sticky: 200;
  --z-index-fixed: 300;
  --z-index-modal: 400;
}

/* Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  color: var(--text);
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  min-height: 100vh;
  padding: var(--space-xl);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Glass Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--space-xl);
  background: var(--glass-gradient);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border-radius: var(--border-radius-lg);
  border: var(--glass-border);
  box-shadow: var(--glass-shadow);
  position: relative;
  overflow: hidden;
  z-index: var(--z-index-base);
}

.container::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 70%);
  z-index: -1;
}

/* Headings */
h2 {
  font-size: var(--font-size-xxl);
  margin-bottom: var(--space-xl);
  color: var(--primary-dark);
  text-shadow: 0 2px 4px rgba(0,0,0,0.1);
  position: relative;
  display: inline-block;
}

h2::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 60px;
  height: 4px;
  background: var(--primary-gradient);
  border-radius: 2px;
}

h4 {
  font-size: var(--font-size-lg);
  margin-bottom: var(--space-md);
  color: var(--secondary);
}

/* Cards */
.card {
  background: rgba(255, 255, 255, 0.7);
  border-radius: var(--border-radius-md);
  border: var(--glass-border);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: var(--glass-shadow);
  margin-bottom: var(--space-lg);
  overflow: hidden;
  transition: var(--transition);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px 0 rgba(31, 38, 135, 0.25);
}

.card-header {

  color: white;
  padding: var(--space-md) var(--space-lg);
  font-weight: 600;
  border-bottom: none;
}

.card-body {
  padding: var(--space-lg);
}

/* Form Elements */
.form-label {
  font-weight: 500;
  margin-bottom: var(--space-sm);
  display: block;
  color: var(--text);
}

.form-control {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: var(--border-radius-sm);
  padding: 0.75rem var(--space-md);
  font-size: var(--font-size-base);
  transition: var(--transition);
  width: 100%;
  backdrop-filter: blur(4px);
}

.form-control:focus {
  background: rgba(255, 255, 255, 0.95);
  border-color: var(--primary);
  box-shadow: 0 0 0 0.25rem rgba(67, 97, 238, 0.25);
  outline: none;
}

textarea.form-control {
  min-height: 120px;
  resize: vertical;
}

/* Checkboxes and Radios */
.form-check {
  margin-bottom: var(--space-sm);
}

.form-check-input {
  width: 1.2em;
  height: 1.2em;
  margin-top: 0.2em;
  margin-right: var(--space-sm);
  background-color: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(0, 0, 0, 0.1);
  transition: var(--transition-fast);
}

.form-check-input:checked {
  background-color: var(--primary);
  border-color: var(--primary);
}

.form-check-input:focus {
  box-shadow: 0 0 0 0.25rem rgba(67, 97, 238, 0.25);
}

.form-check-label {
  user-select: none;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-size: var(--font-size-base);
  font-weight: 500;
  line-height: 1.5;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  vertical-align: middle;
  cursor: pointer;
  user-select: none;
  border: none;
  border-radius: var(--border-radius-sm);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  z-index: var(--z-index-base);
  margin-right: var(--space-sm);
  margin-bottom: var(--space-sm);
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background: rgba(255, 255, 255, 0.2);
  transition: var(--transition);
  z-index: -1;
}

.btn:hover::before {
  width: 100%;
}

.btn-primary {
  background: var(--primary-gradient);
  color: white;
  box-shadow: 0 4px 15px rgba(67, 97, 238, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(67, 97, 238, 0.4);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.8);
  color: var(--primary);
  border: 1px solid var(--primary-light);
}

.btn-secondary:hover {
  background: white;
  color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Alerts */
.alert {
  padding: var(--space-md);
  margin-bottom: var(--space-lg);
  border-radius: var(--border-radius-sm);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: var(--glass-border);
}

.alert::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 100%;
}

.alert-success {
  background: rgba(76, 201, 240, 0.2);
  color: #0d6832;
}

.alert-success::before {
  background: var(--success);
}

.alert-danger {
  background: rgba(247, 37, 133, 0.15);
  color: #721c24;
}

.alert-danger::before {
  background: var(--danger);
}

.alert-info {
  background: rgba(86, 11, 173, 0.1);
  color: var(--info);
}

.alert-info::before {
  background: var(--info);
}

/* Debug Info */
pre {
  background: rgba(0, 0, 0, 0.05);
  padding: var(--space-md);
  border-radius: var(--border-radius-sm);
  overflow-x: auto;
  font-size: 0.85rem;
  margin-top: var(--space-md);
}

/* Rating Stars */
.rating-stars {
  display: flex;
  gap: var(--space-sm);
  margin-top: var(--space-sm);
}

.rating-star {
  font-size: var(--space-xl);
  color: #ddd;
  cursor: pointer;
  transition: var(--transition-fast);
}

.rating-star:hover,
.rating-star.active {
  color: var(--warning);
  transform: scale(1.2);
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-in {
  animation: fadeIn 0.5s ease-out forwards;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.floating {
  animation: float 3s ease-in-out infinite;
}

/* Responsive Design */
@media (max-width: 768px) {
  body {
    padding: var(--space-md);
  }
  
  .container {
    padding: var(--space-lg);
  }
  
  .card-body {
    padding: var(--space-md);
  }
  
  .btn {
    width: 100%;
    margin-bottom: var(--space-md);
  }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.05);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-dark);
}

/* Floating Bubbles Background */
.bubble {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  z-index: -2;
  animation: float 15s infinite linear;
}

.bubble:nth-child(1) {
  width: 100px;
  height: 100px;
  top: 10%;
  left: 10%;
  animation-delay: 0s;
}

.bubble:nth-child(2) {
  width: 150px;
  height: 150px;
  top: 60%;
  left: 80%;
  animation-delay: 2s;
}

.bubble:nth-child(3) {
  width: 200px;
  height: 200px;
  top: 30%;
  left: 50%;
  animation-delay: 4s;
}

.bubble:nth-child(4) {
  width: 80px;
  height: 80px;
  top: 80%;
  left: 20%;
  animation-delay: 6s;
}

/* Add bubbles to the background */
body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 20% 30%, rgba(67, 97, 238, 0.1) 0%, transparent 50%),
              radial-gradient(circle at 80% 70%, rgba(247, 37, 133, 0.1) 0%, transparent 50%);
  z-index: -3;
}