        body {
            font-family: 'Poppins', sans-serif;
        }
        .tab-content {
            display: none;
        }
        .tab-content.active {
            display: block;
        }
        #map, #overview-map {
            height: 300px;
            width: 100%;
            border-radius: 8px;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        }
        #overview-map {
            height: 150px;
        }
        .spinner {
            border: 2px solid #f3f3f3;
            border-top: 2px solid #3498db;
            border-radius: 50%;
            width: 20px;
            height: 20px;
            animation: spin 1s linear infinite;
            display: none;
        }
        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }
        /* Scrollable tabs on mobile */
        .tab-nav {
            display: flex;
            overflow-x: auto;
            -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
            scrollbar-width: none; /* Hide scrollbar in Firefox */
            -ms-overflow-style: none; /* Hide scrollbar in IE/Edge */
        }
        .tab-nav::-webkit-scrollbar {
            display: none; /* Hide scrollbar in Chrome/Safari */
        }
        .tab-btn {
            white-space: nowrap; /* Prevent tab text from wrapping */
        }
        /* Adjust button and select sizes for touch */
        #command-select, #send-command, .periodic-select {
            padding: 0.75rem; /* Larger padding for touch */
        }

        .periodic-select {
            padding: 0.50rem; /* Larger padding for touch */
        }

        .connection-status {
            display: inline-block;
            width: 12px;
            height: 12px;
            border-radius: 50%;
            margin-left: 8px;
        }
        .green { background-color: #22c55e; } /* Tailwind green-500 */
        .yellow { background-color: #eab308; } /* Tailwind yellow-500 */
        .red { background-color: #ef4444; } /* Tailwind red-500 */

        /* Charge Bar Segment Display */
        .charge-bar-container {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-top: 1rem;
        }
        .charge-bar {
            display: flex;
            gap: 2px;
            width: 80%;
        }
        .charge-segment {
            flex: 1;
            height: 20px;
            border: 1px solid #333;
            border-radius: 2px;
        }
        .charge-segment.empty {
            background-color: #4b5563; /* Tailwind gray-600 */
        }
        .charge-segment.filled {
            background-color: #3b82f6; /* Tailwind blue-500 */
        }
        .charge-segment.low {
            background-color: #ef4444; /* Tailwind red-500 */
        }
        .charge-segment.blinking {
            animation: blink 1s infinite;
        }
        .charge-segment.qc-blinking {
            animation: blink 0.5s infinite;
        }
        .charge-segment.qc-blinking::before {
            display: flex;
            align-content: center;
            align-items: center;
            justify-content: center;
            content: url('data:image/svg+xml;utf8,<svg width="20" height="20" rotate="90" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M13 2L3 14h9l-1 8 10-12h-9l1-8z" fill="%23ffffff"/></svg>');            text-align: center;
            position: relative;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
        }
        @keyframes blink {
            0% { opacity: 1; }
            50% { opacity: 0.3; }
            100% { opacity: 1; }
        }
        .charge-labels {
            display: flex;
            justify-content: space-between;
            width: 80%;
            margin-top: 0.5rem;
            font-size: 0.875rem;
            color: #4b5563; /* Tailwind gray-600 */
        }
        .charge-percentage {
            font-size: 1rem;
            font-weight: 600;
            color: #1f2937; /* Tailwind gray-800 */
        }

        /* Status Boxes */
        .status-box {
            background-color: #f9fafb; /* Tailwind gray-50 */
            border: 1px solid #e5e7eb; /* Tailwind gray-200 */
            border-radius: 8px;
            padding: 1rem;
            text-align: center;
        }
        .status-box dt {
            font-size: 0.875rem;
            color: #4b5563; /* Tailwind gray-600 */
        }
        .status-box dd {
            font-size: 1.25rem;
            font-weight: 600;
            color: #1f2937; /* Tailwind gray-800 */
        }

        /* Spinning Fan Icon for AC Status */
        .fan-icon {
            display: inline-block;
            width: 24px;
            height: 24px;
            margin-top: 0.5rem;
        }
        .fan-icon.spinning {
            animation: spin 1s linear infinite;
        }

        #charge-time-tbl{
      border-collapse: collapse; /* Merges borders between cells */
      border: none; /* Removes the outer border of the table */
    }
    #charge-time-tbl, td {
      border: 1px solid black; /* Adds borders to cells */
      padding: 5px; /* Optional: adds spacing inside cells for better appearance */
    }
    /* Remove outer borders by targeting the first and last rows/columns */
    #charge-time-tbl, tr:first-child td {
      border-top: none; /* Removes top border of the first row */
    }
    #charge-time-tbl, tr:last-child td {
      border-bottom: none; /* Removes bottom border of the last row */
    }
    #charge-time-tbl, td:first-child {
      border-left: none; /* Removes left border of the first column */
    }
    #charge-time-tbl, td:last-child {
      border-right: none; /* Removes right border of the last column */
    }

    .btn-s-disabled {}

    .btn-s-disabled:disabled {
        background-color: gray !important;
        cursor: not-allowed;
    }

    .btn-s-disabled:disabled:hover {
        background-color: gray !important;
        cursor: not-allowed;
    }

    .mic {
        vertical-align: bottom;
        font-size: 20px !important;
        margin-left: -2px !important;
    }

        /* Status Boxes */
    .status-card {
        background-color: #f9fafb; /* Tailwind gray-50 */
        border: 1px solid #e5e7eb; /* Tailwind gray-200 */
        border-radius: 8px;
        padding: 1rem;
    }

    /* Ensure the container is relative for absolute positioning of arrows */
    .tab-nav-container {
      position: relative;
      width: 100%;
    }

    /* Enable horizontal scrolling and hide scrollbar */
    .tab-nav {
      display: flex;
      overflow-x: auto;
      white-space: nowrap;
      scroll-behavior: smooth;
      -ms-overflow-style: none; /* IE and Edge */
      scrollbar-width: none; /* Firefox */
    }

    /* Hide scrollbar for Chrome, Safari, and Opera */
    .tab-nav::-webkit-scrollbar {
      display: none;
    }

    /* Style for tab buttons */
    .tab-btn {
      flex-shrink: 0; /* Prevent buttons from shrinking */
    }

    /* Style for scroll arrows */
    .scroll-arrow {
      z-index: 10;
      transition: background-color 0.2s;
    }

    /* Show arrows only when needed */
    .scroll-arrow.hidden {
      display: none;
    }

    .routeplan-icon {
        height: 20px;
        margin-right: 5px;
    }

    .routeplan-title {
        float: none;
        display: flex;
        align-items: center;
    }

    .map {
        z-index: 0 !important;
    }

    .collapsing-btn {
        color: rgb(100, 102, 106) !important;
    }

    .collapsing-btn[aria-expanded="true"] {
        color: white !important;
    }


    .carrier {
      font-size: 10px;
      color: #333;
      text-align: center;
      line-height: 0.7rem;
    }


    .bar {
      width: 6px;
      background: linear-gradient(180deg, #030303, #010101);
      border-radius: 2px;
      transition: height 0.3s ease, opacity 0.3s ease;
      opacity: 1;
    }

    .cell-signal {
        height: 24px;
        width: 40px;
    }

    .signal-bars {
      display: flex;
      gap: 2px;
      align-items: flex-end;
        height: 24px;
        margin-bottom: 3px;
    }

    .cell-signal .bar:nth-child(1) { height: 8px; opacity: 0.2; }
    .cell-signal .bar:nth-child(1) { height: 8px; opacity: 0.2; }
    .cell-signal .bar:nth-child(2) { height: 12px; opacity: 0.2; }
    .cell-signal .bar:nth-child(1) { height: 8px; opacity: 0.2; }
    .cell-signal .bar:nth-child(2) { height: 12px; opacity: 0.2; }
    .cell-signal .bar:nth-child(3) { height: 16px; opacity: 0.2; }
    .cell-signal .bar:nth-child(1) { height: 8px; opacity: 0.2; }
    .cell-signal .bar:nth-child(2) { height: 12px; opacity: 0.2; }
    .cell-signal .bar:nth-child(3) { height: 16px; opacity: 0.2; }
    .cell-signal .bar:nth-child(4) { height: 20px; opacity: 0.2; }
    .cell-signal .bar:nth-child(1) { height: 8px; opacity: 0.2; }
    .cell-signal .bar:nth-child(2) { height: 12px; opacity: 0.2; }
    .cell-signal .bar:nth-child(3) { height: 16px; opacity: 0.2; }
    .cell-signal .bar:nth-child(4) { height: 20px; opacity: 0.2; }
    .cell-signal .bar:nth-child(5) { height: 24px; opacity: 0.2; }

    /* Bar heights for different signal levels */
    .signal-1 .bar:nth-child(1) { height: 8px; opacity: 1; }
    .signal-2 .bar:nth-child(1) { height: 8px; opacity: 1; }
    .signal-2 .bar:nth-child(2) { height: 12px; opacity: 1; }
    .signal-3 .bar:nth-child(1) { height: 8px; opacity: 1; }
    .signal-3 .bar:nth-child(2) { height: 12px; opacity: 1; }
    .signal-3 .bar:nth-child(3) { height: 16px; opacity: 1; }
    .signal-4 .bar:nth-child(1) { height: 8px; opacity: 1; }
    .signal-4 .bar:nth-child(2) { height: 12px; opacity: 1; }
    .signal-4 .bar:nth-child(3) { height: 16px; opacity: 1; }
    .signal-4 .bar:nth-child(4) { height: 20px; opacity: 1; }
    .signal-5 .bar:nth-child(1) { height: 8px; opacity: 1; }
    .signal-5 .bar:nth-child(2) { height: 12px; opacity: 1; }
    .signal-5 .bar:nth-child(3) { height: 16px; opacity: 1; }
    .signal-5 .bar:nth-child(4) { height: 20px; opacity: 1; }
    .signal-5 .bar:nth-child(5) { height: 24px; opacity: 1; }