/* 
 * Custom Styles for MikroTik Internet Log Web App
 * Thailand MDES Announcement B.E. 2564 Compliance
 */

:root {
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --bg-dark: #090d16;
  --card-dark: #111827;
  --border-dark: #1f2937;
  --text-primary: #f3f4f6;
  --text-secondary: #9ca3af;
}

body {
  font-family: 'Sarabun', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background-color: #0b0f19;
  color: #e2e8f0;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #0b0f19;
}
::-webkit-scrollbar-thumb {
  background: #243049;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #3b82f6;
}

/* Badge Glow effects */
.glow-success {
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.25);
}
.glow-primary {
  box-shadow: 0 0 20px rgba(37, 99, 235, 0.25);
}

/* Modal Animation */
.modal-enter {
  animation: modalFadeIn 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: scale(0.96) translateY(-10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* Hash truncation styling */
.hash-pill {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  letter-spacing: -0.02em;
}

/* Print Styles for Law Enforcement / Audit Export */
@media print {
  body {
    background-color: #ffffff !important;
    color: #000000 !important;
    font-size: 11pt;
  }
  .no-print {
    display: none !important;
  }
  .print-only {
    display: block !important;
  }
  .card-print {
    border: 1px solid #cccccc !important;
    box-shadow: none !important;
    background: transparent !important;
    page-break-inside: avoid;
  }
  table {
    width: 100%;
    border-collapse: collapse;
  }
  th, td {
    border: 1px solid #dddddd !important;
    padding: 6px !important;
    color: #000000 !important;
  }
  th {
    background-color: #f1f5f9 !important;
  }
}
