@import url('https://fonts.googleapis.com/css2?family=Lato:wght@400;700&display=swap');

    body {
      font-family: 'Lato', sans-serif;
      margin: 0;
      padding: 0;
      background: #f5f7fa;
    }

    .sticky-header {
      position: sticky;
      top: 0;
      background: #0a3161;
      color: white;
      padding: 0.75rem 1rem;
      display: flex;
      align-items: center;
      gap: 0.75rem;
      z-index: 1000;
      min-height: 60px;
    }

    .sticky-header h1 {
      font-size: 1.1rem;
      margin: 0;
      flex-grow: 1;
      line-height: 1.2;
    }

    .logo-container {
      height: 40px;
      width: 40px;
      flex-shrink: 0;
      position: relative;
    }

    .logo {
      height: 40px;
      width: 40px;
      border-radius: 50%;
      background: #fff;
      padding: 2px;
      object-fit: contain;
      box-sizing: border-box;
    }

    .logo-fallback {
      height: 40px;
      width: 40px;
      border-radius: 50%;
      background: #fff;
      display: none;
      align-items: center;
      justify-content: center;
      font-weight: bold;
      color: #0a3161;
      font-size: 0.8rem;
      position: absolute;
      top: 0;
      left: 0;
    }

    main {
      padding: 1rem;
    }

    section {
      margin-bottom: 1.5rem;
    }

    input, select, textarea {
      display: block;
      width: 100%;
      margin-top: 0.25rem;
      margin-bottom: 1rem;
      padding: 0.75rem;
      border-radius: 10px;
      border: 2px solid #ddd;
      font-family: 'Lato', sans-serif;
      font-size: 1.1rem;
      box-sizing: border-box;
      min-height: 44px;
      background: #fff;
      transition: border-color 0.2s ease, box-shadow 0.2s ease;
    }

    input:focus, select:focus, textarea:focus {
      outline: none;
      border-color: #0a3161;
      box-shadow: 0 0 0 3px rgba(10, 49, 97, 0.1);
    }

    select {
      background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
      background-repeat: no-repeat;
      background-position: right 0.75rem center;
      background-size: 1rem;
      padding-right: 2.5rem;
      -webkit-appearance: none;
      -moz-appearance: none;
      appearance: none;
    }

    button {
      padding: 0.75rem 1.25rem;
      margin: 0.5rem;
      border: none;
      border-radius: 10px;
      cursor: pointer;
      box-shadow: 0 2px 8px rgba(0,0,0,0.15);
      font-family: 'Lato', sans-serif;
      font-size: 1.1rem;
      min-height: 44px;
      touch-action: manipulation;
      font-weight: 600;
      transition: all 0.2s ease;
    }

    button:hover {
      transform: translateY(-1px);
      box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    }

    button:active {
      transform: translateY(0);
    }

    .nav-btn {
      background: linear-gradient(135deg, #006778, #008899);
      color: white;
      border: 2px solid transparent;
    }

    .nav-btn:hover {
      background: linear-gradient(135deg, #005566, #007788);
    }

    .action-buttons button {
      background: linear-gradient(135deg, #0a3161, #0d4080);
      color: white;
      border: 2px solid transparent;
    }

    .action-buttons button:hover {
      background: linear-gradient(135deg, #082649, #0b3570);
    }

    .modal {
      position: fixed;
      top: 0; left: 0; right: 0; bottom: 0;
      display: flex;
      justify-content: center;
      align-items: center;
      background: rgba(0,0,0,0.5);
      z-index: 2000;
    }

    .modal-content {
      background: white;
      padding: 2rem;
      border-radius: 10px;
      max-width: 900px;
      width: 95%;
      max-height: 90vh;
      overflow-y: auto;
    }

    .hidden {
      display: none;
    }

    .close {
      float: right;
      cursor: pointer;
      font-size: 1.5rem;
      font-weight: bold;
    }

    .close:hover {
      color: #0a3161;
    }

    .card {
      background: #fff;
      padding: 2rem;
      border-radius: 15px;
      box-shadow: 0 8px 25px rgba(0,0,0,0.08);
      max-width: 900px;
      margin: 2rem auto;
      color: #2c3e50;
      border: 1px solid #e8ecf0;
    }

    .checklist-card {
      background: #fff;
      border: 2px solid #e8ecf0;
      border-radius: 12px;
      padding: 1.5rem;
      margin-bottom: 1rem;
      box-shadow: 0 4px 12px rgba(0,0,0,0.06);
      transition: border-color 0.2s ease, box-shadow 0.2s ease;
    }

    .checklist-card:hover {
      border-color: #d1d9e0;
      box-shadow: 0 6px 20px rgba(0,0,0,0.1);
    }

    .checklist-question {
      color: #1a365d;
      font-weight: 700;
      font-size: 1.1rem;
      margin-bottom: 1.2rem;
      line-height: 1.4;
      padding: 0.75rem 1rem;
      background: linear-gradient(135deg, #f8fafc, #e2e8f0);
      border-radius: 8px;
      border-left: 4px solid #0a3161;
    }

    label, legend {
      color: #2d3748;
      font-weight: 600;
      display: block;
      margin-bottom: 0.5rem;
      font-size: 0.95rem;
      text-transform: uppercase;
      letter-spacing: 0.05em;
    }

    .navigation-buttons {
      display: flex;
      justify-content: space-between;
      margin: 2rem 0;
    }

    .action-buttons {
      display: flex;
      flex-wrap: wrap;
      gap: 0.5rem;
      margin: 2rem 0;
    }

    #progress-indicator {
      flex-grow: 1;
      text-align: center;
      font-weight: bold;
      font-size: 0.9rem;
      padding: 0 0.5rem;
    }

    /* Status-specific styling for better recognition */
    .status-yes {
      background-color: #f0fff4 !important;
      border-color: #38a169 !important;
    }

    .status-no {
      background-color: #fff5f5 !important;
      border-color: #e53e3e !important;
    }

    .status-na {
      background-color: #f7fafc !important;
      border-color: #718096 !important;
    }

    .priority-critical {
      background-color: #fed7d7 !important;
      border-color: #e53e3e !important;
    }

    .priority-high {
      background-color: #feebc8 !important;
      border-color: #dd6b20 !important;
    }

    .priority-medium {
      background-color: #fefcbf !important;
      border-color: #d69e2e !important;
    }

    .priority-low {
      background-color: #f0fff4 !important;
      border-color: #38a169 !important;
    }

    /* Dark mode styles */
    body.dark-mode {
      background-color: #0f1419;
      color: #e2e8f0;
    }

    body.dark-mode .card,
    body.dark-mode .checklist-card {
      background-color: #1a202c;
      color: #e2e8f0;
      border-color: #2d3748;
    }

    body.dark-mode .checklist-card {
      border-color: #4a5568;
      box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    }

    body.dark-mode .checklist-card:hover {
      border-color: #718096;
      box-shadow: 0 6px 20px rgba(0,0,0,0.4);
    }

    body.dark-mode .checklist-question {
      color: #f7fafc;
      background: linear-gradient(135deg, #2d3748, #4a5568);
      border-left-color: #63b3ed;
    }

    body.dark-mode .modal-content {
      background-color: #1a202c;
      color: #e2e8f0;
      border: 1px solid #4a5568;
    }

    body.dark-mode input,
    body.dark-mode select,
    body.dark-mode textarea {
      background-color: #2d3748;
      color: #f7fafc;
      border-color: #4a5568;
    }

    body.dark-mode select {
      background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f7fafc' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
    }

    body.dark-mode input:focus,
    body.dark-mode select:focus,
    body.dark-mode textarea:focus {
      border-color: #63b3ed;
      box-shadow: 0 0 0 3px rgba(99, 179, 237, 0.2);
    }

    body.dark-mode label,
    body.dark-mode legend {
      color: #cbd5e0;
    }

    body.dark-mode .nav-btn {
      background: linear-gradient(135deg, #1a365d, #2c5282);
      border-color: #2c5282;
    }

    body.dark-mode .nav-btn:hover {
      background: linear-gradient(135deg, #2c5282, #3182ce);
    }

    body.dark-mode .action-buttons button {
      background: linear-gradient(135deg, #2a4365, #3c4d63);
      border-color: #4a5568;
    }

    body.dark-mode .action-buttons button:hover {
      background: linear-gradient(135deg, #3c4d63, #4a5568);
    }

    body.dark-mode .sticky-header {
      background-color: #0f1419;
      border-bottom: 1px solid #2d3748;
    }

    body.dark-mode .swipe-indicator {
      background: rgba(255,255,255,0.1);
      color: #a0aec0;
    }

    /* Dark mode status colors */
    body.dark-mode .status-yes {
      background-color: #1a2e1a !important;
      border-color: #68d391 !important;
    }

    body.dark-mode .status-no {
      background-color: #2d1b1b !important;
      border-color: #fc8181 !important;
    }

    body.dark-mode .status-na {
      background-color: #1a202c !important;
      border-color: #a0aec0 !important;
    }

    body.dark-mode .priority-critical {
      background-color: #2d1b1b !important;
      border-color: #fc8181 !important;
    }

    body.dark-mode .priority-high {
      background-color: #2c1810 !important;
      border-color: #f6ad55 !important;
    }

    body.dark-mode .priority-medium {
      background-color: #2d2a0e !important;
      border-color: #f6e05e !important;
    }

    body.dark-mode .priority-low {
      background-color: #1a2e1a !important;
      border-color: #68d391 !important;
    }

    /* Breadcrumb navigation styles */
    .breadcrumb {
      background: #f8fafc;
      padding: 0.75rem 1rem;
      border-radius: 8px;
      margin-bottom: 1.5rem;
      font-size: 0.9rem;
      border: 1px solid #e2e8f0;
    }

    .breadcrumb-item {
      display: inline;
      color: #718096;
    }

    .breadcrumb-item.active {
      color: #2d3748;
      font-weight: 600;
    }

    .breadcrumb-item:not(:last-child)::after {
      content: " → ";
      margin: 0 0.5rem;
      color: #a0aec0;
    }

    .breadcrumb-link {
      color: #0a3161;
      text-decoration: none;
      cursor: pointer;
    }

    .breadcrumb-link:hover {
      text-decoration: underline;
    }

    /* Dark mode breadcrumbs */
    body.dark-mode .breadcrumb {
      background: #2d3748;
      border-color: #4a5568;
    }

    body.dark-mode .breadcrumb-item {
      color: #a0aec0;
    }

    body.dark-mode .breadcrumb-item.active {
      color: #f7fafc;
    }

    body.dark-mode .breadcrumb-link {
      color: #63b3ed;
    }

    /* Progress bar styles */
    .progress-container {
      background: #e2e8f0;
      border-radius: 10px;
      height: 8px;
      margin: 1rem 0;
      overflow: hidden;
      position: relative;
    }

    .progress-bar {
      background: linear-gradient(135deg, #38a169, #48bb78);
      height: 100%;
      width: 0%;
      transition: width 0.3s ease;
      border-radius: 10px;
    }

    .progress-text {
      text-align: center;
      font-size: 0.85rem;
      color: #4a5568;
      margin-top: 0.5rem;
      font-weight: 600;
    }

    .progress-wrapper {
      background: #f8fafc;
      border: 1px solid #e2e8f0;
      border-radius: 8px;
      padding: 1rem;
      margin-bottom: 1.5rem;
    }

    /* Dark mode progress bar */
    body.dark-mode .progress-container {
      background: #4a5568;
    }

    body.dark-mode .progress-bar {
      background: linear-gradient(135deg, #68d391, #38a169);
    }

    body.dark-mode .progress-text {
      color: #cbd5e0;
    }

    body.dark-mode .progress-wrapper {
      background: #2d3748;
      border-color: #4a5568;
    }

    /* Auto-save indicator styles */
    .auto-save-indicator {
      position: fixed;
      top: 80px;
      right: 20px;
      background: #38a169;
      color: white;
      padding: 0.5rem 1rem;
      border-radius: 20px;
      font-size: 0.85rem;
      font-weight: 600;
      opacity: 0;
      transform: translateY(-10px);
      transition: all 0.3s ease;
      z-index: 1500;
      box-shadow: 0 4px 12px rgba(56, 161, 105, 0.3);
    }

    .auto-save-indicator.show {
      opacity: 1;
      transform: translateY(0);
    }

    .auto-save-indicator.saving {
      background: #3182ce;
      box-shadow: 0 4px 12px rgba(49, 130, 206, 0.3);
    }

    /* Dark mode auto-save indicator */
    body.dark-mode .auto-save-indicator {
      background: #68d391;
      color: #1a202c;
    }

    body.dark-mode .auto-save-indicator.saving {
      background: #63b3ed;
      color: #1a202c;
    }

    /* Mobile auto-save indicator */
    @media (max-width: 768px) {
      .auto-save-indicator {
        top: 70px;
        right: 10px;
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
      }
    }

    /* Zone completion badges */
    .zone-overview {
      background: #f8fafc;
      border: 1px solid #e2e8f0;
      border-radius: 12px;
      padding: 1.5rem;
      margin-bottom: 1.5rem;
    }

    .zone-overview h3 {
      margin: 0 0 1rem 0;
      color: #2d3748;
      font-size: 1.1rem;
      font-weight: 600;
    }

    .zone-badges-container {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
      gap: 1rem;
    }

    .zone-badge {
      background: white;
      border: 2px solid #e2e8f0;
      border-radius: 8px;
      padding: 1rem;
      cursor: pointer;
      transition: all 0.2s ease;
      position: relative;
    }

    .zone-badge:hover {
      border-color: #0a3161;
      box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    }

    .zone-badge.completed {
      border-color: #38a169;
      background: linear-gradient(135deg, #f0fff4, #e6fffa);
    }

    .zone-badge.in-progress {
      border-color: #3182ce;
      background: linear-gradient(135deg, #ebf8ff, #e6f6ff);
    }

    .zone-badge-header {
      display: flex;
      justify-content: space-between;
      align-items: flex-start;
      margin-bottom: 0.5rem;
    }

    .zone-badge-title {
      font-weight: 600;
      color: #2d3748;
      font-size: 0.95rem;
      line-height: 1.3;
      flex: 1;
      margin-right: 0.5rem;
    }

    .zone-badge-icon {
      font-size: 1.5rem;
      opacity: 0.3;
      transition: opacity 0.2s ease;
    }

    .zone-badge.completed .zone-badge-icon {
      opacity: 1;
    }

    .zone-badge.in-progress .zone-badge-icon {
      opacity: 0.7;
    }

    .zone-badge-progress {
      font-size: 0.85rem;
      color: #718096;
      margin-bottom: 0.5rem;
    }

    .zone-badge-bar {
      height: 4px;
      background: #e2e8f0;
      border-radius: 2px;
      overflow: hidden;
    }

    .zone-badge-fill {
      height: 100%;
      border-radius: 2px;
      transition: width 0.3s ease;
    }

    .zone-badge.completed .zone-badge-fill {
      background: linear-gradient(135deg, #38a169, #48bb78);
    }

    .zone-badge.in-progress .zone-badge-fill {
      background: linear-gradient(135deg, #3182ce, #4299e1);
    }

    .zone-badge:not(.completed):not(.in-progress) .zone-badge-fill {
      background: linear-gradient(135deg, #a0aec0, #cbd5e0);
    }

    /* Dark mode zone badges */
    body.dark-mode .zone-overview {
      background: #2d3748;
      border-color: #4a5568;
    }

    body.dark-mode .zone-overview h3 {
      color: #f7fafc;
    }

    body.dark-mode .zone-badge {
      background: #1a202c;
      border-color: #4a5568;
    }

    body.dark-mode .zone-badge:hover {
      border-color: #63b3ed;
    }

    body.dark-mode .zone-badge.completed {
      border-color: #68d391;
      background: linear-gradient(135deg, #1a2e1a, #22543d);
    }

    body.dark-mode .zone-badge.in-progress {
      border-color: #63b3ed;
      background: linear-gradient(135deg, #1a202c, #2c5282);
    }

    body.dark-mode .zone-badge-title {
      color: #f7fafc;
    }

    body.dark-mode .zone-badge-progress {
      color: #a0aec0;
    }

    /* Mobile zone badges */
    @media (max-width: 768px) {
      .zone-badges-container {
        grid-template-columns: 1fr;
      }
      
      .zone-badge {
        padding: 0.75rem;
      }
      
      .zone-badge-title {
        font-size: 0.9rem;
      }
    }

    /* Bulk actions styles */
    .bulk-actions {
      background: #f8fafc;
      border: 1px solid #e2e8f0;
      border-radius: 8px;
      padding: 1rem;
      margin-bottom: 1.5rem;
    }

    .bulk-actions-header {
      font-weight: 600;
      color: #2d3748;
      margin-bottom: 0.75rem;
      font-size: 0.95rem;
    }

    .bulk-actions-buttons {
      display: flex;
      gap: 0.5rem;
      flex-wrap: wrap;
    }

    .bulk-btn {
      padding: 0.5rem 1rem;
      border: 1px solid #d1d5db;
      border-radius: 6px;
      background: white;
      color: #374151;
      font-size: 0.85rem;
      font-weight: 500;
      cursor: pointer;
      transition: all 0.2s ease;
      margin: 0;
    }

    .bulk-btn:hover {
      background: #f3f4f6;
      border-color: #9ca3af;
      transform: none;
      box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    }

    .bulk-btn.danger {
      color: #dc2626;
      border-color: #fca5a5;
    }

    .bulk-btn.danger:hover {
      background: #fef2f2;
      border-color: #f87171;
    }

    .bulk-btn.warning {
      color: #d97706;
      border-color: #fcd34d;
    }

    .bulk-btn.warning:hover {
      background: #fffbeb;
      border-color: #f59e0b;
    }

    .bulk-btn.success {
      color: #059669;
      border-color: #6ee7b7;
    }

    .bulk-btn.success:hover {
      background: #f0fdf4;
      border-color: #34d399;
    }

    .bulk-btn.info {
      color: #2563eb;
      border-color: #93c5fd;
    }

    .bulk-btn.info:hover {
      background: #eff6ff;
      border-color: #60a5fa;
    }

    /* Dark mode bulk actions */
    body.dark-mode .bulk-actions {
      background: #2d3748;
      border-color: #4a5568;
    }

    body.dark-mode .bulk-actions-header {
      color: #f7fafc;
    }

    body.dark-mode .bulk-btn {
      background: #1a202c;
      color: #e2e8f0;
      border-color: #4a5568;
    }

    body.dark-mode .bulk-btn:hover {
      background: #2d3748;
      border-color: #718096;
    }

    body.dark-mode .bulk-btn.danger {
      color: #fc8181;
      border-color: #e53e3e;
    }

    body.dark-mode .bulk-btn.danger:hover {
      background: #2d1b1b;
    }

    body.dark-mode .bulk-btn.warning {
      color: #f6ad55;
      border-color: #dd6b20;
    }

    body.dark-mode .bulk-btn.warning:hover {
      background: #2c1810;
    }

    body.dark-mode .bulk-btn.success {
      color: #68d391;
      border-color: #38a169;
    }

    body.dark-mode .bulk-btn.success:hover {
      background: #1a2e1a;
    }

    body.dark-mode .bulk-btn.info {
      color: #63b3ed;
      border-color: #3182ce;
    }

    body.dark-mode .bulk-btn.info:hover {
      background: #1a365d;
    }

    /* Mobile bulk actions */
    @media (max-width: 768px) {
      .bulk-actions-buttons {
        flex-direction: column;
      }
      
      .bulk-btn {
        text-align: center;
        padding: 0.75rem;
      }
    }
    @media (max-width: 768px) {
      body {
        font-size: 16px;
      }

      .action-buttons {
        flex-direction: column;
      }

      button {
        width: 100%;
        margin: 0.25rem 0;
        padding: 1rem;
        font-size: 1.1rem;
      }

      .navigation-buttons {
        flex-direction: column;
        gap: 0.5rem;
        margin: 1rem 0;
      }

      .navigation-buttons button {
        padding: 1rem;
        font-size: 1.1rem;
      }

      .card {
        padding: 1rem;
        margin: 0.5rem;
      }

      .checklist-card {
        padding: 1rem;
        margin-bottom: 0.75rem;
      }

      .sticky-header {
        padding: 0.5rem;
        gap: 0.5rem;
      }

      .sticky-header h1 {
        font-size: 1rem;
      }

      .logo-container,
      .logo,
      .logo-fallback {
        height: 32px;
        width: 32px;
      }

      .logo-fallback {
        font-size: 0.7rem;
      }

      #progress-indicator {
        font-size: 0.8rem;
      }

      select, input, textarea {
        padding: 1rem;
        font-size: 1.1rem;
      }

      .swipe-indicator {
        text-align: center;
        color: #666;
        font-size: 0.9rem;
        margin: 0.5rem 0;
        padding: 0.5rem;
        background: rgba(0,0,0,0.05);
        border-radius: 0.5rem;
      }

      /* Mobile tooltip adjustments */
      .tooltip .tooltiptext {
        width: 250px;
        margin-left: -125px;
        font-size: 0.85rem;
      }
    }

    /* Tooltip styles */
    .tooltip {
      position: relative;
      display: inline;
      border-bottom: 1px dotted #0a3161;
      cursor: help;
    }

    .tooltip:hover {
      color: #0a3161;
    }

    .tooltip .tooltiptext {
      visibility: hidden;
      width: 280px;
      background-color: #2d3748;
      color: #fff;
      text-align: left;
      border-radius: 8px;
      padding: 0.75rem;
      position: absolute;
      z-index: 1000;
      bottom: 125%;
      left: 50%;
      margin-left: -140px;
      opacity: 0;
      transition: opacity 0.3s;
      font-size: 0.9rem;
      line-height: 1.4;
      box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    }

    .tooltip .tooltiptext::after {
      content: "";
      position: absolute;
      top: 100%;
      left: 50%;
      margin-left: -5px;
      border-width: 5px;
      border-style: solid;
      border-color: #2d3748 transparent transparent transparent;
    }

    .tooltip:hover .tooltiptext {
      visibility: visible;
      opacity: 1;
    }

    /* Dark mode tooltips */
    body.dark-mode .tooltip {
      border-bottom-color: #63b3ed;
    }

    body.dark-mode .tooltip:hover {
      color: #63b3ed;
    }

    body.dark-mode .tooltip .tooltiptext {
      background-color: #1a202c;
      border: 1px solid #4a5568;
    }

    body.dark-mode .tooltip .tooltiptext::after {
      border-color: #1a202c transparent transparent transparent;
    }