/* ============================================
   GOVANNESTS HOLDINGS LLC - MAIN STYLESHEET
   Professional Dark Theme
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:wght@500;600;700&display=swap');

:root {
  /* Brand Colors - matches logo navy */
  --navy-900: #0f172a;
  --navy-800: #1e293b;
  --navy-700: #334155;
  --navy-600: #475569;
  --brand-primary: #1e3a5f;
  --brand-dark: #0d1b2a;
  
  /* Accent Colors */
  --gold-400: #d4a574;
  --gold-500: #c9956c;
  --emerald-400: #34d399;
  --emerald-500: #10b981;
  
  /* Neutrals */
  --slate-50: #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-300: #cbd5e1;
  --slate-400: #94a3b8;
  --slate-500: #64748b;
  
  /* Semantic */
  --error: #ef4444;
  --success: #22c55e;
  --warning: #f59e0b;
  
  /* Typography */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  
  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  
  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 400ms ease;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.1);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.15), 0 2px 4px -2px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.2), 0 4px 6px -4px rgba(0,0,0,0.15);
  --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.25), 0 8px 10px -6px rgba(0,0,0,0.15);
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background: var(--navy-900);
  color: var(--slate-200);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Background Pattern */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(ellipse at 20% 20%, rgba(30, 58, 95, 0.3) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 80%, rgba(30, 58, 95, 0.2) 0%, transparent 50%),
    linear-gradient(180deg, var(--navy-900) 0%, var(--brand-dark) 100%);
  pointer-events: none;
  z-index: -1;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
  color: var(--slate-50);
}

h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2.25rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.75rem); }

p { margin-bottom: var(--space-md); }

a {
  color: var(--gold-400);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--gold-500);
  text-decoration: underline;
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */
   
header {
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  padding: var(--space-md) var(--space-xl);
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-box {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.logo-box a {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  text-decoration: none;
}

.logo-img {
  height: 48px;
  width: auto;
  transition: transform var(--transition-base);
}

.logo-box:hover .logo-img {
  transform: scale(1.05);
}

.logo-text {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--slate-50);
  letter-spacing: -0.02em;
}

nav {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

nav a {
  color: var(--slate-300);
  padding: var(--space-sm) var(--space-md);
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all var(--transition-fast);
}

nav a:hover {
  color: var(--slate-50);
  background: rgba(255,255,255,0.05);
  text-decoration: none;
}

nav a.active {
  color: var(--gold-400);
  background: rgba(212, 165, 116, 0.1);
}

/* Mobile Menu */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--slate-200);
  cursor: pointer;
  padding: var(--space-sm);
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }
  
  nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--navy-800);
    flex-direction: column;
    padding: var(--space-md);
    gap: var(--space-xs);
    display: none;
    border-bottom: 1px solid rgba(255,255,255,0.05);
  }
  
  nav.open {
    display: flex;
  }
  
  nav a {
    width: 100%;
    text-align: center;
  }
}

/* ============================================
   MAIN CONTENT AREAS
   ============================================ */

main {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--space-2xl) var(--space-xl);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

section {
  margin-bottom: var(--space-3xl);
}

.section-header {
  margin-bottom: var(--space-xl);
  text-align: center;
}

.section-header h2 {
  margin-bottom: var(--space-sm);
}

.section-header p {
  color: var(--slate-400);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

/* ============================================
   CARDS & PANELS
   ============================================ */

.card {
  background: rgba(30, 41, 59, 0.5);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 12px;
  padding: var(--space-xl);
  backdrop-filter: blur(8px);
  transition: all var(--transition-base);
}

.card:hover {
  border-color: rgba(255,255,255,0.1);
  box-shadow: var(--shadow-lg);
}

.card-header {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.card-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--brand-primary), var(--navy-700));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-400);
}

/* ============================================
   FORMS
   ============================================ */

.form-group {
  margin-bottom: var(--space-lg);
}

label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--slate-300);
  margin-bottom: var(--space-sm);
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"],
textarea,
select {
  width: 100%;
  padding: var(--space-md);
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  color: var(--slate-100);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: all var(--transition-fast);
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--gold-400);
  box-shadow: 0 0 0 3px rgba(212, 165, 116, 0.15);
}

input::placeholder,
textarea::placeholder {
  color: var(--slate-500);
}

textarea {
  min-height: 120px;
  resize: vertical;
}

select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2'%3E%3Cpolyline points='6,9 12,15 18,9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 18px;
  padding-right: 40px;
}

/* Checkbox & Radio */
.checkbox-group,
.radio-group {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}

.checkbox-group input[type="checkbox"],
.radio-group input[type="radio"] {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  accent-color: var(--gold-400);
  cursor: pointer;
  flex-shrink: 0;
}

.checkbox-group label,
.radio-group label {
  margin-bottom: 0;
  cursor: pointer;
  font-size: 0.95rem;
  line-height: 1.5;
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-xl);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
}

.btn:hover {
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold-400), var(--gold-500));
  color: var(--navy-900);
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  color: var(--navy-900);
}

.btn-secondary {
  background: rgba(255,255,255,0.05);
  color: var(--slate-200);
  border: 1px solid rgba(255,255,255,0.1);
}

.btn-secondary:hover {
  background: rgba(255,255,255,0.1);
  color: var(--slate-50);
}

.btn-ghost {
  background: transparent;
  color: var(--gold-400);
}

.btn-ghost:hover {
  background: rgba(212, 165, 116, 0.1);
}

.btn-full {
  width: 100%;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* ============================================
   LOGIN & REGISTRATION PAGES
   ============================================ */

.auth-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-xl);
}

.auth-box {
  width: 100%;
  max-width: 480px;
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 16px;
  padding: var(--space-2xl);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-xl);
}

.auth-logo {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.auth-logo img {
  height: 72px;
  margin-bottom: var(--space-md);
}

.auth-logo h1 {
  font-size: 1.5rem;
  margin-bottom: var(--space-xs);
}

.auth-logo p {
  color: var(--slate-400);
  font-size: 0.95rem;
}

.auth-form {
  margin-top: var(--space-xl);
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin: var(--space-xl) 0;
  color: var(--slate-500);
  font-size: 0.85rem;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255,255,255,0.1);
}

/* ============================================
   ALERTS & MESSAGES
   ============================================ */

.alert {
  padding: var(--space-md) var(--space-lg);
  border-radius: 8px;
  margin-bottom: var(--space-lg);
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
}

.alert-error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #fca5a5;
}

.alert-success {
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: #86efac;
}

.alert-warning {
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: #fcd34d;
}

.alert-info {
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.3);
  color: #93c5fd;
}

/* ============================================
   WELCOME BANNER
   ============================================ */

.welcome-banner {
  background: linear-gradient(135deg, var(--brand-primary), var(--navy-700));
  border-radius: 12px;
  padding: var(--space-xl);
  margin-bottom: var(--space-xl);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-lg);
}

.welcome-banner h2 {
  font-size: 1.5rem;
  margin-bottom: var(--space-xs);
}

.welcome-banner p {
  color: var(--slate-300);
  margin: 0;
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
  text-align: center;
  padding: var(--space-3xl) 0;
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  margin-bottom: var(--space-lg);
  background: linear-gradient(135deg, var(--slate-50), var(--gold-400));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 1.25rem;
  color: var(--slate-400);
  max-width: 700px;
  margin: 0 auto var(--space-xl);
}

/* ============================================
   GRID LAYOUTS
   ============================================ */

.grid {
  display: grid;
  gap: var(--space-lg);
}

.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }

/* ============================================
   CHAT WIDGET
   ============================================ */

.chat-widget {
  position: fixed;
  bottom: var(--space-xl);
  right: var(--space-xl);
  z-index: 1000;
}

.chat-toggle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-400), var(--gold-500));
  border: none;
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-base);
}

.chat-toggle:hover {
  transform: scale(1.1);
  box-shadow: var(--shadow-xl);
}

.chat-toggle svg {
  width: 28px;
  height: 28px;
  color: var(--navy-900);
}

.chat-panel {
  position: absolute;
  bottom: 80px;
  right: 0;
  width: 380px;
  max-height: 500px;
  background: var(--navy-800);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px;
  box-shadow: var(--shadow-xl);
  display: none;
  flex-direction: column;
  overflow: hidden;
}

.chat-panel.open {
  display: flex;
}

.chat-header {
  padding: var(--space-lg);
  background: var(--navy-900);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chat-header h3 {
  font-size: 1rem;
  font-family: var(--font-body);
  font-weight: 600;
}

.chat-close {
  background: none;
  border: none;
  color: var(--slate-400);
  cursor: pointer;
  padding: var(--space-xs);
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.chat-message {
  max-width: 85%;
  padding: var(--space-md);
  border-radius: 12px;
  font-size: 0.9rem;
}

.chat-message.bot {
  background: rgba(255,255,255,0.05);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}

.chat-message.user {
  background: var(--brand-primary);
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}

.chat-input {
  padding: var(--space-md);
  border-top: 1px solid rgba(255,255,255,0.05);
  display: flex;
  gap: var(--space-sm);
}

.chat-input input {
  flex: 1;
  padding: var(--space-sm) var(--space-md);
}

.chat-input button {
  padding: var(--space-sm) var(--space-md);
}

@media (max-width: 480px) {
  .chat-panel {
    width: calc(100vw - var(--space-xl) * 2);
    right: 0;
  }
}

/* ============================================
   ADMIN TABLE
   ============================================ */

.table-wrapper {
  overflow-x: auto;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.05);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

th, td {
  padding: var(--space-md);
  text-align: left;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

th {
  background: var(--navy-800);
  font-weight: 600;
  color: var(--slate-300);
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
}

tr:hover {
  background: rgba(255,255,255,0.02);
}

/* ============================================
   FOOTER
   ============================================ */

footer {
  background: var(--navy-800);
  border-top: 1px solid rgba(255,255,255,0.05);
  padding: var(--space-2xl) var(--space-xl);
  margin-top: var(--space-3xl);
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-lg);
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.footer-logo img {
  height: 40px;
}

.footer-links {
  display: flex;
  gap: var(--space-lg);
}

.footer-links a {
  color: var(--slate-400);
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--slate-200);
}

.footer-copyright {
  width: 100%;
  text-align: center;
  padding-top: var(--space-lg);
  margin-top: var(--space-lg);
  border-top: 1px solid rgba(255,255,255,0.05);
  color: var(--slate-500);
  font-size: 0.85rem;
}

/* ============================================
   UTILITIES
   ============================================ */

.text-center { text-align: center; }
.text-right { text-align: right; }
.text-gold { color: var(--gold-400); }
.text-muted { color: var(--slate-400); }
.text-small { font-size: 0.85rem; }

.mt-1 { margin-top: var(--space-sm); }
.mt-2 { margin-top: var(--space-md); }
.mt-3 { margin-top: var(--space-lg); }
.mt-4 { margin-top: var(--space-xl); }

.mb-1 { margin-bottom: var(--space-sm); }
.mb-2 { margin-bottom: var(--space-md); }
.mb-3 { margin-bottom: var(--space-lg); }
.mb-4 { margin-bottom: var(--space-xl); }

.hidden { display: none !important; }
.visible { display: block !important; }

/* Disabled section during MFA verification */
.disabled-section {
  opacity: 0.5;
  pointer-events: none;
  user-select: none;
}

.disabled-section input,
.disabled-section select,
.disabled-section textarea {
  background: rgba(255,255,255,0.02) !important;
  cursor: not-allowed;
}

/* Loading Spinner */
.spinner {
  width: 24px;
  height: 24px;
  border: 3px solid rgba(255,255,255,0.1);
  border-top-color: var(--gold-400);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

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

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