body {
            font-family: 'Inter', sans-serif;
            background-color: #EFF6FF;
            background-image:
                radial-gradient(circle at 1px 1px, rgba(0, 0, 0, 0.08) 1px, transparent 0),
                linear-gradient(to bottom, #FFFFFF 0%, #DBEAFE 70%, #BFDBFE 100%);
            background-size:
                10px 10px,
                auto;
            margin: 0;
            min-height: 100vh;
            display: flex;
            flex-direction: column;
        }

        .modal {
            display: none;
        }

        .modal.active {
            display: flex;
            position: fixed;
            inset: 0;
            background-color: rgba(0, 0, 0, 0.5);
            align-items: center;
            justify-content: center;
            z-index: 50;
            overflow-y: auto;
            padding: 1rem;
        }

        ::-webkit-scrollbar {
            width: 8px;
            height: 8px;
        }

        ::-webkit-scrollbar-track {
            background: #f1f1f1;
            border-radius: 10px;
        }

        ::-webkit-scrollbar-thumb {
            background: #888;
            border-radius: 10px;
        }

        ::-webkit-scrollbar-thumb:hover {
            background: #555;
        }

        .table-responsive {
            overflow-x: auto;
        }

        .status-ativo {
            background-color: #d1fae5;
            color: #065f46;
        }

        .status-manutencao {
            background-color: #fef3c7;
            color: #92400e;
        }

        .status-inativo {
            background-color: #fee2e2;
            color: #991b1b;
        }

        .status-privado {
            background-color: #1F2937;
            /* cinza escuro/preto */
            color: #D1D5DB;
            /* cinza claro */
        }

        .alert-green {
            color: #10B981;
        }

        .alert-yellow {
            color: #F59E0B;
        }

        .alert-red {
            color: #EF4444;
        }

        .tab-button.active {
            border-color: #3B82F6;
            color: #3B82F6;
            font-weight: 600;
        }

        #messageArea {
            position: fixed;
            top: 1rem;
            left: 50%;
            transform: translateX(-50%);
            z-index: 1050;
            width: auto;
            min-width: 300px;
            max-width: 90%;
            padding: 1rem;
            border-radius: 0.375rem;
            box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
        }

        #loginScreen {
            display: flex;
            align-items: center;
            justify-content: center;
            min-height: 100vh;
            width: 100%;
            position: fixed;
            top: 0;
            left: 0;
            background-color: rgba(239, 246, 255, 0.95);
            z-index: 1000;
        }

        #appContent {
            display: none;
            width: 100%;
        }

        .admin-only,
        .supervisor-only,
        .viewer-only {
            display: none !important;
        }

        body.role-admin .admin-only {
            display: inline-block !important;
        }

        body.role-supervisor .supervisor-only {
            display: inline-block !important;
        }

        body.role-viewer .viewer-only {
            display: inline-block !important;
        }

        .action-button {
            margin-right: 0.5rem;
        }

        .action-button:last-child {
            margin-right: 0;
        }

        .admin-or-supervisor-only {
            display: none !important;
        }

        body.role-admin .admin-or-supervisor-only {
            display: inline-block !important;
        }

        body.role-supervisor .admin-or-supervisor-only {
            display: inline-block !important;
        }

        .can-add-fuel-entry {
            display: none !important;
        }

        body.role-admin .can-add-fuel-entry {
            display: inline-block !important;
        }

        body.role-supervisor .can-add-fuel-entry {
            display: inline-block !important;
        }

        body.role-viewer .can-add-fuel-entry {
            display: inline-block !important;
        }

        .header-logo {
            height: 120px;
            width: auto;
            object-fit: contain;
            flex-shrink: 0;
        }

        /* Styles for Data Analysis Dashboard */
        /* container cresce conforme conteúdo */
#dataAnalysis .chart-container {
  position: relative;
  height: auto;            /* deixa a altura fluir */
  width: 100%;
  background-color: white;
  padding: 1.5rem;
  border-radius: 0.5rem;
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  display: flex;
  flex-direction: column;  /* empilha canvas + insight */
}

/* aqui você define o tamanho do gráfico */
#dataAnalysis .chart-container canvas {
  height: 300px !important;   /* ou 360px, ajuste como quiser */
  width: 100% !important;
  display: block;
}
#dataAnalysis .chart-container canvas {
  height: auto !important;
  width: 100% !important;
}
#dataAnalysis .chart-container {
  max-height: 500px;   /* ajuste conforme o layout */
  overflow: hidden;
}

        .insight {
            background-color: #eef2ff;
            border-left: 4px solid #4f46e5;
            padding: 1rem;
            margin-top: 1rem;
            border-radius: 0.25rem;
        }

        .loader {
            border: 4px solid #f3f3f3;
            border-radius: 50%;
            border-top: 4px solid #4f46e5;
            width: 40px;
            height: 40px;
            animation: spin 1s linear infinite;
        }

        @keyframes spin {
            0% {
                transform: rotate(0deg);
            }

            100% {
                transform: rotate(360deg);
            }
        }