/* The AI Prompt Playbook™ - Complete Local CSS System */

/* Root Variables for consistent theming */
:root {
  --primary-blue: #3b82f6;
  --primary-purple: #a855f7;
  --primary-cyan: #06b6d4;
  --success-green: #10b981;
  --warning-yellow: #f59e0b;
  --danger-red: #ef4444;
  --dark-bg: #0f172a;
  --darker-bg: #020617;
  --glass-bg: rgba(255, 255, 255, 0.1);
  --glass-border: rgba(255, 255, 255, 0.2);
  --text-primary: #ffffff;
  --text-secondary: #e2e8f0;
  --text-muted: #94a3b8;
  --shadow-lg: none; /* Disable global shadow token */
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.7;
  color: var(--text-primary);
  font-weight: 500;
  background: linear-gradient(135deg, #0f172a 0%, #581c87 50%, #0f172a 100%);
  min-height: 100vh;
  position: relative;
  font-size: 16px;
}

/* Enhanced background with better contrast */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 25% 25%, rgba(34, 211, 238, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 75% 75%, rgba(168, 85, 247, 0.15) 0%, transparent 50%);
  pointer-events: none;
  z-index: -1;
}

/* Typography Enhancements */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-primary);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 0.5em;
  text-shadow: none;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1.125rem; }

p {
  color: var(--text-secondary);
  font-weight: 500;
  margin-bottom: 1em;
}

strong, b {
  font-weight: 700;
  color: var(--text-primary);
}

/* Layout Utilities */
.min-h-screen { min-height: 100vh; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-start { justify-content: flex-start; }
.justify-end { justify-content: flex-end; }
.space-x-2 > * + * { margin-left: 0.5rem; }
.space-x-4 > * + * { margin-left: 1rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }
.w-full { width: 100%; }
.max-w-md { max-width: 28rem; }
.max-w-7xl { max-width: 80rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mr-1 { margin-right: 0.25rem; }
.mr-2 { margin-right: 0.5rem; }
.mr-3 { margin-right: 0.75rem; }
.mr-4 { margin-right: 1rem; }
.px-2 { padding-left: 0.5rem; padding-right: 0.5rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.px-8 { padding-left: 2rem; padding-right: 2rem; }
.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.p-2 { padding: 0.5rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }

/* Grid System */
.grid { display: grid; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }

/* Text Utilities */
.text-left { text-align: left; }
.text-center { text-align: center; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

/* Color Utilities - Enhanced Visibility */
.text-white { color: #ffffff; font-weight: 600; text-shadow: none; }
.text-gray-300 { color: #d1d5db; font-weight: 500; }
.text-gray-400 { color: #1d2127; font-weight: 500; }
.text-gray-500 { color: #0b0c0f; font-weight: 500; }
.text-red-300 { color: #fca5a5; font-weight: 600; }
.text-red-400 { color: #f87171; font-weight: 600; }]
.text-green-300 { color: #86efac; font-weight: 600; }
.text-green-400 { color: #4ade80; font-weight: 600; }
.text-blue-300 { color: #93c5fd; font-weight: 600; }
.text-blue-400 { color: #60a5fa; font-weight: 600; }
.text-yellow-300 { color: #fde047; font-weight: 600; }
.text-yellow-400 { color: #facc15; font-weight: 600; }
.text-purple-300 { color: #d8b4fe; font-weight: 600; }
.text-purple-400 { color: #c084fc; font-weight: 600; }

/* Background Utilities */
.bg-white\/5 { background-color: rgba(255, 255, 255, 0.05); }
.bg-white\/10 { background-color: rgba(255, 255, 255, 0.1); }
.bg-red-500\/20 { background-color: rgba(239, 68, 68, 0.2); }
.bg-red-500\/30 { background-color: rgba(239, 68, 68, 0.3); }
.bg-green-500\/20 { background-color: rgba(16, 185, 129, 0.2); }
.bg-green-500\/30 { background-color: rgba(16, 185, 129, 0.3); }
.bg-blue-500\/20 { background-color: rgba(59, 130, 246, 0.2); }
.bg-blue-500\/30 { background-color: rgba(59, 130, 246, 0.3); }
.bg-yellow-500\/20 { background-color: rgba(245, 158, 11, 0.2); }
.bg-orange-500\/20 { background-color: rgba(249, 115, 22, 0.2); }
.bg-orange-500\/30 { background-color: rgba(249, 115, 22, 0.3); }
.bg-gray-500\/20 { background-color: rgba(107, 114, 128, 0.2); }
.bg-purple-500\/20 { background-color: rgba(168, 85, 247, 0.2); }

/* Border Utilities */
.border { border-width: 1px; }
.border-white\/10 { border-color: rgba(255, 255, 255, 0.1); }
.border-white\/20 { border-color: rgba(255, 255, 255, 0.2); }
.border-red-500\/30 { border-color: rgba(239, 68, 68, 0.3); }
.border-green-500\/30 { border-color: rgba(16, 185, 129, 0.3); }
.border-blue-500\/30 { border-color: rgba(59, 130, 246, 0.3); }
.border-yellow-500\/30 { border-color: rgba(245, 158, 11, 0.3); }
.border-orange-500\/30 { border-color: rgba(249, 115, 22, 0.3); }
.border-gray-500\/30 { border-color: rgba(107, 114, 128, 0.3); }
.border-b { border-bottom-width: 1px; }
.divide-y > * + * { border-top-width: 1px; }
.divide-white\/10 > * + * { border-top-color: rgba(255, 255, 255, 0.1); }

/* Border Radius */
.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-2xl { border-radius: 1rem; }
.rounded-full { border-radius: 9999px; }

/* Glassmorphism Effects */
.backdrop-blur-sm { backdrop-filter: blur(4px); }
.backdrop-blur-xl { backdrop-filter: blur(24px); }

/* Positioning */
.sticky { position: sticky; }
.top-0 { top: 0px; }
.z-50 { z-index: 50; }
.relative { position: relative; }
.inline-flex { display: inline-flex; }

/* Display */
.block { display: block; }
.inline { display: inline; }
.hidden { display: none; }

/* Overflow */
.overflow-hidden { overflow: hidden; }
.overflow-x-auto { overflow-x: auto; }

/* Flex Properties */
.flex-1 { flex: 1 1 0%; }

/* Transform */
.transform { transform: translateX(var(--tw-translate-x, 0)) translateY(var(--tw-translate-y, 0)) rotate(var(--tw-rotate, 0)) skewX(var(--tw-skew-x, 0)) skewY(var(--tw-skew-y, 0)) scaleX(var(--tw-scale-x, 1)) scaleY(var(--tw-scale-y, 1)); }
.hover\:scale-105:hover { --tw-scale-x: 1.05; --tw-scale-y: 1.05; }

/* Shadows */
.shadow-lg { box-shadow: none; }
.hover\:shadow-xl:hover { box-shadow: none; }

/* Transitions */
.transition-colors { transition-property: color, background-color, border-color, text-decoration-color, fill, stroke; }
.transition-all { transition-property: all; }
.duration-200 { transition-duration: 200ms; }
.ease { transition-timing-function: ease; }

/* Hover Effects */
.hover\:bg-white\/5:hover { background-color: rgba(255, 255, 255, 0.05); }
.hover\:bg-white\/10:hover { background-color: rgba(255, 255, 255, 0.1); }
.hover\:bg-red-500\/30:hover { background-color: rgba(239, 68, 68, 0.3); }
.hover\:bg-green-500\/30:hover { background-color: rgba(16, 185, 129, 0.3); }
.hover\:bg-blue-500\/30:hover { background-color: rgba(59, 130, 246, 0.3); }
.hover\:bg-orange-500\/30:hover { background-color: rgba(249, 115, 22, 0.3); }

/* Focus Effects */
.focus\:outline-none:focus { outline: 2px solid transparent; outline-offset: 2px; }
.focus\:ring-2:focus { --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width, 0px) var(--tw-ring-offset-color); --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width, 0px)) var(--tw-ring-color); box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000); }
.focus\:ring-cyan-400\/50:focus { --tw-ring-color: rgba(34, 211, 238, 0.5); }
.focus\:ring-blue-500:focus { --tw-ring-color: rgb(59, 130, 246); }
.focus\:border-cyan-400:focus { border-color: rgb(34, 211, 238); }
.focus\:border-transparent:focus { border-color: transparent; }

/* Resize */
.resize-y { resize: vertical; }

/* Responsive Design */
@media (max-width: 768px) {
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sm\:px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
  .lg\:px-8 { padding-left: 2rem; padding-right: 2rem; }
}

/* Component Styles */

/* Buttons - Enhanced Visibility */
.btn, button[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  background: #3b82f6 !important; /* Solid primary */
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  cursor: pointer;
  transition: all 0.3s ease;
  text-shadow: none !important;
  box-shadow: none !important;
}

.btn:hover, button[type="submit"]:hover {
  background: #2563eb !important; /* Slightly darker on hover */
}

/* Form Elements - Better Visibility */
input[type="text"],
input[type="email"], 
input[type="password"],
input[type="number"],
textarea,
select {
  width: 100%;
  padding: 0.875rem 1.125rem;
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  box-shadow: none !important;
}

input:focus,
textarea:focus,
select:focus {
  outline: 2px solid #3b82f6; /* clear, accessible focus */
  outline-offset: 2px;
  box-shadow: none !important; /* remove glow */
}

input::placeholder,
textarea::placeholder {
  color: #94a3b8;
  font-weight: 400;
}

/* Labels - Enhanced */
label {
  display: flex;
  align-items: center;
  font-weight: 600;
  color: #e2e8f0;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Tables - Better Text Visibility */
table {
  width: 100%;
  border-collapse: collapse;
  background: transparent;
}

th {
  background: rgba(255, 255, 255, 0.08);
  padding: 1rem 1.5rem;
  text-align: left;
  font-weight: 700;
  color: #ffffff;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 2px solid rgba(255, 255, 255, 0.1);
  text-shadow: none;
}

td {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  vertical-align: middle;
  font-weight: 500;
  color: #e2e8f0;
}

/* Status Badges - Enhanced */
.status-badge,
.inline-flex.items-center.px-3.py-1 {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 0.875rem;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: 1px solid;
  text-shadow: none;
}

/* Navigation Tabs - Enhanced */
.tab-btn {
  flex: 1;
  padding: 0.875rem 1.25rem;
  background: transparent;
  border: none;
  border-radius: 0.75rem;
  color: #94a3b8;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.tab-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #e2e8f0;
}

.tab-btn.active {
  background: var(--primary-gradient);
  color: white;
  font-weight: 700;
  box-shadow: none !important;
}

/* Tab Content */
.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
  animation: fadeIn 0.5s ease;
}

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

/* Cards - Enhanced Glassmorphism */
.card {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
  border: 2px solid rgba(255, 255, 255, 0.12);
  border-radius: 1rem;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: none !important;
}

/* Icons - Better Visibility */
i {
  color: inherit;
  font-weight: 600;
}

/* Gradient Backgrounds */
.bg-gradient-to-r {
  background-image: linear-gradient(to right, var(--tw-gradient-stops));
}

.from-cyan-500 {
  --tw-gradient-from: #06b6d4;
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(6, 182, 212, 0));
}

.to-purple-500 {
  --tw-gradient-to: #a855f7;
}

.from-cyan-600 {
  --tw-gradient-from: #0891b2;
}

.to-purple-600 {
  --tw-gradient-to: #9333ea;
}

.from-blue-500 {
  --tw-gradient-from: #3b82f6;
}

.to-purple-600 {
  --tw-gradient-to: #9333ea;
}

.from-blue-600 {
  --tw-gradient-from: #2563eb;
}

.to-purple-700 {
  --tw-gradient-to: #7c3aed;
}

/* Size Utilities */
.w-10 { width: 2.5rem; }
.w-12 { width: 3rem; }
.w-16 { width: 4rem; }
.h-10 { height: 2.5rem; }
.h-12 { height: 3rem; }
.h-16 { height: 4rem; }

/* Local Icon System - No CDN Required */
.icon {
  display: inline-block;
  width: 1em;
  height: 1em;
  font-style: normal;
  font-weight: normal;
  line-height: 1;
  text-align: center;
  vertical-align: middle;
}

/* Admin Icons */
.ri-admin-fill:before { content: '👨‍💼'; }
.ri-dashboard-fill:before { content: '📊'; }
.ri-logout-box-line:before { content: '🚪'; }
.ri-lock-fill:before { content: '🔒'; }
.ri-login-circle-line:before { content: '🔑'; }
.ri-check-circle-line:before { content: '✅'; }
.ri-error-warning-line:before { content: '⚠️'; }

/* User Management Icons */
.ri-user-settings-line:before { content: '⚙️'; }
.ri-user-settings-fill:before { content: '⚙️'; }
.ri-user-line:before { content: '👤'; }
.ri-user-3-line:before { content: '👥'; }
.ri-mail-add-line:before { content: '📧'; }
.ri-add-line:before { content: '➕'; }
.ri-shield-check-line:before { content: '🛡️'; }
.ri-calendar-line:before { content: '📅'; }
.ri-calendar-check-line:before { content: '📅'; }
.ri-time-line:before { content: '⏰'; }
.ri-history-line:before { content: '📜'; }
.ri-settings-line:before { content: '⚙️'; }

/* Status Icons */
.ri-error-warning-fill:before { content: '❌'; }
.ri-forbid-fill:before { content: '🚫'; }
.ri-pause-circle-fill:before { content: '⏸️'; }
.ri-alarm-warning-fill:before { content: '⚠️'; }
.ri-check-circle-fill:before { content: '✅'; }
.ri-question-mark:before { content: '❓'; }
.ri-close-circle-fill:before { content: '❌'; }

/* Action Icons */
.ri-refresh-line:before { content: '🔄'; }
.ri-pause-line:before { content: '⏸️'; }
.ri-delete-bin-line:before { content: '🗑️'; }
.ri-edit-line:before { content: '✏️'; }

/* Category Icons */
.ri-folder-line:before { content: '📁'; }
.ri-folder-add-line:before { content: '📁'; }
.ri-folder-2-line:before { content: '📂'; }
.ri-text:before { content: '📝'; }
.ri-file-text-line:before { content: '📄'; }
.ri-sort-asc:before { content: '🔼'; }
.ri-checkbox-circle-line:before { content: '☑️'; }
.ri-file-list-line:before { content: '📋'; }
.ri-add-circle-line:before { content: '➕'; }

/* Prompt Icons */
.ri-chat-ai-line:before { content: '🤖'; }

/* Request Icons */
.ri-mail-line:before { content: '📧'; }

/* Statistics Icons */
.ri-bar-chart-line:before { content: '📈'; }

/* Print Styles */
@media print {
  body {
    background: white !important;
    color: black !important;
  }
  
  .text-white { color: black !important; text-shadow: none !important; }
  .bg-white\/5, .bg-white\/10 { background-color: #f9f9f9 !important; }
}

.btn-secondary {
  background: var(--secondary-gradient);
}

.btn-success {
  background: linear-gradient(135deg, #059669 0%, #10b981 100%);
}

.btn-danger {
  background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.125rem;
}

/* Forms */
.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: flex;
  align-items: center;
  font-weight: 600;
  color: #cbd5e1;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
}

.form-group label i {
  margin-right: 0.5rem;
  color: #093a75;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
textarea,
select {
  width: 100%;
  padding: 0.75rem 1rem;
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  box-shadow: none !important;
}

input:focus,
textarea:focus,
select:focus {
  outline: 2px solid #3b82f6; /* clear, accessible focus */
  outline-offset: 2px;
  box-shadow: none !important; /* remove glow */
}

input::placeholder,
textarea::placeholder {
  color: #151516;
}

/* Tables */
.table {
  width: 100%;
  border-collapse: collapse;
  background: transparent;
}

.table th {
  background: rgba(255, 255, 255, 0.05);
  padding: 1rem;
  text-align: left;
  font-weight: 600;
  color: #cbd5e1;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.table td {
  padding: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  vertical-align: middle;
}

.table tr:hover {
  background: rgba(255, 255, 255, 0.05);
}

/* Status Badges */
.status-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.375rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.status-approved {
  background: rgba(34, 197, 94, 0.2);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.status-pending {
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.status-rejected {
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.status-reviewed {
  background: rgba(59, 130, 246, 0.2);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

/* Cards */
.card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1rem;
  padding: 2rem;
  margin-bottom: 2rem;
  transition: all 0.3s ease;
  box-shadow: none !important;
}

.card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
}

.card h2 {
  color: white;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
}

.card h2 i {
  margin-right: 0.75rem;
  color: #60a5fa;
}

/* Grid System */
.grid {
  display: grid;
  gap: 1.5rem;
}

.grid-cols-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-cols-3 {
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 768px) {
  .grid-cols-2,
  .grid-cols-3 {
    grid-template-columns: 1fr;
  }
}

/* Navigation Tabs */
.tab-nav {
  display: flex;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 1rem;
  padding: 0.5rem;
  margin-bottom: 2rem;
  gap: 0.5rem;
}

.tab-btn {
  flex: 1;
  padding: 0.75rem 1rem;
  background: transparent;
  border: none;
  border-radius: 0.5rem;
  color: #94a3b8;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.tab-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #e2e8f0;
}

.tab-btn.active {
  background: var(--primary-gradient);
  color: white;
  box-shadow: none !important;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

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

/* Prompt Content */
.prompt-content {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.5rem;
  padding: 1rem;
  margin-top: 0.5rem;
  font-family: 'Monaco', 'Menlo', monospace;
  white-space: pre-wrap;
  word-wrap: break-word;
  max-height: 200px;
  overflow-y: auto;
}

/* Alerts */
.alert {
  padding: 1rem 1.5rem;
  border-radius: 0.75rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  border: 1px solid;
}

.alert i {
  margin-right: 0.75rem;
  font-size: 1.25rem;
}

.alert-success {
  background: rgba(34, 197, 94, 0.2);
  color: #4ade80;
  border-color: rgba(34, 197, 94, 0.3);
}

.alert-error {
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
  border-color: rgba(239, 68, 68, 0.3);
}

.alert-warning {
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
  border-color: rgba(245, 158, 11, 0.3);
}

.alert-info {
  background: rgba(59, 130, 246, 0.2);
  color: #60a5fa;
  border-color: rgba(59, 130, 246, 0.3);
}

/* Loading States */
.loading {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.spinner {
  width: 1rem;
  height: 1rem;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: currentColor;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
  .container {
    padding: 0 1rem;
  }
  
  .card {
    padding: 1.5rem;
  }
}

@media (max-width: 768px) {
  .tab-nav {
    flex-direction: column;
  }
  
  .tab-btn {
    justify-content: flex-start;
  }
  
  .table {
    font-size: 0.875rem;
  }
  
  .table th,
  .table td {
    padding: 0.5rem;
  }
}

/* Dark Mode Enhancements */
@media (prefers-color-scheme: dark) {
  body {
    background: linear-gradient(135deg, #0c0a09 0%, #4c1d95 50%, #0c0a09 100%);
  }
}

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

/* Focus Visible for Better Accessibility */
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid #3b82f6;
  outline-offset: 2px;
}

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

::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.1);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* Animation Classes */
.fade-in {
  animation: fadeIn 0.5s ease;
}

.slide-in {
  animation: slideIn 0.5s ease;
}

@keyframes slideIn {
  from { transform: translateX(-20px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

.scale-in {
  animation: scaleIn 0.3s ease;
}

@keyframes scaleIn {
  from { transform: scale(0.95); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* Hover Effects */
.hover-lift {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
  transform: none !important;
  box-shadow: none !important;
}


/* Layout Utilities */
.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

.items-center {
  align-items: center;
}

.justify-center {
  justify-content: center;
}

.justify-between {
  justify-content: space-between;
}

.space-x-2 > * + * {
  margin-left: 0.5rem;
}

.space-x-4 > * + * {
  margin-left: 1rem;
}

.space-y-4 > * + * {
  margin-top: 1rem;
}

.space-y-6 > * + * {
  margin-top: 1.5rem;
}

/* Print Styles */
@media print {
  body {
    background: white;
    color: black;
  }
  
  .glass,
  .glass-card,
  .card {
    background: white;
    border: 1px solid #ccc;
    box-shadow: none;
    backdrop-filter: none;
  }
  
  .btn {
    background: #333;
    color: white;
  }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
  body {
    background: #000;
    color: #fff;
  }
  
  .card,
  .glass,
  .glass-card {
    background: #111;
    border-color: #333;
  }
  
  input,
  textarea,
  select {
    background: #222;
    border-color: #555;
    color: #fff;
  }
}

/* ==============================
   Admin Overrides: No shadows/glows, better contrast, flat buttons
   ============================== */

/* Remove text/box shadows and glow effects */
h1, h2, h3, h4, h5, h6,
.text-white,
.btn, button[type="submit"],
.status-badge,
.alert,
.tab-btn.active,
.card,
.table th,
.table td {
  text-shadow: none !important;
  box-shadow: none !important;
}

/* Flat, high-contrast buttons for admin */
.btn, button[type="submit"] {
  background: #3b82f6 !important; /* Solid primary */
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  box-shadow: none !important;
  text-shadow: none !important;
  transform: none !important;
}

.btn:hover, button[type="submit"]:hover {
  background: #2563eb !important; /* Slightly darker on hover */
}

.btn-success { background: #10b981 !important; border-color: rgba(255,255,255,0.12) !important; }
.btn-success:hover { background: #059669 !important; }

.btn-danger { background: #ef4444 !important; border-color: rgba(255,255,255,0.12) !important; }
.btn-danger:hover { background: #dc2626 !important; }

.btn-secondary { background: #64748b !important; border-color: rgba(255,255,255,0.12) !important; }
.btn-secondary:hover { background: #475569 !important; }

/* ==============================
   Admin Visibility Fixes (high-contrast text + inputs)
   ============================== */
/* Lighter grays for dark background */
.text-gray-400 { color: #cbd5e1 !important; }
.text-gray-500 { color: #94a3b8 !important; }

/* Improve default tab/link text contrast */
.tab-btn { color: #cbd5e1 !important; }

/* Labels readable on dark */
label { color: #e5e7eb !important; text-shadow: none !important; }

/* Inputs: dark surface + light text for contrast */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
textarea,
select {
  background: #0b1220 !important;   /* solid dark */
  color: #e5e7eb !important;        /* light text */
  border: 1px solid #334155 !important; /* slate border */
}

input::placeholder,
textarea::placeholder { color: #94a3b8 !important; }

/* Tables text contrast */
.table th, th { color: #ffffff !important; }
.table td, td { color: #e5e7eb !important; }

/* Admin: enforce dark cards so white text is visible across all sections */
.card { background: rgba(15, 23, 42, 0.7) !important; border-color: rgba(255, 255, 255, 0.12) !important; color: #e5e7eb !important; }
.card h1, .card h2, .card h3, .card h4, .card h5, .card h6 { color: #ffffff !important; }
.card p, .card strong, .card label, .card span { color: #e5e7eb !important; }

/* Admin tables inside dark cards */
.card table th { color: #ffffff !important; }
.card table td { color: #e5e7eb !important; }
