/* Custom theme & typography for Najar ERP */
:root {
  --wood-dark: #2E2016;
  --wood-medium: #4A3525;
  --wood-gold: #C89D66;
  --wood-light: #F8F6F2;
}

body {
  font-family: 'Cairo', system-ui, -apple-system, sans-serif;
  background-color: var(--wood-light);
  -webkit-tap-highlight-color: transparent;
}

#loginScreen {
  background:
    radial-gradient(circle at 20% 20%, rgba(200, 157, 102, 0.18), transparent 42%),
    linear-gradient(160deg, #241910 0%, #2E2016 55%, #1A120C 100%);
}

.login-hero {
  background: linear-gradient(135deg, #4A3525 0%, #2E2016 100%);
}

#loginScreen input,
#loginScreen button {
  min-height: 44px;
}

.admin-direct-card {
  position: relative;
  transition: all 0.2s ease-in-out;
}
.admin-direct-card:hover {
  border-color: #C89D66;
  box-shadow: 0 4px 14px rgba(200, 157, 102, 0.25);
}

/* Nav Item Styling */
.nav-item {
  color: #D6CCC2;
  font-size: 0.85rem;
}
.nav-item:hover {
  background-color: #3F2D20;
  color: #FFFFFF;
}
.nav-item.active {
  background: linear-gradient(135deg, #4A3525 0%, #342316 100%);
  color: #FFFFFF;
  border-inline-start: 4px solid var(--wood-gold);
  font-weight: 700;
}

/* Custom Scrollbar for Windows Desktop */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #F4EFEA;
}
::-webkit-scrollbar-thumb {
  background: #C89D66;
  border-radius: 6px;
}
::-webkit-scrollbar-thumb:hover {
  background: #8C5D2F;
}

.custom-scrollbar::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
.custom-scrollbar::-webkit-scrollbar-track {
  background: transparent;
}
.custom-scrollbar::-webkit-scrollbar-thumb {
  background: #D5CDC4;
  border-radius: 9999px;
}
.custom-scrollbar::-webkit-scrollbar-thumb:hover {
  background: #A89B8D;
}

/* Animations */
@keyframes modalEnter {
  from {
    opacity: 0;
    transform: scale(0.96) translateY(8px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}
.animate-modal-enter {
  animation: modalEnter 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Card hover subtle lift */
.erp-card {
  background-color: #FFFFFF;
  border: 1px solid #EBE5DC;
  border-radius: 1rem;
  box-shadow: 0 1px 3px 0 rgba(44, 36, 29, 0.05);
  transition: all 0.2s ease;
}
.erp-card:hover {
  border-color: #D9CEBF;
  box-shadow: 0 4px 12px 0 rgba(44, 36, 29, 0.08);
}

/* Table styling */
.erp-table th {
  background-color: #F4EFEA;
  color: #4A3525;
  font-weight: 700;
  padding: 0.75rem 1rem;
  text-align: right;
  font-size: 0.8rem;
  white-space: nowrap;
}
.erp-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #F0EAE1;
  font-size: 0.85rem;
  color: #2C241D;
}
.erp-table tr:hover td {
  background-color: #FAF8F5;
}

/* Badges */
.badge-status {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.2rem 0.6rem;
  border-radius: 9999px;
  font-size: 0.72rem;
  font-weight: 600;
}

/* Printable Voucher & Document Styling */
.printable-document {
  background: #ffffff;
  color: #1a1a1a;
  padding: 1.5rem;
  border: 1px solid #e0e0e0;
  border-radius: 0.75rem;
}

.watermark-badge {
  display: inline-block;
  border: 2px dashed #C89D66;
  color: #8C5D2F;
  padding: 0.25rem 0.75rem;
  border-radius: 0.5rem;
  font-weight: 800;
  font-size: 0.75rem;
}

/* Windows Desktop Keyboard Key Badges */
kbd {
  box-shadow: 0 1px 2px rgba(0,0,0,0.1);
  font-family: inherit;
}

/* Print Styles */
@media print {
  aside, header, #quickActionBtn, .no-print, button, #loginScreen, #toastNotification {
    display: none !important;
  }
  #universalModal {
    position: static !important;
    background: transparent !important;
    padding: 0 !important;
    overflow: visible !important;
  }
  #universalModal > div {
    max-width: 100% !important;
    border: none !important;
    box-shadow: none !important;
  }
  body, main {
    background: #FFFFFF !important;
    padding: 0 !important;
    overflow: visible !important;
  }
  .printable-document {
    border: none !important;
    padding: 0 !important;
  }
  .erp-card {
    box-shadow: none !important;
    border: 1px solid #CCCCCC !important;
  }
}