/* ============================================================================
   COLEMAN PEPTIDES — PREMIUM GLASS DASHBOARD
   Created: 2026-06-19
   
   Premium glass aesthetic with:
   - Flowing organic background (slate blue liquid ribbons)
   - Heavy iOS frosted blur cards
   - Natural ocean blues + muted red-orange accents
   - Sophisticated hover effects (lifts, rotations, colored shadows)
   - ADHD-optimized with quick-action shortcuts
   ============================================================================ */

:root {
  /* === PREMIUM PALETTE === */
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-400: #94a3b8;
  --slate-300: #cbd5e1;
  
  --ocean-600: #0891b2;
  --ocean-700: #0e7490;
  --ocean-800: #155e75;
  
  --red-600: #dc2626;
  --red-700: #b91c1c;
  --red-800: #991b1b;
  
  /* === GLASS SYSTEM === */
  --glass-blur: 50px;
  --glass-white: rgba(255, 255, 255, 0.18);
  --glass-border: rgba(255, 255, 255, 0.3);
  --glass-shadow-1: 0 8px 32px rgba(15, 23, 42, 0.12);
  --glass-shadow-2: 0 16px 64px rgba(15, 23, 42, 0.08);
  --glass-radius: 48px;
}

/* ============================================================================
   FLOWING ORGANIC BACKGROUND
   ============================================================================ */
body {
  background: var(--slate-700);
  position: relative;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  top: -10%;
  left: -10%;
  width: 120%;
  height: 120%;
  background: 
    radial-gradient(ellipse 800px 600px at 20% 30%, var(--ocean-700), transparent),
    radial-gradient(ellipse 600px 800px at 80% 70%, var(--slate-600), transparent),
    radial-gradient(ellipse 900px 500px at 50% 50%, var(--slate-800), transparent);
  opacity: 0.6;
  z-index: -1;
  animation: flow 20s ease-in-out infinite;
}

body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    linear-gradient(135deg, transparent 0%, rgba(8, 145, 178, 0.1) 50%, transparent 100%),
    linear-gradient(225deg, transparent 0%, rgba(71, 85, 105, 0.1) 50%, transparent 100%);
  z-index: -1;
  pointer-events: none;
}

@keyframes flow {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(3%, -5%) scale(1.05); }
  66% { transform: translate(-3%, 3%) scale(0.95); }
}

/* ============================================================================
   PREMIUM GLASS CARDS
   ============================================================================ */
.cc-panel,
.card,
.metric-card,
.dash-section,
.invoice-modal-dialog,
.thread-chat-overlay-dialog {
  background: var(--glass-white) !important;
  backdrop-filter: blur(var(--glass-blur)) !important;
  -webkit-backdrop-filter: blur(var(--glass-blur)) !important;
  border: 2.5px solid var(--glass-border) !important;
  border-radius: var(--glass-radius) !important;
  box-shadow: var(--glass-shadow-1), var(--glass-shadow-2) !important;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}

/* Hover lift effect */
.cc-panel:hover,
.card:hover,
.metric-card:hover {
  transform: translateY(-8px) rotate(0.5deg) !important;
  box-shadow: 
    0 12px 48px rgba(8, 145, 178, 0.2),
    0 24px 96px rgba(15, 23, 42, 0.15) !important;
}

/* ============================================================================
   PRACTICE PULSE QUICK ACTIONS
   ============================================================================ */
#practicePulseSection {
  position: relative;
}

#practicePulseSection::after {
  content: '';
  display: flex;
  gap: 12px;
  position: absolute;
  top: 24px;
  right: 24px;
  z-index: 10;
}

.quick-action-bar {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
  padding: 16px;
  background: var(--glass-white);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 2px solid var(--glass-border);
  border-radius: 32px;
}

.quick-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  color: white;
  background: linear-gradient(135deg, var(--ocean-600), var(--ocean-700));
  border: none;
  border-radius: 24px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 
    0 4px 16px rgba(8, 145, 178, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.quick-action-btn:hover {
  transform: translateY(-2px);
  box-shadow: 
    0 8px 24px rgba(8, 145, 178, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.quick-action-btn.danger {
  background: linear-gradient(135deg, var(--red-600), var(--red-700));
  box-shadow: 
    0 4px 16px rgba(220, 38, 38, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.quick-action-btn.danger:hover {
  box-shadow: 
    0 8px 24px rgba(220, 38, 38, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* ============================================================================
   TYPOGRAPHY HIERARCHY
   ============================================================================ */
h1, h2, h3, .metric-label {
  color: white !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 1px !important;
  text-shadow: 0 2px 8px rgba(15, 23, 42, 0.3) !important;
}

.metric-value,
.stat-number {
  color: white !important;
  font-weight: 300 !important;
  font-size: 2.5em !important;
  text-shadow: 0 2px 12px rgba(15, 23, 42, 0.4) !important;
}

p, .text-muted, .form-label {
  color: var(--slate-300) !important;
  font-weight: 400 !important;
}

/* ============================================================================
   SOPHISTICATED DEPTH & SHADOWS
   ============================================================================ */
.action-btn,
.inv-m-btn-gold,
button[type="submit"] {
  background: linear-gradient(135deg, var(--ocean-600), var(--ocean-700)) !important;
  border: none !important;
  border-radius: 16px !important;
  color: white !important;
  font-weight: 600 !important;
  padding: 12px 24px !important;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
  box-shadow: 
    0 4px 16px rgba(8, 145, 178, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
}

.action-btn:hover,
.inv-m-btn-gold:hover,
button[type="submit"]:hover {
  transform: translateY(-3px) !important;
  box-shadow: 
    0 8px 24px rgba(8, 145, 178, 0.35),
    0 4px 12px rgba(8, 145, 178, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
}

/* Danger buttons */
.action-btn--danger,
.delete-btn {
  background: linear-gradient(135deg, var(--red-600), var(--red-700)) !important;
  box-shadow: 
    0 4px 16px rgba(220, 38, 38, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
}

.action-btn--danger:hover,
.delete-btn:hover {
  box-shadow: 
    0 8px 24px rgba(220, 38, 38, 0.35),
    0 4px 12px rgba(220, 38, 38, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
}

/* ============================================================================
   FORM INPUTS
   ============================================================================ */
input[type="text"],
input[type="email"],
input[type="number"],
input[type="date"],
select,
textarea {
  background: rgba(255, 255, 255, 0.12) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  border: 1.5px solid var(--glass-border) !important;
  border-radius: 16px !important;
  color: white !important;
  padding: 12px 16px !important;
  transition: all 0.3s ease !important;
}

input:focus,
select:focus,
textarea:focus {
  background: rgba(255, 255, 255, 0.18) !important;
  border-color: var(--ocean-600) !important;
  box-shadow: 
    0 0 0 3px rgba(8, 145, 178, 0.15),
    0 4px 16px rgba(8, 145, 178, 0.2) !important;
  outline: none !important;
}

/* ============================================================================
   RESPONSIVE REFINEMENTS
   ============================================================================ */
@media (max-width: 768px) {
  :root {
    --glass-radius: 32px;
    --glass-blur: 40px;
  }
  
  .quick-action-bar {
    flex-direction: column;
  }
  
  .cc-panel:hover,
  .card:hover,
  .metric-card:hover {
    transform: translateY(-4px) !important;
  }
}

/* ============================================================================
   ACCESSIBILITY
   ============================================================================ */
*:focus-visible {
  outline: 3px solid var(--ocean-600) !important;
  outline-offset: 2px !important;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
