/* Inkloom Guardian - Custom Enterprise Styling & Components */

:root {
  --primary-color: #0f172a;
  --primary-hover: #1e293b;
  --border-color: #e2e8f0;
  --bg-slate-50: #f8fafc;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: #f8fafc;
  color: #0f172a;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Custom enterprise scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Button Component Utilities */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  padding: 0.5rem 1rem;
  font-size: 0.8125rem;
  font-weight: 500;
  border-radius: 0.375rem;
  color: #ffffff;
  background-color: #0f172a;
  border: 1px solid transparent;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  transition: all 0.15s ease-in-out;
  cursor: pointer;
}
.btn-primary:hover {
  background-color: #1e293b;
}
.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  padding: 0.5rem 1rem;
  font-size: 0.8125rem;
  font-weight: 500;
  border-radius: 0.375rem;
  color: #334155;
  background-color: #ffffff;
  border: 1px solid #cbd5e1;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  transition: all 0.15s ease-in-out;
  cursor: pointer;
}
.btn-secondary:hover {
  background-color: #f8fafc;
  color: #0f172a;
}
.btn-secondary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-danger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  padding: 0.5rem 1rem;
  font-size: 0.8125rem;
  font-weight: 500;
  border-radius: 0.375rem;
  color: #ffffff;
  background-color: #dc2626;
  border: 1px solid transparent;
  transition: all 0.15s ease-in-out;
  cursor: pointer;
}
.btn-danger:hover {
  background-color: #b91c1c;
}

.btn-subtle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  padding: 0.375rem 0.625rem;
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: 0.25rem;
  color: #475569;
  background-color: transparent;
  border: none;
  transition: all 0.15s ease-in-out;
  cursor: pointer;
}
.btn-subtle:hover {
  color: #0f172a;
  background-color: #f1f5f9;
}

.card-standard {
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

/* Badge Utilities */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.125rem 0.5rem;
  border-radius: 9999px;
  font-size: 0.6875rem;
  font-weight: 600;
  line-height: 1;
}

.badge-supported {
  background-color: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}
.badge-contradicted {
  background-color: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}
.badge-unverified {
  background-color: #f8fafc;
  color: #475569;
  border: 1px solid #cbd5e1;
}
.badge-review {
  background-color: #fffbeb;
  color: #92400e;
  border: 1px solid #fde68a;
}
.badge-critical {
  background-color: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}
.badge-high {
  background-color: #fff7ed;
  color: #9a3412;
  border: 1px solid #fed7aa;
}
.badge-medium {
  background-color: #fefce8;
  color: #854d0e;
  border: 1px solid #fef08a;
}
.badge-low {
  background-color: #f0fdf4;
  color: #166534;
  border: 1px solid #bbf7d0;
}
.badge-demo {
  background-color: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Toast Notifications */
#toast-container {
  position: fixed;
  top: 1.25rem;
  right: 1.25rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-width: 24rem;
  pointer-events: none;
}
.toast {
  pointer-events: auto;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  font-size: 0.8125rem;
  line-height: 1.25;
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  animation: slideInRight 0.2s ease-out;
  transition: opacity 0.2s ease-out, transform 0.2s ease-out;
}
.toast-success {
  border-left: 4px solid #10b981;
}
.toast-error {
  border-left: 4px solid #ef4444;
}
.toast-info {
  border-left: 4px solid #0284c7;
}
.toast-warning {
  border-left: 4px solid #f59e0b;
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Modal Backdrop */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(2px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.modal-dialog {
  background-color: #ffffff;
  border-radius: 0.5rem;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  max-width: 42rem;
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: modalPop 0.2s ease-out;
}
@keyframes modalPop {
  from {
    transform: scale(0.95);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* Active navigation item */
.nav-link.active {
  background-color: #0f172a !important;
  color: #ffffff !important;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}
.nav-link.active svg {
  color: #ffffff !important;
}

/* Tour Spotlight & Card */
.tour-card {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 26rem;
  max-width: calc(100vw - 3rem);
  background: #ffffff;
  border: 1px solid #0f172a;
  border-radius: 0.75rem;
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.25);
  z-index: 900;
  animation: slideUp 0.3s ease-out;
}
@keyframes slideUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
