/* RICKS EXECUTIVE HOSPITALITY GROUP™ • COMMAND CENTER 2.0
   CARBON™ | DIGITAL FOOTPRINT — Obsidian & Brushed Gold Theme */

:root {
  --cc-obsidian: #050811;
  --cc-panel: #0b1120;
  --cc-border: #1e293b;
  --cc-gold: #D4AF37;
  --cc-gold-deep: #b89225;
  --cc-cyan: #38BDF8;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background-color: #050811;
  color: #f8fafc;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

/* Custom Dark Scrollbars */
* {
  scrollbar-width: thin;
  scrollbar-color: #1e293b #050811;
}

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

*::-webkit-scrollbar-track {
  background: #050811;
}

*::-webkit-scrollbar-thumb {
  background-color: #1e293b;
  border-radius: 9999px;
  border: 2px solid #050811;
}

*::-webkit-scrollbar-thumb:hover {
  background-color: #334155;
}

/* Core Brand Utilities */
.gold-border {
  border-color: rgba(212, 175, 55, 0.55) !important;
}

.gold-text {
  color: #D4AF37 !important;
}

.gold-btn {
  background: linear-gradient(135deg, #D4AF37 0%, #b89225 100%);
  color: #050811 !important;
  font-weight: 700;
  border: 1px solid rgba(212, 175, 55, 0.75);
  border-radius: 0.5rem;
  transition: transform 0.12s ease, filter 0.15s ease, opacity 0.15s ease;
  cursor: pointer;
}

.gold-btn:hover:not(:disabled) {
  filter: brightness(1.07);
}

.gold-btn:active:not(:disabled) {
  transform: translateY(1px);
}

.gold-btn:disabled,
button:disabled {
  opacity: 0.55 !important;
  cursor: not-allowed !important;
}

.cc-card {
  background-color: #0b1120;
  border: 1px solid #1e293b;
  border-radius: 0.75rem;
  box-shadow: 0 10px 28px -12px rgba(0, 0, 0, 0.75);
}

.cc-input {
  background-color: #050811;
  border: 1px solid #1e293b;
  border-radius: 0.5rem;
  color: #f8fafc;
  padding: 0.55rem 0.75rem;
  font-size: 16px;
  line-height: 1.4;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

@media (min-width: 640px) {
  .cc-input {
    font-size: 0.875rem;
  }
}

/* Enforce >=16px on mobile Safari across all form controls to prevent auto-zoom */
@media (max-width: 639px) {
  input,
  select,
  textarea,
  .cc-input {
    font-size: 16px !important;
  }
}

.cc-input::placeholder {
  color: #64748b;
}

.cc-input:focus {
  outline: none;
  border-color: #D4AF37;
  box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.2);
}

.cc-input:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Tab Navigation Buttons */
.cc-tab-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.5rem 0.875rem;
  font-size: 0.8125rem;
  font-weight: 600;
  border-radius: 0.5rem;
  border: 1px solid transparent;
  transition: all 0.15s ease;
  cursor: pointer;
  white-space: nowrap;
}

.cc-tab-btn-active {
  background: rgba(212, 175, 55, 0.15);
  color: #D4AF37;
  border-color: rgba(212, 175, 55, 0.65);
  box-shadow: inset 0 0 12px rgba(212, 175, 55, 0.12);
}

.cc-tab-btn-idle {
  background: #0b1120;
  color: #94a3b8;
  border-color: #1e293b;
}

.cc-tab-btn-idle:hover:not(:disabled) {
  color: #f1f5f9;
  border-color: #334155;
  background: #0f172a;
}

/* Amber Pulse for Email-Opened Leads */
@keyframes ccAmberPulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.55);
  }
  50% {
    box-shadow: 0 0 0 6px rgba(245, 158, 11, 0);
  }
}

.pulse-open {
  animation: ccAmberPulse 2s infinite ease-in-out;
  border-color: rgba(245, 158, 11, 0.75) !important;
}

/* Clean White Ledger & Executive Export Print Rules */
@media print {
  html,
  body {
    background: #ffffff !important;
    color: #0f172a !important;
    font-size: 11pt !important;
  }

  #cc-auth-gate,
  #cc-toast,
  #cc-modal-backdrop,
  #cc-livewire-banner,
  #cc-refresh-btn,
  #cc-logout-btn,
  .no-print {
    display: none !important;
  }

  #cc-app-shell,
  #cc-workspace-root {
    display: block !important;
    overflow: visible !important;
    height: auto !important;
    max-height: none !important;
  }

  .cc-card {
    background: #ffffff !important;
    color: #0f172a !important;
    border: 1px solid #cbd5e1 !important;
    box-shadow: none !important;
    break-inside: avoid;
  }

  .gold-text {
    color: #785c08 !important;
  }

  table {
    width: 100% !important;
    border-collapse: collapse !important;
  }

  th,
  td {
    border: 1px solid #cbd5e1 !important;
    color: #0f172a !important;
    background: #ffffff !important;
    padding: 6px 8px !important;
  }
}
