/**
 * Healthcare Vignette Generator
 * Modern styling enhancement - purely visual changes
 */

/* Keep existing functionality - only enhance visuals */
:root {
  /* Modern color palette */
  --primary: #722ed1;        /* Purple brand color from interface-4-modular */
  --primary-light: #f9f0ff;
  --primary-dark: #5b25a7;
  
  /* Accent colors */
  --accent-blue: #1890ff;
  --accent-green: #52c41a;
  --accent-orange: #fa8c16;
  
  /* Neutrals - keep consistent with existing styles */
  --text-dark: #333333;
  --text-medium: #555555;
  --text-light: #666666;
  --text-muted: #888888;
}

/* ========================================
   1. Enhanced Cards & UI Elements
   ======================================== */

/* Enhanced card appearance */
.bg-gray-50, .vignette-card {
  border-radius: 8px;
  transition: all 0.2s ease;
}

.bg-gray-50:hover, .vignette-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Improved icons and status indicators */
.w-12.h-12.rounded-lg {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

/* Enhance form controls */
.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 0.2rem rgba(114, 46, 209, 0.25);
}

/* Enhanced buttons */
.bg-purple-600, .btn-primary {
  background-color: var(--primary);
  transition: all 0.2s ease;
}

.bg-purple-600:hover, .btn-primary:hover {
  background-color: var(--primary-dark);
}

.btn {
  border-radius: 6px;
  transition: all 0.2s ease;
}

/* Filter buttons/chips */
.px-4.py-2.rounded-full {
  transition: all 0.2s ease;
}

.bg-purple-100.text-purple-700 {
  background-color: var(--primary-light);
  color: var(--primary);
}

/* ========================================
   2. Accordion Enhancement
   ======================================== */

.accordion-item {
  margin-bottom: 10px;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  overflow: hidden;
  background-color: white;
}

.accordion-header {
  position: relative;
  padding: 15px;
  background-color: #f8f9fa;
  cursor: pointer;
  transition: all 0.2s ease;
}

.accordion-header:hover {
  background-color: var(--primary-light);
}

.accordion-header.active {
  background-color: var(--primary-light);
  color: var(--primary);
}

.accordion-content {
  box-sizing: border-box;
}

/* ========================================
   3. Form & Tab Styling
   ======================================== */

.form-container {
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.tab-btn {
  padding: 10px 15px;
  background-color: #f0f0f0;
  border-radius: 8px 8px 0 0;
  transition: all 0.2s ease;
}

.tab-btn.active {
  background-color: white;
  color: var(--primary);
}

.tab-btn i {
  margin-right: 5px;
}

.form-title-section {
  border-bottom: 1px solid #eee;
}

/* ========================================
   4. AI Form Enhancements
   ======================================== */

.example-card {
  background-color: #D1C4E9;
  border-radius: 20px;
  padding: 10px;
  margin: 10px;
  border: 1px solid #eee;
  transition: all 0.2s ease;
  cursor: pointer;
}

.example-card:hover {
  transform: translateY(-5px);
  background-color: #9575CD;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.example-card.selected {
  background-color: #9575CD;
  border-color: var(--primary);
}

/* Loading overlay enhancement */
.loading-container {
  background-color: white;
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.spinner {
  border-top-color: var(--primary);
}

/* ========================================
   5. Library Page Enhancements
   ======================================== */

/* Search bar styling */
.w-full.pl-10.pr-4.py-3.rounded-md {
  transition: all 0.2s ease;
}

.w-full.pl-10.pr-4.py-3.rounded-md:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 0.2rem rgba(114, 46, 209, 0.25);
}

/* ========================================
   6. Navigation Styling
   ======================================== */

.text-gray-600.hover\:text-purple-700 {
  position: relative;
  transition: all 0.2s ease;
}

.text-gray-600.hover\:text-purple-700.active {
  color: var(--primary) !important;
}

.text-gray-600.hover\:text-purple-700.active::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--primary);
}

/* Enhanced Modal Styles - Add to your unify_style.css */

/* Add this to your unify_style.css or style.css */
/* This makes modals always center properly without JavaScript hacks */

.modal-overlay {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  background: rgba(17, 24, 39, 0.5) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  z-index: 99999 !important;
  padding: 20px !important;
  box-sizing: border-box !important;
}