/* Unified Modern CSS - Admin Panel & Survey Forms 2025 */
@charset "UTF-8";

/* ================================================
   PART 1: GLOBAL VARIABLES & SHARED STYLES
   ================================================ */

/* CSS Variables for Modern Theme */
:root {
  /* Modern Color Palette */
  --primary: #6366f1;
  --primary-dark: #4f46e5;
  --primary-light: #818cf8;
  --secondary: #64748b;
  --success: #10b981;
  --info: #06b6d4;
  --warning: #f59e0b;
  --danger: #ef4444;
  --light: #f8fafc;
  --dark: #1e293b;
  
  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --gradient-success: linear-gradient(135deg, #84fab0 0%, #8fd3f4 100%);
  --gradient-info: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
  --gradient-dark: linear-gradient(135deg, #434343 0%, #000000 100%);
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  --shadow-glow: 0 0 20px rgba(99, 102, 241, 0.3);
  
  /* Borders & Radius */
  --border-radius: 12px;
  --border-radius-lg: 16px;
  --border-radius-xl: 24px;
  --border-color: #e5e7eb;
  
  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 200ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 300ms cubic-bezier(0.4, 0, 0.2, 1);
  
  /* Typography */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', Monaco, monospace;
}

/* Import Inter Font */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* Global Styles */
* {
  box-sizing: border-box;
}

body {
  font-family: var(--font-primary);
  background: #f1f5f9;
  color: #334155;
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ================================================
   PART 2: ADMIN PANEL STYLES
   ================================================ */

/* Admin Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  color: var(--dark);
  line-height: 1.2;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: all var(--transition-base);
}

a:hover {
  color: var(--primary-dark);
}

/* Admin Buttons */
.btn {
  padding: 10px 20px;
  font-weight: 600;
  font-size: 14px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
  text-transform: none;
  letter-spacing: normal;
}

.btn:before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn:active:before {
  width: 300px;
  height: 300px;
}

.btn-primary {
  background: var(--gradient-primary);
  color: white;
  box-shadow: 0 4px 15px 0 rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px 0 rgba(99, 102, 241, 0.4);
}

.btn-success {
  background: var(--gradient-success);
  color: var(--dark);
  box-shadow: 0 4px 15px 0 rgba(16, 185, 129, 0.3);
}

.btn-danger {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  color: white;
  box-shadow: 0 4px 15px 0 rgba(239, 68, 68, 0.3);
}

.btn-info {
  background: var(--gradient-info);
  color: var(--dark);
  box-shadow: 0 4px 15px 0 rgba(6, 182, 212, 0.3);
}

.btn-round {
  border-radius: 50px;
}

.btn-icon {
  width: 42px;
  height: 42px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
}

.btn-lg {
  padding: 14px 28px;
  font-size: 16px;
}

.btn-sm {
  padding: 6px 16px;
  font-size: 13px;
}

/* Admin Cards */
.card {
  background: white;
  border-radius: var(--border-radius-lg);
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
  transition: all var(--transition-base);
  overflow: hidden;
}

.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.card-header {
  background: transparent;
  border-bottom: 1px solid var(--border-color);
  padding: 20px 24px;
  font-weight: 600;
  font-size: 16px;
  color: var(--dark);
}

.card-body {
  padding: 24px;
}

.card-footer {
  background: #f8fafc;
  border-top: 1px solid var(--border-color);
  padding: 16px 24px;
}

/* Admin Sidebar */
.main-sidebar {
  width: 280px;
  background: white;
  box-shadow: var(--shadow-md);
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  z-index: 1000;
  transition: all var(--transition-base);
  border-right: 1px solid var(--border-color);
}

.sidebar-brand {
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--border-color);
  font-weight: 800;
  font-size: 20px;
  background: var(--gradient-primary);
  color: white;
}

.sidebar-menu {
  padding: 20px 0;
  margin: 0;
  list-style: none;
}

.sidebar-menu li {
  margin: 4px 12px;
}

.sidebar-menu li.menu-header {
  padding: 0 16px;
  margin: 20px 12px 8px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #94a3b8;
}

.sidebar-menu li a {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  color: #64748b;
  border-radius: 12px;
  transition: all var(--transition-base);
  font-weight: 500;
  position: relative;
  overflow: hidden;
}

.sidebar-menu li a:hover {
  background: #f1f5f9;
  color: var(--primary);
  transform: translateX(4px);
}

.sidebar-menu li.active > a {
  background: var(--gradient-primary);
  color: white;
  box-shadow: var(--shadow-md);
}

.sidebar-menu li a i {
  width: 20px;
  margin-right: 12px;
  font-size: 18px;
}

.sidebar-menu li a .badge {
  margin-left: auto;
  background: var(--danger);
  color: white;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 700;
}

/* Dropdown Menu */
.sidebar-menu li ul.dropdown-menu {
  padding: 8px 0 8px 20px;
  margin: 0;
  list-style: none;
  display: none;
}

.sidebar-menu li.active ul.dropdown-menu {
  display: block;
}

.sidebar-menu li ul.dropdown-menu li a {
  padding: 8px 16px;
  font-size: 13px;
  color: #94a3b8;
}

.sidebar-menu li ul.dropdown-menu li a:hover {
  color: var(--primary);
  background: transparent;
}

/* Admin Navbar */
.navbar {
  height: 70px;
  background: white;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  padding: 0 24px;
  position: fixed;
  top: 0;
  left: 280px;
  right: 0;
  z-index: 999;
  border-bottom: 1px solid var(--border-color);
}

.navbar-bg {
  display: none;
}

.navbar .form-inline {
  margin-right: auto;
}

.navbar .form-control {
  background: #f1f5f9;
  border: 2px solid transparent;
  border-radius: 10px;
  padding: 8px 16px;
  font-size: 14px;
  transition: all var(--transition-base);
  width: 300px;
}

.navbar .form-control:focus {
  background: white;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.navbar .nav-link {
  color: #64748b;
  padding: 8px 12px;
  border-radius: 10px;
  transition: all var(--transition-base);
}

.navbar .nav-link:hover {
  background: #f1f5f9;
  color: var(--primary);
}

.navbar .nav-link-user img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 8px;
  border: 2px solid var(--primary);
}

/* Main Content */
.main-content {
  margin-left: 280px;
  padding: 90px 24px 24px;
  min-height: 100vh;
  background: #f1f5f9;
}

/* Admin Forms */
.form-control {
  background: white;
  border: 2px solid #e5e7eb;
  border-radius: 10px;
  padding: 10px 16px;
  font-size: 14px;
  transition: all var(--transition-base);
  width: 100%;
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
  outline: none;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--dark);
  font-size: 14px;
}

/* Modern Select2 */
.select2-container--default .select2-selection--single {
  background: white;
  border: 2px solid #e5e7eb;
  border-radius: 10px;
  height: 42px;
  padding: 4px 12px;
}

.select2-container--default .select2-selection--single:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

/* Admin Tables */
.table {
  background: white;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.table thead th {
  background: #f8fafc;
  border: none;
  padding: 16px;
  font-weight: 600;
  color: var(--dark);
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.5px;
}

.table tbody td {
  padding: 16px;
  border-top: 1px solid #f1f5f9;
  vertical-align: middle;
}

.table tbody tr:hover {
  background: #f8fafc;
}

/* Admin Badges */
.badge {
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.badge-success {
  background: #d1fae5;
  color: #065f46;
}

.badge-danger {
  background: #fee2e2;
  color: #991b1b;
}

.badge-warning {
  background: #fef3c7;
  color: #92400e;
}

.badge-info {
  background: #dbeafe;
  color: #1e40af;
}

.badge-primary {
  background: #e0e7ff;
  color: #3730a3;
}

/* Admin Alerts */
.alert {
  padding: 16px 20px;
  border-radius: var(--border-radius);
  border: none;
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 500;
}

.alert-success {
  background: #d1fae5;
  color: #065f46;
}

.alert-danger {
  background: #fee2e2;
  color: #991b1b;
}

.alert-warning {
  background: #fef3c7;
  color: #92400e;
}

.alert-info {
  background: #dbeafe;
  color: #1e40af;
}

/* Admin Dropdowns */
.dropdown-menu {
  border: none;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-lg);
  padding: 8px;
  min-width: 200px;
}

.dropdown-item {
  padding: 8px 16px;
  border-radius: 8px;
  color: #475569;
  font-weight: 500;
  transition: all var(--transition-base);
}

.dropdown-item:hover {
  background: #f1f5f9;
  color: var(--primary);
}

.dropdown-item.active {
  background: var(--primary);
  color: white;
}

/* Admin Pagination */
.page-link {
  border: none;
  background: white;
  color: #64748b;
  padding: 8px 16px;
  margin: 0 4px;
  border-radius: 8px;
  font-weight: 500;
  transition: all var(--transition-base);
}

.page-link:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-2px);
}

.page-item.active .page-link {
  background: var(--primary);
  color: white;
  box-shadow: var(--shadow-md);
}

/* Admin Modal */
.modal-content {
  border: none;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
}

.modal-header {
  background: var(--gradient-primary);
  color: white;
  padding: 20px 24px;
  border: none;
}

.modal-body {
  padding: 24px;
}

.modal-footer {
  background: #f8fafc;
  padding: 16px 24px;
  border: none;
}

/* Stats Cards */
.card-statistic-1,
.card-statistic-2 {
  background: white;
  border-radius: var(--border-radius-lg);
  padding: 24px;
  position: relative;
  overflow: hidden;
  border: none;
  box-shadow: var(--shadow-md);
}

.card-statistic-1 .card-icon,
.card-statistic-2 .card-icon {
  width: 60px;
  height: 60px;
  background: var(--gradient-primary);
  border-radius: var(--border-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 24px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-md);
}

.card-statistic-1 h4,
.card-statistic-2 h4 {
  font-size: 14px;
  color: #94a3b8;
  font-weight: 600;
  margin-bottom: 8px;
}

.card-statistic-1 .card-body,
.card-statistic-2 .card-body {
  font-size: 28px;
  font-weight: 700;
  color: var(--dark);
  padding: 0;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Loading States */
.card-progress:after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
}

/* ================================================
   PART 3: SURVEY FORM STYLES
   ================================================ */

/* Survey Form Background */
body.survey-page {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
  position: relative;
}

body.survey-page::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    radial-gradient(circle at 20% 50%, rgba(120, 85, 255, 0.2) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(236, 72, 153, 0.2) 0%, transparent 50%),
    radial-gradient(circle at 40% 20%, rgba(59, 130, 246, 0.2) 0%, transparent 50%);
  z-index: -1;
}

/* Survey Container */
.survey-container,
.survey-page .container,
.survey-page .form-container {
  max-width: 800px;
  margin: 40px auto;
  padding: 0 20px;
  animation: fadeInUp 0.6s ease-out;
}

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

/* Survey Form Card */
.survey-page .form-card,
.survey-page .survey-form,
.survey-page form {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  border-radius: var(--border-radius-xl);
  padding: 48px;
  box-shadow: 
    0 30px 60px -12px rgba(50, 50, 93, 0.25),
    0 18px 36px -18px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.18);
  position: relative;
  overflow: hidden;
}

.survey-page .form-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.1) 0%, transparent 70%);
  animation: rotate 30s linear infinite;
}

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

/* Survey Form Header */
.survey-page .form-header,
.survey-page .survey-header,
.survey-page h1,
.survey-page h2 {
  font-size: 32px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 12px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.survey-page .form-description,
.survey-page .survey-description,
.survey-page .lead {
  color: var(--text-secondary);
  font-size: 18px;
  text-align: center;
  margin-bottom: 40px;
  font-weight: 400;
  position: relative;
  z-index: 1;
}

/* Survey Form Groups */
.survey-page .form-group,
.survey-page .question-group,
.survey-page .field-wrapper {
  margin-bottom: 28px;
  position: relative;
  z-index: 1;
}

/* Survey Labels */
.survey-page label,
.survey-page .form-label,
.survey-page .question-label {
  display: block;
  font-weight: 600;
  font-size: 15px;
  color: var(--text-primary);
  margin-bottom: 10px;
  transition: var(--transition);
}

.survey-page .required,
.survey-page .required-mark {
  color: var(--danger);
  font-weight: 700;
  margin-left: 4px;
}

/* Survey Input Fields */
.survey-page input[type="text"],
.survey-page input[type="email"],
.survey-page input[type="tel"],
.survey-page input[type="number"],
.survey-page input[type="password"],
.survey-page input[type="url"],
.survey-page input[type="date"],
.survey-page textarea,
.survey-page select {
  width: 100%;
  padding: 14px 20px;
  font-size: 16px;
  font-weight: 500;
  border: 2px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  background: var(--bg-secondary);
  color: var(--text-primary);
  transition: var(--transition);
  font-family: inherit;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

.survey-page input:hover,
.survey-page textarea:hover,
.survey-page select:hover {
  border-color: var(--primary-light);
  background: var(--bg-primary);
}

.survey-page input:focus,
.survey-page textarea:focus,
.survey-page select:focus {
  outline: none;
  border-color: var(--primary);
  background: var(--bg-primary);
  box-shadow: 
    0 0 0 4px rgba(99, 102, 241, 0.1),
    var(--shadow-md);
  transform: translateY(-2px);
}

/* Survey Textarea */
.survey-page textarea {
  min-height: 120px;
  resize: vertical;
}

/* Survey Select Dropdown */
.survey-page select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%236366f1'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 20px;
  padding-right: 48px;
}

/* Survey Radio & Checkbox Container */
.survey-page .radio-group,
.survey-page .checkbox-group,
.survey-page .options-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Survey Modern Radio & Checkbox */
.survey-page .radio-wrapper,
.survey-page .checkbox-wrapper,
.survey-page .option-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  padding: 16px 20px;
  background: #f8fafc;
  border: 2px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  cursor: pointer;
  transition: var(--transition);
}

.survey-page .radio-wrapper:hover,
.survey-page .checkbox-wrapper:hover {
  background: white;
  border-color: var(--primary-light);
  transform: translateX(4px);
  box-shadow: var(--shadow-md);
}

.survey-page input[type="radio"],
.survey-page input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

/* Survey Custom Radio */
.survey-page .radio-custom,
.survey-page .checkbox-custom {
  width: 22px;
  height: 22px;
  border: 2px solid var(--border-color);
  border-radius: 50%;
  margin-right: 12px;
  position: relative;
  transition: var(--transition);
  flex-shrink: 0;
}

.survey-page .checkbox-custom {
  border-radius: 6px;
}

.survey-page .radio-wrapper input:checked ~ .radio-custom,
.survey-page .checkbox-wrapper input:checked ~ .checkbox-custom {
  background: var(--primary);
  border-color: var(--primary);
}

.survey-page .radio-custom::after {
  content: '';
  position: absolute;
  width: 8px;
  height: 8px;
  background: white;
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  transition: var(--transition);
}

.survey-page .checkbox-custom::after {
  content: '✓';
  position: absolute;
  color: white;
  font-size: 14px;
  font-weight: 700;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
}

.survey-page .radio-wrapper input:checked ~ .radio-custom::after,
.survey-page .checkbox-wrapper input:checked ~ .checkbox-custom::after {
  transform: translate(-50%, -50%) scale(1);
}

.survey-page .radio-wrapper input:checked,
.survey-page .checkbox-wrapper input:checked {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(139, 92, 246, 0.05) 100%);
  border-color: var(--primary);
}

/* Survey Option Label */
.survey-page .option-label {
  font-weight: 500;
  color: var(--text-primary);
  flex: 1;
}

/* Survey Submit Button */
.survey-page button[type="submit"],
.survey-page .submit-button,
.survey-page .btn-submit {
  width: 100%;
  padding: 16px 32px;
  font-size: 18px;
  font-weight: 700;
  color: white;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  border: none;
  border-radius: var(--border-radius-sm);
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  margin-top: 32px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.survey-page button[type="submit"]:hover {
  transform: translateY(-3px);
  box-shadow: 
    0 20px 40px -12px rgba(99, 102, 241, 0.35),
    var(--shadow-xl);
}

.survey-page button[type="submit"]:active {
  transform: translateY(-1px);
}

.survey-page button[type="submit"]::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.survey-page button[type="submit"]:active::before {
  width: 300px;
  height: 300px;
}

/* Survey Progress Bar */
.survey-page .progress-bar,
.survey-page .form-progress {
  height: 6px;
  background: #e2e8f0;
  border-radius: 3px;
  margin-bottom: 32px;
  overflow: hidden;
  position: relative;
}

.survey-page .progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
  border-radius: 3px;
  transition: width 0.4s ease;
  position: relative;
  overflow: hidden;
}

.survey-page .progress-fill::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* Survey Error Messages */
.survey-page .error-message,
.survey-page .invalid-feedback {
  color: var(--danger);
  font-size: 14px;
  margin-top: 6px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
}

.survey-page .error-message::before {
  content: '⚠';
  font-size: 16px;
}

/* Survey Success State */
.survey-page .success-message {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(34, 197, 94, 0.1) 100%);
  border: 2px solid var(--success);
  border-radius: var(--border-radius-sm);
  padding: 20px;
  text-align: center;
  color: var(--success);
  font-weight: 600;
  margin-top: 24px;
}

/* Survey Loading State */
.survey-page .loading {
  position: relative;
  pointer-events: none;
  opacity: 0.6;
}

.survey-page .loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 24px;
  height: 24px;
  border: 3px solid var(--primary-light);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  transform: translate(-50%, -50%);
}

@keyframes spin {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* ================================================
   PART 4: RESPONSIVE DESIGN
   ================================================ */

/* Admin Panel Responsive */
@media (max-width: 1024px) {
  .main-sidebar {
    transform: translateX(-100%);
  }
  
  body.sidebar-show .main-sidebar {
    transform: translateX(0);
  }
  
  .navbar {
    left: 0;
  }
  
  .main-content {
    margin-left: 0;
  }
}

@media (max-width: 768px) {
  .card {
    margin-bottom: 16px;
  }
  
  .main-content {
    padding: 80px 16px 16px;
  }
  
  .navbar .form-control {
    width: 200px;
  }
}

/* Survey Form Responsive */
@media (max-width: 768px) {
  .survey-page .form-card {
    padding: 32px 20px;
  }
  
  .survey-page .form-header {
    font-size: 24px;
  }
  
  .survey-page .form-description {
    font-size: 16px;
  }
  
  .survey-page input,
  .survey-page textarea,
  .survey-page select {
    font-size: 16px;
    padding: 12px 16px;
  }
  
  .survey-page button[type="submit"] {
    font-size: 16px;
    padding: 14px 24px;
  }
}

@media (max-width: 480px) {
  .survey-page .survey-container {
    margin: 20px auto;
  }
  
  .survey-page .form-card {
    border-radius: var(--border-radius-lg);
  }
}

/* ================================================
   PART 5: DARK MODE SUPPORT
   ================================================ */

@media (prefers-color-scheme: dark) {
  body {
    background: #0f172a;
    color: #e2e8f0;
  }
  
  .card,
  .main-sidebar,
  .navbar,
  .modal-content {
    background: #1e293b;
    color: #e2e8f0;
  }
  
  .form-control,
  .select2-container--default .select2-selection--single {
    background: #334155;
    border-color: #475569;
    color: #e2e8f0;
  }
  
  .table {
    background: #1e293b;
  }
  
  .table thead th {
    background: #334155;
    color: #e2e8f0;
  }
  
  .dropdown-menu {
    background: #334155;
  }
  
  .dropdown-item {
    color: #e2e8f0;
  }
  
  .dropdown-item:hover {
    background: #475569;
  }
  
  /* Survey Dark Mode */
  .survey-page {
    --bg-primary: #1e293b;
    --bg-secondary: #334155;
    --bg-tertiary: #475569;
    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    --border-color: #475569;
  }
  
  body.survey-page {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
  }
  
  .survey-page .form-card {
    background: rgba(30, 41, 59, 0.95);
    box-shadow: 
      0 30px 60px -12px rgba(0, 0, 0, 0.5),
      0 18px 36px -18px rgba(0, 0, 0, 0.6);
  }
  
  .survey-page input,
  .survey-page textarea,
  .survey-page select {
    background: var(--bg-secondary);
    color: var(--text-primary);
  }
  
  .survey-page .radio-wrapper,
  .survey-page .checkbox-wrapper {
    background: var(--bg-secondary);
  }
}

/* ================================================
   PART 6: UTILITY CLASSES
   ================================================ */

.shadow-sm { box-shadow: var(--shadow-sm) !important; }
.shadow-md { box-shadow: var(--shadow-md) !important; }
.shadow-lg { box-shadow: var(--shadow-lg) !important; }
.shadow-xl { box-shadow: var(--shadow-xl) !important; }
.shadow-none { box-shadow: none !important; }

.rounded { border-radius: var(--border-radius) !important; }
.rounded-lg { border-radius: var(--border-radius-lg) !important; }
.rounded-xl { border-radius: var(--border-radius-xl) !important; }
.rounded-full { border-radius: 9999px !important; }

.gradient-primary { background: var(--gradient-primary) !important; }
.gradient-success { background: var(--gradient-success) !important; }
.gradient-info { background: var(--gradient-info) !important; }
.gradient-dark { background: var(--gradient-dark) !important; }

.hover-scale:hover { transform: scale(1.05); }
.hover-shadow:hover { box-shadow: var(--shadow-lg); }

/* ================================================
   PART 7: RTL SUPPORT
   ================================================ */

[dir="rtl"] .sidebar-menu li a i {
  margin-right: 0;
  margin-left: 12px;
}

[dir="rtl"] .main-sidebar {
  right: 0;
  left: auto;
  border-right: none;
  border-left: 1px solid var(--border-color);
}

[dir="rtl"] .navbar {
  right: 280px;
  left: 0;
}

[dir="rtl"] .main-content {
  margin-right: 0;
  margin-left: 0;
}

[dir="rtl"] .survey-page input,
[dir="rtl"] .survey-page textarea,
[dir="rtl"] .survey-page select {
  text-align: right;
  direction: rtl;
}

[dir="rtl"] .survey-page .radio-custom,
[dir="rtl"] .survey-page .checkbox-custom {
  margin-right: 0;
  margin-left: 12px;
}

[dir="rtl"] .survey-page select {
  background-position: left 16px center;
  padding-left: 48px;
  padding-right: 20px;
}
/**/
.app-logo {
  width: 100%;
  max-width: 230px;
}