html, body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  overflow-x: hidden;
  overflow-y: auto;
  scroll-behavior: smooth;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.7);
}
::-webkit-scrollbar-thumb {
  background: rgba(71, 85, 105, 0.6);
  border-radius: 6px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(100, 116, 139, 0.9);
}

    /* EFEKT PULSUJĄCEGO CZERWONEGO NEONU DLA NOWOŚCI */
    @keyframes neonRedPulse {
      0%, 100% {
        box-shadow: 0 0 12px rgba(239, 68, 68, 0.7), inset 0 0 10px rgba(239, 68, 68, 0.3);
        border-color: #ef4444;
      }
      50% {
        box-shadow: 0 0 25px rgba(239, 68, 68, 1), 0 0 35px rgba(220, 38, 38, 0.6), inset 0 0 16px rgba(239, 68, 68, 0.5);
        border-color: #fca5a5;
      }
    }
    .neon-card-red {
      animation: neonRedPulse 1.8s infinite ease-in-out;
      background: linear-gradient(145deg, #1c0f12, #0b0204) !important;
    }

    /* EFEKT ŚWIECĄCEGO ŻÓŁTEGO NEONU DLA EDYCJI */
    @keyframes neonYellowGlow {
      0%, 100% {
        box-shadow: 0 0 10px rgba(234, 179, 8, 0.6), inset 0 0 8px rgba(234, 179, 8, 0.2);
        border-color: #eab308;
      }
      50% {
        box-shadow: 0 0 22px rgba(234, 179, 8, 0.9), inset 0 0 14px rgba(234, 179, 8, 0.4);
        border-color: #fef08a;
      }
    }
    .neon-card-yellow {
      animation: neonYellowGlow 2.2s infinite ease-in-out;
      background: linear-gradient(145deg, #1c1808, #0d0b02) !important;
    }

    /* EFEKT ŚWIECĄCEGO FIOLETOWEGO NEONU DLA SKLONOWANYCH / PRZENIESIONYCH DAŃ */
    @keyframes neonIndigoClone {
      0%, 100% {
        box-shadow: 0 0 16px rgba(99, 102, 241, 0.7), inset 0 0 10px rgba(99, 102, 241, 0.3);
        border-color: #6366f1;
      }
      50% {
        box-shadow: 0 0 28px rgba(129, 140, 248, 1), 0 0 40px rgba(99, 102, 241, 0.6), inset 0 0 18px rgba(99, 102, 241, 0.5);
        border-color: #a5b4fc;
      }
    }
    .neon-card-clone {
      animation: neonIndigoClone 1.8s infinite ease-in-out;
      background: linear-gradient(145deg, #0f122c, #060817) !important;
      cursor: pointer;
    }

    /* STYLE DLA DIFF (NOWE = ZIELONE / PODKREŚLONE, STARE = CZERWONE PRZEKREŚLONE) */
    .diff-del {
      background-color: rgba(239, 68, 68, 0.22);
      color: #fca5a5;
      text-decoration: line-through;
      text-decoration-thickness: 2px;
      text-decoration-color: #ef4444;
      padding: 2px 6px;
      border-radius: 4px;
      margin: 1px 2px;
      display: inline-block;
      font-size: 0.9em;
      border: 1px dashed rgba(239, 68, 68, 0.4);
    }
    .diff-ins {
      background-color: rgba(16, 185, 129, 0.22);
      color: #6ee7b7;
      font-weight: 700;
      text-decoration: underline;
      text-decoration-thickness: 2px;
      text-decoration-color: #10b981;
      padding: 2px 6px;
      border-radius: 4px;
      margin: 1px 2px;
      border: 1px solid rgba(16, 185, 129, 0.45);
      display: inline-block;
      font-size: 0.9em;
    }

    /* Custom Toast Notifications */
    #toastContainer {
      position: fixed;
      bottom: 24px;
      right: 24px;
      z-index: 9999;
      display: flex;
      flex-direction: column;
      gap: 8px;
      pointer-events: none;
    }
    .toast {
      pointer-events: auto;
      animation: toastSlideIn 0.3s ease-out forwards;
    }
    @keyframes toastSlideIn {
      from { transform: translateY(20px); opacity: 0; }
      to { transform: translateY(0); opacity: 1; }
    }

    @media print {
      * {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
      }
      body * { visibility: hidden; }
      #printArea, #printArea * { visibility: visible; }
      #printArea {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        color: #0f172a !important;
        background: #ffffff !important;
        padding: 8mm 12mm !important;
        margin: 0 !important;
      }
      .no-print { display: none !important; }
      .print-page-break { page-break-inside: avoid; break-inside: avoid; }
      .diff-del {
        background-color: #fee2e2 !important;
        color: #991b1b !important;
        text-decoration: line-through !important;
        text-decoration-thickness: 2px !important;
        font-weight: 600 !important;
      }
      .diff-ins {
        background-color: #d1fae5 !important;
        color: #065f46 !important;
        text-decoration: underline !important;
        text-decoration-thickness: 2px !important;
        font-weight: 700 !important;
      }
      .print-badge-new {
        background-color: #dc2626 !important;
        color: #ffffff !important;
        font-weight: 800 !important;
        padding: 2px 6px !important;
        border-radius: 4px !important;
        display: inline-block !important;
      }
      .print-badge-edit {
        background-color: #d97706 !important;
        color: #ffffff !important;
        font-weight: 800 !important;
        padding: 2px 6px !important;
        border-radius: 4px !important;
        display: inline-block !important;
      }
    }