    @import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

    :root {
      --primary: #EF3F09;
      --foreground: #1c1c1e;
      --muted: #f5f5f7;
      --tahoe-glass: rgba(255,255,255,0.78);
      --tahoe-border: rgba(0,0,0,0.06);
    }

    * {
      font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    }

    body {
      background: linear-gradient(135deg, #f5f5f7 0%, #ebebed 50%, #f0f0f2 100%);
      min-height: 100vh;
    }

    select {
      appearance: none;
      background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
      background-position: right 10px center;
      background-repeat: no-repeat;
      padding-right: 40px;
      cursor: pointer;
    }

    .scrollbar-hide::-webkit-scrollbar {
      display: none;
    }

    .scrollbar-hide {
      -ms-overflow-style: none;
      scrollbar-width: none;
    }

    .rounded-card {
      border-radius: 1.5rem;
    }

    .shadow-premium {
      box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.05);
    }

    /* Dashboard Table Styling - macOS Liquid Glass Design */
    .dashboard-table-container {
      background: rgba(255, 255, 255, 0.85);
      backdrop-filter: blur(24px) saturate(180%);
      -webkit-backdrop-filter: blur(24px) saturate(180%);
      border-radius: 20px;
      box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.05), inset 0 1px 0 rgba(255,255,255,0.9);
      border: 1px solid rgba(0, 0, 0, 0.07);
      overflow: hidden;
      transition: all 0.3s ease;
    }
    
    .dashboard-table-container:hover {
      box-shadow: 0 15px 50px -10px rgba(0, 0, 0, 0.08), inset 0 1px 0 rgba(255,255,255,0.9);
    }

    .dashboard-table {
      width: 100%;
      font-size: 0.825rem;
      text-align: left;
      border-collapse: collapse;
    }

    .dashboard-table thead {
      background-color: rgba(246, 248, 250, 0.7);
      border-bottom: 1.5px solid rgba(0, 0, 0, 0.05);
      color: #57606a;
      text-transform: uppercase;
      font-size: 9px;
      font-weight: 800;
      letter-spacing: 0.08em;
    }

    .dashboard-table th {
      padding: 14px 18px;
    }

    .dashboard-table td {
      padding: 14px 18px;
      border-bottom: 1px solid rgba(0, 0, 0, 0.03);
      color: #24292f;
      font-weight: 500;
    }

    .dashboard-table tr:last-child td {
      border-bottom: 0;
    }

    .dashboard-table tr {
      transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .dashboard-table tr:hover {
      background-color: rgba(239, 63, 9, 0.02);
      box-shadow: inset 3px 0 0 0 #EF3F09;
    }

    .bg-risk-critical {
      background-color: #FEE2E2;
      color: #991B1B;
    }

    .bg-risk-high {
      background-color: #FEF3C7;
      color: #92400E;
    }

    .bg-risk-medium {
      background-color: #ECFDF5;
      color: #065F46;
    }

    .bg-risk-low {
      background-color: #EFF6FF;
      color: #1E40AF;
    }

    /* Animation & Transitions */
    .view-content {
      animation: fadeIn 0.4s ease-out;
    }

    @keyframes fadeIn {
      from {
        opacity: 0;
        transform: translateY(10px);
      }

      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

    .nav-link div {
      transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .rounded-card {
      transition: transform 0.2s ease, box-shadow 0.2s ease;
    }

    .rounded-card:hover {
      transform: translateY(-2px);
    }

    /* Heatmap Interactivity */
    .heatmap-cell {
      cursor: pointer;
      transition: all 0.2s ease;
      position: relative;
    }

    .heatmap-cell:hover {
      filter: brightness(0.9);
      transform: scale(1.05);
      z-index: 10;
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }

    .heatmap-cell.active {
      outline: 3px solid #EF3F09;
      z-index: 20;
      box-shadow: 0 0 15px rgba(239, 63, 9, 0.3);
    }

    /* AI Styles */
    .btn-ai {
      background: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
      color: white;
      transition: all 0.3s ease;
    }

    .btn-ai:hover {
      transform: translateY(-2px) scale(1.05);
      box-shadow: 0 4px 15px rgba(168, 85, 247, 0.4);
    }

    .btn-ai:active {
      transform: scale(0.95);
    }

    .ai-suggestion-card {
      border-left: 4px solid #a855f7;
      transition: all 0.2s ease;
      cursor: pointer;
    }

    .ai-suggestion-card:hover {
      background-color: #f3f4f6;
      border-left-width: 8px;
    }

    /* ===== UPGRADE v7.0 STYLES ===== */

    /* Notification Bell */
    .notif-panel {
      position: fixed;
      top: 72px;
      right: 24px;
      width: 360px;
      background: white;
      border-radius: 1.5rem;
      box-shadow: 0 20px 60px -10px rgba(0, 0, 0, 0.15);
      border: 1px solid #F3F4F6;
      z-index: 999;
      transform: translateY(-8px);
      opacity: 0;
      transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
      pointer-events: none;
    }

    .notif-panel.open {
      transform: translateY(0);
      opacity: 1;
      pointer-events: all;
    }

    .notif-dot-pulse {
      animation: pulse-red 1.5s infinite;
    }

    @keyframes pulse-red {

      0%,
      100% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4);
      }

      50% {
        box-shadow: 0 0 0 6px rgba(239, 68, 68, 0);
      }
    }

    /* Risk Matrix Clickable Drill-down */
    .matrix-cell-interactive {
      cursor: pointer;
      transition: all 0.2s ease;
      position: relative;
      overflow: hidden;
    }

    .matrix-cell-interactive:hover {
      filter: brightness(0.88);
      transform: scale(1.06);
      z-index: 10;
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }

    .matrix-cell-interactive.selected {
      outline: 3px solid #EF3F09;
      z-index: 20;
      box-shadow: 0 0 0 3px rgba(239, 63, 9, 0.3);
    }

    .matrix-cell-count {
      position: absolute;
      top: 2px;
      right: 4px;
      font-size: 8px;
      font-weight: 900;
      opacity: 0.7;
    }

    /* Drill-down Modal */
    .drilldown-modal {
      position: fixed;
      inset: 0;
      z-index: 2000;
      background: rgba(0, 0, 0, 0.5);
      backdrop-filter: blur(4px);
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 1rem;
    }

    .drilldown-modal-content {
      background: white;
      border-radius: 2rem;
      width: 100%;
      max-width: 700px;
      max-height: 85vh;
      overflow: hidden;
      display: flex;
      flex-direction: column;
      animation: slideUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    @keyframes slideUp {
      from {
        opacity: 0;
        transform: translateY(20px);
      }

      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

    /* Trend Chart */
    .trend-chart-container {
      position: relative;
      height: 280px;
    }

    /* AI Sidebar Chat */
    .ai-chat-btn {
      position: fixed;
      bottom: 24px;
      right: 24px;
      width: 56px;
      height: 56px;
      border-radius: 50%;
      background: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
      color: white;
      border: none;
      cursor: pointer;
      box-shadow: 0 8px 24px rgba(168, 85, 247, 0.4);
      display: flex;
      align-items: center;
      justify-content: center;
      transition: all 0.3s ease;
      z-index: 500;
    }

    .ai-chat-btn:hover {
      transform: scale(1.1) translateY(-2px);
      box-shadow: 0 12px 32px rgba(168, 85, 247, 0.5);
    }

    .ai-chat-panel {
      position: fixed;
      bottom: 90px;
      right: 24px;
      width: 380px;
      background: white;
      border-radius: 1.5rem;
      box-shadow: 0 20px 60px -10px rgba(0, 0, 0, 0.15);
      border: 1px solid #F3F4F6;
      z-index: 499;
      display: flex;
      flex-direction: column;
      max-height: 500px;
      transform: translateY(10px);
      opacity: 0;
      transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
      pointer-events: none;
    }

    .ai-chat-panel.open {
      transform: translateY(0);
      opacity: 1;
      pointer-events: all;
    }

    .ai-chat-messages {
      flex: 1;
      overflow-y: auto;
      padding: 1rem;
      display: flex;
      flex-direction: column;
      gap: 0.75rem;
    }

    .ai-msg-user {
      align-self: flex-end;
      background: linear-gradient(135deg, #6366f1, #a855f7);
      color: white;
      padding: 0.6rem 1rem;
      border-radius: 1.2rem 1.2rem 0 1.2rem;
      max-width: 80%;
      font-size: 13px;
    }

    .ai-msg-bot {
      align-self: flex-start;
      background: #F3F4F6;
      color: #1F2937;
      padding: 0.6rem 1rem;
      border-radius: 1.2rem 1.2rem 1.2rem 0;
      max-width: 85%;
      font-size: 13px;
      line-height: 1.5;
    }

    .ai-msg-typing {
      align-self: flex-start;
      padding: 0.6rem 1rem;
      background: #F3F4F6;
      border-radius: 1.2rem;
    }

    .ai-typing-dots span {
      display: inline-block;
      width: 6px;
      height: 6px;
      border-radius: 50%;
      background: #9CA3AF;
      margin: 0 2px;
      animation: typing 1.2s infinite;
    }

    .ai-typing-dots span:nth-child(2) {
      animation-delay: 0.2s;
    }

    .ai-typing-dots span:nth-child(3) {
      animation-delay: 0.4s;
    }

    @keyframes typing {

      0%,
      60%,
      100% {
        transform: translateY(0);
      }

      30% {
        transform: translateY(-6px);
      }
    }
  </style>
  <style>
    @media print {
      @page {
        size: legal landscape;
        margin: 10mm;
      }

      body * {
        visibility: hidden;
      }

      #print-area,
      #print-area * {
        visibility: visible;
      }

      #print-area {
        display: block !important;
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        background: white;
        padding: 0 !important;
        margin: 0 !important;
        print-color-adjust: exact;
        -webkit-print-color-adjust: exact;
      }

      .no-print {
        display: none !important;
      }

      .print-table {
        width: 100% !important;
        border-collapse: collapse !important;
        margin-bottom: 20px;
        table-layout: fixed;
      }

      .print-table th,
      .print-table td {
        border: 1px solid #000 !important;
        padding: 4px 2px;
        font-size: 8px;
        word-wrap: break-word;
      }

      .print-table th {
        background-color: #f3f4f6 !important;
        print-color-adjust: exact;
        -webkit-print-color-adjust: exact;
      }

      .print-section-title {
        margin-top: 20px;
        margin-bottom: 5px;
        font-size: 12px;
        font-weight: bold;
      }

      /* [FIX] Print Laporan Profil Risiko */
      #profil-print-area,
      #profil-print-area * {
        visibility: visible;
      }

      body.print-profil * {
        visibility: hidden;
      }

      body.print-profil #profil-print-area,
      body.print-profil #profil-print-area * {
        visibility: visible;
      }

      body.print-profil #profil-print-area {
        display: block !important;
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        background: white;
        print-color-adjust: exact;
        -webkit-print-color-adjust: exact;
      }
    }

    /* Custom login overrides to match Tel-U design */
    .login-input {
      border-bottom: 1.5px solid #d1d5db !important; /* border-gray-300 */
      background-color: transparent !important;
      border-top: none !important;
      border-left: none !important;
      border-right: none !important;
      border-radius: 0 !important;
      box-shadow: none !important;
      transition: border-color 0.2s, box-shadow 0.2s;
    }
    .login-input.has-value {
      border-bottom: 1.5px solid #22c55e !important;
    }
    .login-input:focus {
      border-bottom: 1.5px solid #b00b21 !important;
      box-shadow: none !important;
    }
    .login-input.has-value:focus {
      border-bottom: 1.5px solid #22c55e !important;
      box-shadow: none !important;
    }
  </style>
