:root {
  --primary-color: #6366f1;
  --secondary-color: #8b5cf6;
  --accent-color: #06b6d4;
  --success-color: #10b981;
  --warning-color: #f59e0b;
  --light-gray: #f8fafc;
  --medium-gray: #e2e8f0;
  --dark-gray: #1e293b;
  --soft-blue: #e0f2fe;
  --soft-purple: #f3e8ff;
}

body {
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 50%, #e0f2fe 100%);
  min-height: 100vh;
  font-family: "Inter", "Segoe UI", system-ui, sans-serif;
  color: var(--dark-gray);
}

.main-container {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  border-radius: 24px;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.08);
  margin: 20px 0;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.header-section {
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  color: white;
  padding: 2.5rem;
  border-radius: 24px 24px 0 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.header-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="20" cy="20" r="1" fill="white" opacity="0.1"/><circle cx="80" cy="40" r="1" fill="white" opacity="0.1"/><circle cx="40" cy="80" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  opacity: 0.3;
}

.section-card {
  border: none;
  border-radius: 20px;
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.06);
  margin-bottom: 2rem;
  transition: all 0.3s ease;
  background: white;
  border: 1px solid var(--medium-gray);
}

.section-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.1);
  border-color: var(--primary-color);
}

.section-header {
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--accent-color)
  );
  color: white;
  padding: 1.5rem;
  border-radius: 20px 20px 0 0;
  margin: 0;
  font-weight: 600;
  font-size: 1.1rem;
}

.progress-indicator {
  height: 8px;
  background: linear-gradient(
    90deg,
    var(--success-color),
    var(--warning-color),
    var(--accent-color)
  );
  border-radius: 8px;
  margin: 1rem 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.btn-custom {
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  border: none;
  color: white;
  border-radius: 12px;
  padding: 0.75rem 1.5rem;
  font-weight: 500;
  transition: all 0.3s ease;
  font-size: 0.95rem;
}

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

.btn-save {
  background: linear-gradient(135deg, var(--success-color), #059669);
}

.btn-save:hover {
  box-shadow: 0 8px 25px rgba(16, 185, 129, 0.3);
}

.btn-load {
  background: linear-gradient(135deg, var(--warning-color), #d97706);
}

.btn-load:hover {
  box-shadow: 0 8px 25px rgba(245, 158, 11, 0.3);
}

.form-control,
.form-select {
  border-radius: 12px;
  border: 2px solid var(--medium-gray);
  transition: all 0.3s ease;
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  background: white;
}

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

/* Sidebar Styles */
.sidebar {
  background: linear-gradient(135deg, var(--soft-blue), var(--soft-purple));
  border-radius: 20px;
  margin: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
}

.nav-link {
  color: var(--dark-gray);
  border-radius: 12px;
  margin: 0.25rem 0;
  padding: 0.75rem 1rem;
  transition: all 0.3s ease;
  font-weight: 500;
  font-size: 0.9rem;
}

.nav-link:hover {
  background: rgba(99, 102, 241, 0.1);
  color: var(--primary-color);
  transform: translateX(4px);
}

.nav-link.active {
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  color: white;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

/* Button Enhancements */
.btn-outline-primary {
  border-color: var(--primary-color);
  color: var(--primary-color);
  border-radius: 10px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn-outline-primary:hover {
  background: var(--primary-color);
  border-color: var(--primary-color);
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.btn-outline-success {
  border-color: var(--success-color);
  color: var(--success-color);
  border-radius: 10px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn-outline-success:hover {
  background: var(--success-color);
  border-color: var(--success-color);
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}
.btn-outline-success:hover {
  background: var(--success-color);
  border-color: var(--success-color);
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

/* Progress Bar */
.progress {
  border-radius: 10px;
  background: var(--medium-gray);
}

.progress-bar {
  border-radius: 10px;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--accent-color)
  );
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  top: 2rem;
  right: 2rem;
  z-index: 1050;
}

/* Responsive Design */
@media (max-width: 768px) {
  .sidebar {
    margin: 0.5rem;
    border-radius: 15px;
  }

  .main-container {
    margin: 10px 0;
    border-radius: 20px;
  }

  .header-section {
    padding: 2rem 1rem;
    border-radius: 20px 20px 0 0;
  }
}

/* Additional Auth Styles */
.user-info {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-group .dropdown-menu {
  border-radius: 12px;
  border: none;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  padding: 0.5rem;
}

.dropdown-item {
  border-radius: 8px;
  margin: 0.125rem 0;
  padding: 0.5rem 0.75rem;
  transition: all 0.2s ease;
}

.dropdown-item:hover {
  background: var(--primary-color);
  color: white;
  transform: translateX(2px);
}

/* Header Text Improvements */
.header-section h1 {
  font-weight: 700;
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-section h2 {
  font-weight: 400;
  font-size: 1.5rem;
  opacity: 0.9;
  margin-bottom: 0.75rem;
}

.header-section p {
  opacity: 0.8;
  font-size: 1.1rem;
}

/* Section Cards Enhancement */
.incomplete-section {
  border-left: 4px solid var(--warning-color);
}

.complete-section {
  border-left: 4px solid var(--success-color);
}

/* Form Enhancements */
textarea.form-control {
  min-height: 120px;
  resize: vertical;
}

.form-label {
  font-weight: 600;
  color: var(--dark-gray);
  margin-bottom: 0.5rem;
}

.completed-section {
  border-left: 5px solid var(--success-color);
}

.incomplete-section {
  border-left: 5px solid var(--warning-color);
}

.sidebar {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-radius: 15px;
  position: sticky;
  top: 20px;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
}

.nav-link {
  color: var(--primary-color);
  border-radius: 10px;
  margin: 0.25rem 0;
  transition: all 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
  background: linear-gradient(
    135deg,
    var(--accent-color),
    var(--primary-color)
  );
  color: white;
}

.floating-save {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 1000;
}

.export-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  margin: 2rem 0;
}

@media (max-width: 768px) {
  .sidebar {
    position: static;
    margin-bottom: 2rem;
  }

  .floating-save {
    bottom: 20px;
    right: 20px;
  }
}

.loading-spinner {
  display: none;
}

.toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1100;
}
